Skip to main content

Class: CallbackManager

Constructors

new CallbackManager()

new CallbackManager(): CallbackManager

Returns

CallbackManager

Methods

dispatchEvent()

dispatchEvent<K>(event, detail): void

Type Parameters

K extends keyof LlamaIndexEventMaps

Parameters

event: K

detail: LlamaIndexEventMaps[K]

Returns

void

Defined in

packages/core/dist/global/index.d.ts:94


off()

off<K>(event, handler): this

Type Parameters

K extends keyof LlamaIndexEventMaps

Parameters

event: K

handler: EventHandler<LlamaIndexEventMaps[K]>

Returns

this

Defined in

packages/core/dist/global/index.d.ts:93


on()

on<K>(event, handler): this

Type Parameters

K extends keyof LlamaIndexEventMaps

Parameters

event: K

handler: EventHandler<LlamaIndexEventMaps[K]>

Returns

this

Defined in

packages/core/dist/global/index.d.ts:92