Home > @rainway/web > EventEmitter > emit
EventEmitter.emit() method
Emit an event of the given type.
Signature:
protected emit<TName extends EventName<TEvents>>(eventName: TName, ...args: Parameters<TEvents[TName]>): void;
Parameters
Parameter | Type | Description |
---|---|---|
eventName | TName | The name of the event. |
args | Parameters<TEvents[TName]> | The event arguments. |
Returns:
void