İçeriğe geç
sern

Emitter

Methods

addListener()

addListener(eventName, listener): this

Parameters

eventName: string | symbol

listener: AnyFunction

Returns

this

Source

src/core/interfaces.ts:22


emit()

emit(eventName, …payload): boolean

Parameters

eventName: string | symbol

• …payload: any[]

Returns

boolean

Source

src/core/interfaces.ts:24


removeListener()

removeListener(eventName, listener): this

Parameters

eventName: string | symbol

listener: AnyFunction

Returns

this

Source

src/core/interfaces.ts:23