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 flat: 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.

false

optional rootExports: boolean

If true, exports root types in the declarations file.

false

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

false

optional force: boolean

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

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

false