Optional
Readonly
compilerTypeScript compiler options to apply.
Override the options from tsconfig.
Optional
Readonly
entriesModule entries.
A map of entry name declarations. Each key is an original name of module entry as it present in non-flattened
.d.ts
file, which is typically a relative path to original typescript file without .ts
extension.
Optional
Readonly
externalExternal module names.
An array of external module names and their glob patterns. These names won't be changed during flattening process.
This is useful for external module augmentation.
Optional
Readonly
fileOutput .d.ts
file name relative to output directory.
Optional
Readonly
internalInternal module names.
An array of internal module names and their glob patterns. Internal module type definitions are excluded from
generated .d.ts
files.
Optional
Readonly
libWhether to add triple-slash directives to refer the libraries used.
Allowed values:
true
to add an entry for each referred library from lib
compiler option,false
(the default) to not add any library references,Optional
Readonly
moduleThe module name to replace flattened module declarations with.
Optional
Readonly
refsWhether to add file references.
A file reference is added when one entry refers another one.
Optional
Readonly
tsconfigEither tsconfig.json
file location relative to working directory, or parsed tsconfig.json
contents.
Type definitions flattening options.
Contains options for
rollup-plugin-flat-dts
plugin.Accepted by emitFlatDts function.