Skip to content

EventBroadcaster<T>

Allows broadcasting events.

Type Parameters

T extends unknown[]

Properties

broadcast()

ts
broadcast: (...args) => void;

Notifies attached handlers with specified payload.

Parameters

• ...args: [...T[]]

The payload of the notification.

Returns

void

Defined in

event.ts:5 ↗