@yantrix/codegen v0.6.0 • Docs
Yantrix API / @yantrix/codegen / IGenerateOptions
Interface: IGenerateOptions ​
Represents the options for generating code.
Properties ​
beautify? ​
ts
optional beautify: boolean;Format generated code using Prettier (JS/TS) or ruff (Python).
className ​
ts
className: string;The name of the class for the generated Automata.
constants? ​
ts
optional constants: string;Included constants to be used in the generated Automata.
eventBusOrder? ​
ts
optional eventBusOrder: TEventBusOrder;Order in which the generated Event Bus delivers pending Events. Defaults to 'fifo'.
outLang ​
ts
outLang:
| "javascript"
| "typescript"
| "python"
| "java"
| "pure-javascript"
| "pure-typescript";The output language for the generated code. You can check the supported languages and features here.