Skip to content

TypedBroadcastEvent

Defined in: broadcast-event.ts:7

Name extends string

Map extends Record<string, StandardSchemaV1>

readonly channel: BroadcastChannel;

Defined in: broadcast-event.ts:11


map: Map;

Defined in: utils/types.ts:58

ValidatorMap.map


name: Name;

Defined in: utils/types.ts:59

ValidatorMap.name


target: EventTarget;

Defined in: broadcast-event.ts:12

dispatch<Event, Input>(
name,
input,
options?): void;

Defined in: utils/types.ts:41

Event extends string

Input extends object

Event

Input

void

ValidatorMap.dispatch


listen<Event, Input>(name, callback): () => void;

Defined in: utils/types.ts:50

Event extends string

Input extends object

Event

ListenerCallback<Input, "event" | "message">

() => void

ValidatorMap.listen