stream-to-it
Version:
Convert Node.js streams to streaming iterables
9 lines • 455 B
TypeScript
/// <reference types="node" />
import type { Sink, Source } from 'it-stream-types';
import type { Writable } from 'node:stream';
/**
* Convert a Node.js [`Writable`](https://nodejs.org/dist/latest/docs/api/stream.html#class-streamwritable)
* stream to a [sink](https://achingbrain.github.io/it-stream-types/interfaces/Sink.html).
*/
export declare function sink<T>(writable: Writable): Sink<Source<T>, Promise<void>>;
//# sourceMappingURL=sink.d.ts.map