跳到正文

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? ​

ts
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? ​

ts
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 ​

ts
false

compilerOptions? ​

ts
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? ​

ts
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? ​

ts
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 ​

ts
process.cwd()

dtsInput? ​

ts
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 ​

ts
false

eager? ​

ts
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? ​

ts
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 ​

ts
false

emitJs? ​

ts
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? ​

ts
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 ​

ts
entry: ['src/*.ts', '!src/internal/**']

generator? ​

ts
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 with isolatedDeclarations.
  • 'tsgo' uses the experimental TypeScript Go API.
  • 'tsrs' uses the highly experimental tsrs API, a Rust port of TypeScript Go. Only the latest tsrs release 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 ​

ts
Inferred from the TypeScript configuration and installed compiler.

incremental? ​

ts
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? ​

ts
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 ​

ts
console

newContext? ​

ts
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? ​

ts
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? ​

ts
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? ​

ts
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 ​

ts
'oxc'

sideEffects? ​

ts
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 ​

ts
false

sourcemap? ​

ts
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? ​

ts
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? ​

ts
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? ​

ts
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? ​

ts
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? ​

ts
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? ​

ts
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

Released under the MIT License.