Class WidgetBus<Events>

A tiny typed event bus. Handlers run in registration order; one that throws does not stop the others, because a host's listener failing must not take the shell's own bookkeeping with it.

Type Parameters

  • Events extends Record<string, unknown> = Record<string, unknown>

Constructors

Methods

Constructors

  • Type Parameters

    • Events extends Record<string, unknown> = Record<string, unknown>

    Returns WidgetBus<Events>

Methods