UNPKG

sflow

Version:

sflow is a powerful and highly-extensible library designed for processing and manipulating streams of data effortlessly. Inspired by the functional programming paradigm, it provides a rich set of utilities for transforming streams, including chunking, fil

8 lines 368 B
import type { Awaitable } from "./Awaitable"; /** Returns {data} */ export type PageFetcher<Data, Cursor> = (cursor: Cursor) => Awaitable<{ data?: Data; next?: Cursor | null; }>; export declare function pageStream<Data, Cursor>(initialQuery: Awaitable<Cursor>, fetcher: PageFetcher<Data, Cursor>): ReadableStream<Data>; //# sourceMappingURL=pageStream.d.ts.map