Class EventEmitter<Events>
Constructors
Methods
addListener
- addListener<E>(event, listener): (() => void)
Type Parameters
- E extends string | number | symbol
Returns (() => void)
addListenerOnce
- addListenerOnce<E>(event, listener): void
Type Parameters
- E extends string | number | symbol
Returns void
emit
- emit<E>(event, ...args): void
Type Parameters
- E extends string | number | symbol
Returns void
hasListener
- hasListener<E>(event, listener): boolean
Type Parameters
- E extends string | number | symbol
Returns boolean
removeAllListeners
- removeAllListeners(event?): void
Returns void
removeListener
- removeListener<E>(event, listener): void
Type Parameters
- E extends string | number | symbol
Returns void