MCPcopy
hub / github.com/anomalyco/opencode / emit

Function emit

packages/opencode/test/fixture/tui-sdk.ts:30–33  ·  view source on GitHub ↗
(event: GlobalEvent)

Source from the content-addressed store, hash-verified

28 },
29 } satisfies EventSource,
30 emit(event: GlobalEvent) {
31 if (!fn) throw new Error("event source not ready")
32 fn(event)
33 },
34 }
35}
36

Callers

nothing calls this directly

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected