UNPKG

@johngw/stream

Version:

Reactive programming tools using the WHATWG Streams API.

19 lines 430 B
/** * Adds a counter representing the amount of chunks * received thus far. * * @group Transformers * @example * ``` * --a----------------------b-------| * * withCounter() * * --{chunk:'a',counter:0}--{chunk:'b',counter:1}-| * ``` */ export declare function withCounter<T>(start?: number): import("node:stream/web").TransformStream<T, { chunk: T; counter: number; }>; //# sourceMappingURL=withCounter.d.ts.map