Skip to main content
method EventEmitter.addListener
EventEmitter.addListener<K>(
eventName: Key<K, T>,
listener: Listener1<K, T>,
): this
Deprecated

Alias for emitter.on(eventName, listener).

Type Parameters

K

Parameters

eventName: Key<K, T>
listener: Listener1<K, T>

Return Type

this
Back to top