Skip to content

Documentation / listr2 / ListrTaskEventManager

Class: ListrTaskEventManager

Extends

Extended by

Constructors

new ListrTaskEventManager()

new ListrTaskEventManager(): ListrTaskEventManager

Returns

ListrTaskEventManager

Inherited from

EventManager.constructor

Methods

emit()

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

Type Parameters

E extends ListrTaskEventType = ListrTaskEventType

Parameters

dispatch: E

args?: EventData<E, ListrTaskEventMap>

Returns

void

Inherited from

EventManager.emit

Defined in

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


on()

on<E>(dispatch, handler): void

Type Parameters

E extends ListrTaskEventType = ListrTaskEventType

Parameters

dispatch: E

handler

Returns

void

Inherited from

EventManager.on

Defined in

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


once()

once<E>(dispatch, handler): void

Type Parameters

E extends ListrTaskEventType = ListrTaskEventType

Parameters

dispatch: E

handler

Returns

void

Inherited from

EventManager.once

Defined in

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


off()

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

Type Parameters

E extends ListrTaskEventType = ListrTaskEventType

Parameters

dispatch: E

handler?

Returns

void

Inherited from

EventManager.off

Defined in

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


complete()

complete(): void

Returns

void

Inherited from

EventManager.complete

Defined in

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