@lacrypta/nomad v0.0.0 / EventCallback
type EventCallback: (name: string, ...args: AnyArgs) => void;
The type of an event callback.
EventCaster events consists of two parts:
name
: this is the main routing parameter, listeners use this to declare what events to forward to them,args
: a specific event may associate any number of arguments to each specific instance of it.An event callback is simply a function that is prepared to receive these parts individually, and it’s not expected to return anything at all.
• name: string
The event name to pass on to the call back function.
• …args: AnyArgs
Any additional arguments associated to the particular event instance.
void