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.
rootExports?
Section titled “rootExports?”
optionalrootExports:boolean
If true, exports root types in the declarations JS file (declarations/<service-name>.did.js).
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