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
tsfunction extractComponentStateMachines(componentCode: string, componentFilePath: string): StateMachine[]
Parameters
| Name | Type |
|---|---|
componentCode | string |
componentFilePath | string |
Returns: StateMachine[]
Was this page helpful?