stream-to-it
Version:
Convert Node.js streams to streaming iterables
9 lines • 529 B
TypeScript
/// <reference types="node" />
import type { Source, Transform } from 'it-stream-types';
import type { Duplex } from 'node:stream';
/**
* Convert a [`Transform`](https://nodejs.org/dist/latest/docs/api/stream.html#class-streamtransform)
* stream to an [iterable transform](https://achingbrain.github.io/it-stream-types/interfaces/Transform.html).
*/
export declare function transform<Input = unknown, Output = Input>(transform: Duplex): Transform<Source<Input>, AsyncGenerator<Output>>;
//# sourceMappingURL=transform.d.ts.map