Type Parameters
- E
- T extends keyof E = keyof E
Constructors
constructor
- new EventEmitter<E, T>(): EventEmitter<E, T>
Type Parameters
- E
- T extends string | number | symbol = keyof E
Properties
Private
_events
_events: EventLite = ...
Methods
off
- off<ET>(type, handler): void
Type Parameters
- ET extends string | number | symbol
Parameters
- type: ET
- handler: ((event, ...args) => void)
- (event, ...args): void
Parameters
- event: E[ET]
Rest
...args: any
Returns void
Returns void
on
- on<ET>(type, handler): void
Type Parameters
- ET extends string | number | symbol
Parameters
- type: ET
- handler: ((event, ...args) => void)
- (event, ...args): void
Parameters
- event: E[ET]
Rest
...args: any
Returns void
Returns void
once
- once<ET>(type, handler): void
Type Parameters
- ET extends string | number | symbol
Parameters
- type: ET
- handler: ((event, ...args) => void)
- (event, ...args): void
Parameters
- event: E[ET]
Rest
...args: any
Returns void
Returns void