Typed EventEmitterReference

EventEmitter

Overview

Methods

addInternalListener<Args>(event, listener)

ParameterTypeRequiredDefaultDescription
event
EventBinder

Aliased type: (event:

EventHandler

Aliased type: (args: Args) => void

) => Listener

nonenone
listener
EventHandler

Aliased type: (args: Args) => void

nonenone
Return type: Listener

addListener<Args>(event, listener)

ParameterTypeRequiredDefaultDescription
event
EventBinder

Aliased type: (event:

EventHandler

Aliased type: (args: Args) => void

) => Listener

nonenone
listener
EventHandler

Aliased type: (args: Args) => void

nonenone
Return type: Listener

emit<Args>(event, args)

ParameterTypeRequiredDefaultDescription
event
EventBinder

Aliased type: (event:

EventHandler

Aliased type: (args: Args) => void

) => Listener

nonenone
argsArgsnonenone
Return type: void

on<Args>(event, listener)

ParameterTypeRequiredDefaultDescription
event
EventBinder

Aliased type: (event:

EventHandler

Aliased type: (args: Args) => void

) => Listener

nonenone
listener
EventHandler

Aliased type: (args: Args) => void

nonenone
Return type: Listener

registerEvent<Args>()

Return type: EventBinder<Args>

registerInternalEvent<T>()

Return type: EventBinder<T>

removeInternalListener(id)

ParameterTypeRequiredDefaultDescription
idListenernonenone
Return type: void

removeInternalListener<Args>(event, listener)

ParameterTypeRequiredDefaultDescription
event
EventBinder

Aliased type: (event:

EventHandler

Aliased type: (args: Args) => void

) => Listener

nonenone
listener
EventHandler

Aliased type: (args: Args) => void

nonenone
Return type: void

removeListener(id)

ParameterTypeRequiredDefaultDescription
idListenernonenone
Return type: void

removeListener<Args>(event, listener)

ParameterTypeRequiredDefaultDescription
event
EventBinder

Aliased type: (event:

EventHandler

Aliased type: (args: Args) => void

) => Listener

nonenone
listener
EventHandler

Aliased type: (args: Args) => void

nonenone
Return type: void