Interface: EventEmitterConstructor
Constructor abstraction used to hide runtime-specific emitter declarations.
Constructors
Constructor
ts
new EventEmitterConstructor(options?: object): EventEmitterLike;Parameters
| Parameter | Type |
|---|---|
options? | { captureRejections?: boolean; } |
options.captureRejections? | boolean |
Returns
Properties
| Property | Modifier | Type |
|---|---|---|
defaultMaxListeners | public | number |
prototype | readonly | EventEmitterLike |
Methods
listenerCount()
ts
listenerCount(emitter: EventEmitterLike, eventName: EventName): number;Parameters
| Parameter | Type |
|---|---|
emitter | EventEmitterLike |
eventName | EventName |
Returns
number