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

4 lines (3 loc) 230 B
import type { Awaitable } from "./Awaitable"; /** For each loop on stream, you can modify the item by x.property = 123 */ export declare function forEachs<T>(fn: (x: T, i: number) => Awaitable<void | any>): TransformStream<T, T>;