Skip to content

@yantrix/automata v0.5.2 • Docs


Yantrix API / @yantrix/automata / IAutomataExtendedActionContainer

Interface: IAutomataExtendedActionContainer<ActionType, PayloadType> ​

Interface for an Automata extended action container.

Extends ​

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.

Inherited from ​

IAutomataActionContainer.validateAction