Skip to content

Documentation / listr2 / ListrEventManager

Class: ListrEventManager

Extends

Constructors

new ListrEventManager(undefined)

new ListrEventManager(): ListrEventManager

Returns

ListrEventManager

Inherited from

EventManager.constructor

Methods

emit()

emit<E>(dispatch, args?): void

Type parameters

E extends SHOULD_REFRESH_RENDER = SHOULD_REFRESH_RENDER

Parameters

dispatch: E

args?: EventData<E, ListrEventMap>

Returns

void

Inherited from

EventManager.emit

Source

packages/listr2/src/lib/event-manager.ts:8


on()

on<E>(dispatch, handler): void

Type parameters

E extends SHOULD_REFRESH_RENDER = SHOULD_REFRESH_RENDER

Parameters

dispatch: E

handler

Returns

void

Inherited from

EventManager.on

Source

packages/listr2/src/lib/event-manager.ts:12


once()

once<E>(dispatch, handler): void

Type parameters

E extends SHOULD_REFRESH_RENDER = SHOULD_REFRESH_RENDER

Parameters

dispatch: E

handler

Returns

void

Inherited from

EventManager.once

Source

packages/listr2/src/lib/event-manager.ts:16


off()

off<E>(dispatch, handler?): void

Type parameters

E extends SHOULD_REFRESH_RENDER = SHOULD_REFRESH_RENDER

Parameters

dispatch: E

handler?

Returns

void

Inherited from

EventManager.off

Source

packages/listr2/src/lib/event-manager.ts:20


complete()

complete(): void

Returns

void

Inherited from

EventManager.complete

Source

packages/listr2/src/lib/event-manager.ts:24