Skip to content

GenerateOutputOptions

GenerateOutputOptions = object

Defined in: core/generate/index.ts:11

Options for controlling the generated output files.

optional actor: { disabled: true; } | { disabled?: false; interfaceFile?: boolean; }

Defined in: core/generate/index.ts:21

Options for controlling the generated actor files.

{ disabled: true; }

disabled: true

If true, skips generating the actor file (<service-name>.ts).

false

{ disabled?: false; interfaceFile?: boolean; }

optional disabled: false

optional interfaceFile: 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.

false

optional declarations: object

Defined in: core/generate/index.ts:45

Options for controlling the generated declarations files.

optional rootExports: boolean

If true, exports root types in the declarations JS file (declarations/<service-name>.did.js).

false

optional force: boolean

Defined in: core/generate/index.ts:17

If true, overwrite existing files. If false, abort on collisions.

false