@yantrix/automata v0.2.0 • Docs
Yantrix API / @yantrix/automata / IAutomataExtendedActionContainer
Interface: IAutomataExtendedActionContainer<ActionType, PayloadType>
Interface for an Automata extended action container.
Extends
IAutomataActionContainer<ActionType>
Extended by
Type Parameters
• ActionType extends TAutomataBaseActionType
The type of the action.
• PayloadType extends { [K in ActionType]: any }
The type of the payload.
Properties
setActionValidator()
ts
setActionValidator: (actionValidator?) => this;Sets the action validator function.
Parameters
• actionValidator?: null | TValidator<ActionType>
The validator function for the action.
Returns
this
The current instance.
Inherited from
IAutomataActionContainer.setActionValidator
validateAction
ts
validateAction: TValidator<ActionType>;Validator function for the action.