@yantrix/automata v0.2.0 • Docs
Yantrix API / @yantrix/automata / IAutomataStateContainer
Interface: IAutomataStateContainer<StateType>
Interface for an Automata state container.
Extended by
Type Parameters
• StateType extends TAutomataBaseStateType
The type of the state.
Properties
setStateValidator()
ts
setStateValidator: (stateValidator?) => this;Sets the state validator function.
Parameters
• stateValidator?: TValidator<StateType>
The validator function for the state.
Returns
this
The current instance.
validateState
ts
validateState: TValidator<StateType>;Validator function for the state.