MCPcopy
hub / github.com/ampproject/worker-dom / Emitter

Interface Emitter

src/test/Emitter.ts:7–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5type Subscriber = (strings: Array<string>, message: MutationFromWorker, buffers: Array<ArrayBuffer>) => void;
6
7export interface Emitter {
8 once(callback: Subscriber): void;
9 subscribe(callback: Subscriber): void;
10 unsubscribe(callback: Subscriber): void;
11}
12
13/**
14 * This has to persist across multiple emitter() calls since

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…