Optionalcontext: ContextCalls each of the listeners registered for a given event.
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.
Optionalfn: EventListener<EventTypes, T>Optionalcontext: ContextOptionalonce: booleanAdd a listener for a given event.
Optionalcontext: ContextAdd a one-time listener for a given event.
Optionalcontext: ContextRemove all listeners, or those of the specified event.
Optionalevent: EventNames<EventTypes>Remove the listeners of a given event.
Optionalfn: EventListener<EventTypes, T>Optionalcontext: ContextOptionalonce: boolean
Minimal
EventEmitterinterface that is molded against the Node.jsEventEmitterinterface.