Emitter
Methods
addListener()
addListener(
eventName
,listener
):this
Parameters
• eventName: string
| symbol
• listener: AnyFunction
Returns
this
Source
src/core/contracts/emitter.ts:6
emit()
emit(
eventName
, …payload
):boolean
Parameters
• eventName: string
| symbol
• …payload: any
[]
Returns
boolean
Source
src/core/contracts/emitter.ts:8
removeListener()
removeListener(
eventName
,listener
):this
Parameters
• eventName: string
| symbol
• listener: AnyFunction
Returns
this