Skip to content

TypedMessage

Defined in: message.ts:5

  • ValidatorMap<Name, Map, "message", { origin: string; window: Window; }>

Name extends string

Map extends Record<string, StandardSchemaV1>

map: Map;

Defined in: utils/types.ts:58

ValidatorMap.map


name: Name;

Defined in: utils/types.ts:59

ValidatorMap.name


window: Window;

Defined in: message.ts:14

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

Defined in: utils/types.ts:41

Event extends string

Input extends object

Event

Input

string

Window

void

ValidatorMap.dispatch


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

Defined in: utils/types.ts:50

Event extends string

Input extends object

Event

ListenerCallback<Input, "message">

() => void

ValidatorMap.listen