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

6 lines 309 B
import type { Awaitable } from "./Awaitable"; /** chunk items if condition is true */ export declare function chunkIfs<T>(predicate: (x: T, i: number, chunks: T[]) => Awaitable<boolean>, { inclusive }?: { inclusive?: boolean | undefined; }): TransformStream<T, T[]>; //# sourceMappingURL=chunkIfs.d.ts.map