@yantrix/automata v0.6.0 • Docs
Yantrix API / @yantrix/automata / IAutomataEventContainer
Interface: IAutomataEventContainer<EventType> ​
Interface for an Automata event container.
Extended by ​
Type Parameters ​
• EventType extends TAutomataBaseEventType
The type of the event.
Properties ​
setEventValidator() ​
ts
setEventValidator: (eventValidator?) => this;Sets the event validator function.
Parameters ​
• eventValidator?: TValidator<EventType>
The validator function for the event.
Returns ​
this
The current instance.
validateEvent ​
ts
validateEvent: TValidator<EventType>;Validator function for the event.