@yantrix/automata v0.6.0 • Docs
Yantrix API / @yantrix/automata / TAutomataEventMetaType
Type Alias: TAutomataEventMetaType<EventType, EventMetaType> ​
ts
type TAutomataEventMetaType<EventType, EventMetaType>: TAutomataEventContainer<EventType> & object;Represents the event that can be emitted or received by an automata.
Type declaration ​
meta ​
ts
meta: EventMetaType[EventType] | null;Type Parameters ​
• EventType extends TAutomataBaseEventType
The type of the automata event.
• EventMetaType extends { [K in EventType]: any } = Record<EventType, any>
The type of the metadata associated with each event.