Skip to content

@yantrix/codegen v0.5.1Docs


Yantrix API / @yantrix/codegen / generateAutomataFiles

Function: generateAutomataFiles()

ts
function generateAutomataFiles(diagram, options): Promise<TCodegenFiles>

Generates a Yantrix FSM as a map of filenames to content (multi-file output). Dialects that implement getFiles() (e.g. pure-javascript, pure-typescript) return multiple files; all other dialects return a single-entry map keyed by the main filename.

Parameters

diagram: TStateDiagramMatrix

options: IGenerateOptions

Returns

Promise<TCodegenFiles>