@johngw/stream
Version:
Reactive programming tools using the WHATWG Streams API.
15 lines • 359 B
TypeScript
/**
* Puts the current value and previous value together as an array, and queues that.
*
* @group Transformers
* @example
* ```
* --a----b------c------d------
*
* pairwise()
*
* -------[a,b]--[b,c]--[c,d]--
* ```
*/
export declare function pairwise<T>(): import("node:stream/web").TransformStream<T, [T, T]>;
//# sourceMappingURL=pairwise.d.ts.map