@yantrix/automata v0.0.2 • Docs
Yantrix API / @yantrix/automata / TAutomataEffect
Type Alias: TAutomataEffect()<ModelType, EventType, EventMetaType>
ts
type TAutomataEffect<ModelType, EventType, EventMetaType>: (event, model) => ModelType;
Effect function for automata model.
Type Parameters
• ModelType extends object
• EventType extends TAutomataBaseEventType
• EventMetaType extends { [K in EventType]: any }
= Record
<EventType
, any
>
Parameters
• event: EventMetaType
• model: ModelType
Returns
ModelType