When an EventEmitterable triggers a Listener, the callback always ahas one additional argument passed, which is an EventPayload.

Extended by

Type parameters

Type parameter
T

Constructors

new EventPayload()

new EventPayload<T>(
   emitter, 
   listener, 
filter): EventPayload<T>

Create a new EventPayload for emitter with the listener and for filter.

Parameters

ParameterType
emitterEventEmitterable<T>
listenernull | Listener
filterT

Returns

EventPayload<T>

Source

utils/events.ts:91

Properties

PropertyModifierTypeDescription
emitterreadonlyEventEmitterable<T>The EventEmitterable.
filterreadonlyTThe event filter.

Methods

removeListener()

removeListener(): Promise<void>

Unregister the triggered listener for future events.

Returns

Promise<void>

Source

utils/events.ts:99