English
Interface: DtsOptions
Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:162
Configuration accepted by dts.
Extends
GeneralOptionsTscOptions
Properties
build?
ts
build?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:117
Uses TypeScript build mode (tsc -b) and follows project references.
Default
ts
falseInherited from
TscOptions.build
cjsDefault?
ts
cjsDefault?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:97
Converts a single default export to export = for CommonJS consumers. This does not add support for CommonJS-style declaration input.
Default
ts
falseInherited from
GeneralOptions.cjsDefault
compilerOptions?
ts
compilerOptions?: CompilerOptions;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:75
Compiler options merged over those loaded from tsconfig.json.
Inherited from
GeneralOptions.compilerOptions
customLanguages?
ts
customLanguages?: CustomLanguage[];Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:187
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; tsgo does not support custom languages.
cwd?
ts
cwd?: string;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:50
Base directory for config discovery, glob matching, and relative paths.
Default
ts
process.cwd()Inherited from
GeneralOptions.cwd
dtsInput?
ts
dtsInput?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:56
Treats entry files as existing declarations instead of source files.
Default
ts
falseInherited from
GeneralOptions.dtsInput
eager?
ts
eager?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:147
Loads every file listed by tsconfig.json into the TypeScript program.
Useful when one config covers multiple packages or entry points.
Default
ts
falseInherited from
TscOptions.eager
emitDtsOnly?
ts
emitDtsOnly?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:62
Removes non-declaration chunks from the output.
Default
ts
falseInherited from
GeneralOptions.emitDtsOnly
emitJs?
ts
emitJs?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:159
Generates declarations for JavaScript files with JSDoc types.
Default
Enabled when allowJs or checkJs is set.
Inherited from
TscOptions.emitJs
entry?
ts
entry?: string | string[];Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:44
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
ts
entry: ['src/*.ts', '!src/internal/**']Inherited from
GeneralOptions.entry
generator?
ts
generator?: "tsc" | "oxc" | "tsgo";Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:32
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 compiler.
When omitted, the plugin selects 'oxc' for isolatedDeclarations, 'tsgo' for TypeScript 7, and 'tsc' otherwise. Volar-based custom languages require 'tsc'.
Default
ts
Inferred from the TypeScript configuration and installed compiler.Inherited from
GeneralOptions.generator
incremental?
ts
incremental?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:124
Persists build-mode outputs, including .tsbuildinfo, to disk for reuse. When disabled, build outputs stay in memory.
Default
Enabled when the config sets incremental or tsBuildInfoFile.
Inherited from
TscOptions.incremental
logger?
ts
logger?: Logger;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:109
Logger used for plugin messages.
Default
ts
consoleInherited from
GeneralOptions.logger
newContext?
ts
newContext?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:153
Uses an isolated TypeScript cache instead of the shared global context.
Default
ts
falseInherited from
TscOptions.newContext
oxc?
ts
oxc?: Omit<IsolatedDeclarationsOptions, "sourcemap">;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:169
Options for the oxc generator.
The top-level sourcemap option controls declaration maps.
parallel?
ts
parallel?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:139
Runs tsc or vue-tsc in a separate process.
Default
ts
falseInherited from
TscOptions.parallel
resolver?
ts
resolver?: "tsc" | "oxc";Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:90
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
ts
'oxc'Inherited from
GeneralOptions.resolver
sideEffects?
ts
sideEffects?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:103
Marks declaration modules as having side effects during tree-shaking.
Default
ts
falseInherited from
GeneralOptions.sideEffects
sourcemap?
ts
sourcemap?: boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:81
Emits declaration maps (.d.ts.map).
Default
The value of compilerOptions.declarationMap.
Inherited from
GeneralOptions.sourcemap
tsconfig?
ts
tsconfig?: string | boolean;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:69
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.
Inherited from
GeneralOptions.tsconfig
tsconfigRaw?
ts
tsconfigRaw?: Omit<TsConfigJson, "compilerOptions">;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:71
Raw tsconfig.json values merged over the loaded config.
Inherited from
GeneralOptions.tsconfigRaw
tsgo?
ts
tsgo?: TsgoOptions;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:176
[Experimental] Options for the tsgo generator.
Used when generator is 'tsgo' or TypeScript 7 is detected.
vue?
ts
vue?: boolean | VueLanguageOptions;Defined in: node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@volar+typescript@2.4.28_typescript@6.0.3__@vue+language-cor_4a17874553acfd87292497d0c77e21e9/node_modules/rolldown-plugin-dts/dist/index.d.mts:133
Registers the built-in Vue language integration using vue-tsc.
This is a shortcut for a preconfigured Options.customLanguages entry and requires the tsc generator.
Default
ts
falseInherited from
TscOptions.vue