@yantrix/automata v0.0.2 • Docs
Yantrix API / @yantrix/automata / TAutomataStateContext
Type Alias: TAutomataStateContext<StateType, ContextType>
ts
type TAutomataStateContext<StateType, ContextType>: TAutomataStateContainer<StateType> & object;
Represents the current state & associated context of the automata.
Type declaration
context
ts
context: ContextType[StateType] | null;
Type Parameters
• StateType extends TAutomataBaseStateType
The type of the automata state.
• ContextType extends { [K in StateType]: any }
The type of the context associated with each state.