Interface: DtsOptions
Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:32
Extends
DeprecatedOptions
Properties
build?
build?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:179
Deprecated
Use tsc.build instead.
Inherited from
DeprecatedOptions.build
cjsDefault?
cjsDefault?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:126
Converts a single default export to export = for CommonJS consumers. This does not add support for CommonJS-style declaration input.
Default
falsecompilerOptions?
compilerOptions?: CompilerOptions;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:102
Compiler options merged over those loaded from tsconfig.json. In the plugin's current tsgo and tsrs implementations, these affect plugin behavior but do not override the program's compiler options. Set those options in the config file instead.
customLanguages?
customLanguages?: CustomLanguage[];Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:175
Experimental
Registers non-standard source languages such as Vue or Astro.
If a language is supported via Volar, CustomLanguage.volarTypeScript and CustomLanguage.createVolarPlugins are both required. Volar languages require tsc. Non-Volar languages can use tsgo together with TsgoOptions.vfs `tsgo.vfs`, or tsrs with TsrsOptions.vfs `tsrs.vfs`.
cwd?
cwd?: string;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:69
Base directory for config discovery, glob matching, and relative paths.
Default
process.cwd()dtsInput?
dtsInput?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:75
Treats entry files as existing declarations instead of source files.
Default
falseeager?
eager?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:185
Deprecated
Use tsc.eager instead.
Inherited from
DeprecatedOptions.eager
emitDtsOnly?
emitDtsOnly?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:81
Removes non-declaration chunks from the output.
Default
falseemitJs?
emitJs?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:144
Generates declarations for JavaScript files with JSDoc types.
Default
Enabled when allowJs or checkJs is set.
entry?
entry?: string | string[];Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:63
Glob pattern(s) that select source files for declaration generation.
Patterns are relative to cwd and may be negated with !. Matching files are emitted even when they are not Rolldown entry points.
Example
entry: ['src/*.ts', '!src/internal/**']generator?
generator?: "tsc" | "oxc" | "tsgo" | "tsrs" | Generator;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:51
The generator used to produce declaration files.
'tsc'supports the full TypeScript type system.'oxc'is faster but requires code compatible withisolatedDeclarations.'tsgo'uses the experimental TypeScript Go API.'tsrs'uses the highly experimental tsrs API, a Rust port of TypeScript Go. Only the latesttsrsrelease is supported. It is never selected automatically.- A custom Generator implementation can be provided directly.
When omitted, the plugin selects 'oxc' for isolatedDeclarations, 'tsgo' when TypeScript exposes the declaration emit API or is 7.0 (deprecated CLI backend), and 'tsc' otherwise. Volar-based custom languages require 'tsc'.
Default
Inferred from the TypeScript configuration and installed compiler.incremental?
incremental?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:181
Deprecated
Use tsc.incremental instead.
Inherited from
DeprecatedOptions.incremental
logger?
logger?: Logger;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:138
Logger used for plugin messages.
Default
consolenewContext?
newContext?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:187
Deprecated
Use tsc.newContext instead.
Inherited from
DeprecatedOptions.newContext
oxc?
oxc?: Omit<IsolatedDeclarationsOptions, "sourcemap">;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:153
Options for the oxc generator.
The top-level sourcemap option controls declaration maps.
parallel?
parallel?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:183
Deprecated
Use tsc.parallel instead.
Inherited from
DeprecatedOptions.parallel
resolver?
resolver?: "tsc" | "oxc";Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:119
Resolver used for declaration imports, including packages in node_modules.
Use 'tsc' when a project depends on TypeScript-specific resolution behavior; otherwise 'oxc' is faster.
Default
'oxc'sideEffects?
sideEffects?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:132
Marks declaration modules as having side effects during tree-shaking.
Default
falsesourcemap?
sourcemap?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:110
Emits declaration maps (.d.ts.map). With tsgo or tsrs, source mappings also require compilerOptions.declarationMap to be enabled in the on-disk config; sourcemap: true alone is insufficient.
Default
The value of compilerOptions.declarationMap.
tsc?
tsc?: TscOptions;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:146
Options for the built-in tsc generator.
tsconfig?
tsconfig?: string | boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:89
A tsconfig.json path, resolved relative to cwd.
When omitted or true, the nearest config is discovered from cwd. Set to false to disable config loading. The tsgo generator requires a config file, as does tsrs.
tsconfigRaw?
tsconfigRaw?: Omit<TsConfigJson, "compilerOptions">;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:95
Raw tsconfig.json values merged over the loaded config. The plugin's current tsgo implementation does not apply these overrides to the TypeScript program.
tsgo?
tsgo?: TsgoOptions;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:157
[Experimental] Options for the TypeScript Go generator.
tsrs?
tsrs?: TsrsOptions;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:162
[Highly experimental] Options for the tsrs generator. Only the latest tsrs release is supported.
vue?
vue?: boolean | VueLanguageOptions;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.29.0_@volar+typescript@2.4.30_typescript@6.0.3__@vue+language-cor_de53bc80943449a4976026f78b39ae42/node_modules/rolldown-plugin-dts/dist/index.d.mts:189
Deprecated
Use tsc.vue instead.
Inherited from
DeprecatedOptions.vue