MCPcopy Index your code
hub / github.com/TanStack/ai / fromArray

Function fromArray

packages/ai-opencode/tests/translate.test.ts:26–30  ·  view source on GitHub ↗
(
  events: Array<OpencodeStreamEvent>,
)

Source from the content-addressed store, hash-verified

24}
25
26async function* fromArray(
27 events: Array<OpencodeStreamEvent>,
28): AsyncIterable<OpencodeStreamEvent> {
29 for (const event of events) yield event
30}
31
32async function collect(
33 events: Array<OpencodeStreamEvent>,

Callers 1

collectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected