@johngw/stream
Version:
Reactive programming tools using the WHATWG Streams API.
15 lines • 336 B
TypeScript
/**
* Transforms chunks from one value to another.
*
* @group Transformers
* @example
* ```
* --1----2----3----4----|
*
* map((x) => x + 1)
*
* --2----3----4----5----|
* ```
*/
export declare function map<I, O>(fn: (x: I) => O | Promise<O>): import("node:stream/web").TransformStream<I, O>;
//# sourceMappingURL=map.d.ts.map