Skip to content

extractComponentStateMachines

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/utils/component-state-machine-extractor.ts

Extract state machines from component code Handles both enums defined in the same file and imported enums

Signature

ts
function extractComponentStateMachines(componentCode: string, componentFilePath: string): StateMachine[]

Parameters

NameType
componentCodestring
componentFilePathstring

Returns: StateMachine[]

Was this page helpful?

Download as PDF