Skip to content

@yantrix/codegen v0.5.2 • 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.


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.