GenerateOutputOptions
GenerateOutputOptions =
object
Defined in: core/generate/index.ts:11
Options for controlling the generated output files.
Properties
Section titled “Properties”actor?
Section titled “actor?”
optionalactor: {disabled:true; } | {disabled?:false;interfaceFile?:boolean; }
Defined in: core/generate/index.ts:21
Options for controlling the generated actor files.
Type Declaration
Section titled “Type Declaration”{ disabled: true; }
disabled
Section titled “disabled”disabled:
true
If true, skips generating the actor file (<service-name>.ts).
Default
Section titled “Default”false{ disabled?: false; interfaceFile?: boolean; }
disabled?
Section titled “disabled?”
optionaldisabled:false
interfaceFile?
Section titled “interfaceFile?”
optionalinterfaceFile:boolean
If true, generates a <service-name>.d.ts file that contains the same types of the <service-name>.ts file.
Useful to add to LLMs’ contexts’ to give knowledge about what types are available in the service.
Has no effect if disabled is true.
Default
Section titled “Default”falsedeclarations?
Section titled “declarations?”
optionaldeclarations:object
Defined in: core/generate/index.ts:45
Options for controlling the generated declarations files.
optionalflat:boolean
If true, generates declaration files directly in outDir instead of in a declarations/ subfolder.
This is useful for projects that need full control over the output file layout without post-processing scripts to move or rename the generated files.
Default
Section titled “Default”falserootExports?
Section titled “rootExports?”
optionalrootExports:boolean
If true, exports root types in the declarations file.
Default
Section titled “Default”falsetypescript?
Section titled “typescript?”
optionaltypescript:boolean
If true, generates a single declarations/<service-name>.did.ts TypeScript file
instead of separate declarations/<service-name>.did.js and declarations/<service-name>.did.d.ts files.
This eliminates the need for allowJs: true in the consumer’s TypeScript configuration.
Default
Section titled “Default”falseforce?
Section titled “force?”
optionalforce:boolean
Defined in: core/generate/index.ts:17
If true, overwrite existing files. If false, abort on collisions.
Default
Section titled “Default”false