Static
prefixedOptional
context: ContextCalls each of the listeners registered for a given event.
Rest
...args: Parameters<EventListener<EventTypes, T>>Return an array listing the events for which the emitter has registered listeners.
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Optional
fn: EventListener<EventTypes, T>Optional
context: ContextOptional
once: booleanAdd a listener for a given event.
Optional
context: ContextAdd a one-time listener for a given event.
Optional
context: ContextRemove all listeners, or those of the specified event.
Optional
event: EventNames<EventTypes>Remove the listeners of a given event.
Optional
fn: EventListener<EventTypes, T>Optional
context: ContextOptional
once: booleanGenerated using TypeDoc
Minimal
EventEmitter
interface that is molded against the Node.jsEventEmitter
interface.