Skip to main content

Class: CallbackManager

Constructors

new CallbackManager()

new CallbackManager(): CallbackManager

Returns

CallbackManager

Methods

dispatchEvent()

dispatchEvent<K>(event, detail, sync?): void

Type Parameters

K extends keyof LlamaIndexEventMaps

Parameters

event: K

detail: LlamaIndexEventMaps[K]

sync?: boolean

Returns

void

Defined in

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


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/global/dist/index.d.ts:112


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/global/dist/index.d.ts:111