Skip to content

@yantrix/react v0.6.0 • Docs


Yantrix API / @yantrix/react / IContextFSM

Interface: IContextFSM ​

Properties ​

destroyFSM() ​

ts
destroyFSM: (id) => void;

Parameters ​

• id: string

Returns ​

void


getStore() ​

ts
getStore: (id) => IYantrixBoundStore<TAutomata>;

Parameters ​

• id: string

Returns ​

IYantrixBoundStore<TAutomata>


initializeFSM() ​

ts
initializeFSM: (inst, name?) => string;

Parameters ​

• inst: TAutomata

• name?: string

Returns ​

string