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


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:87


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:86