UNPKG

@tanstack/ai

Version:

Type-safe TypeScript AI SDK for streaming chat, tool calling, agents, structured outputs, and multimodal generation.

7 lines (6 loc) • 285 B
/** * Yield the items of several async streams as they arrive. If the reader * stops early, every stream that is still open is closed, so its `finally` * runs. */ export declare function mergeStreams<T>(streams: Array<AsyncIterable<T>>): AsyncGenerator<Awaited<T>, void, unknown>;