@yantrix/automata v0.6.0 • Docs
Yantrix API / @yantrix/automata / TAutomataActionPayload
Type Alias: TAutomataActionPayload<ActionType, PayloadType> ​
ts
type TAutomataActionPayload<ActionType, PayloadType>: TAutomataActionContainer<ActionType> & object;Represents the action for an automata, together with its payload.
Type declaration ​
payload ​
ts
payload: PayloadType[ActionType] | null;Type Parameters ​
• ActionType extends TAutomataBaseActionType
The type of the automata action.
• PayloadType extends { [K in ActionType]: any }
The type of the payload associated with each action.