UNPKG

piecemeal

Version:

Effortless incrementally deliver your data

9 lines (6 loc) 270 B
import { ServerResponse } from 'http'; import { Options } from 'piecemeal'; declare const stream: <T extends unknown>(data: AsyncIterableIterator<T> | IterableIterator<T>, options?: Options) => { pipe: (res: ServerResponse) => Promise<void>; }; export { stream };