@naturalcycles/nodejs-lib
Version:
Standard library for Node.js
8 lines (7 loc) • 371 B
TypeScript
/// <reference types="node" />
import { TransformOpt } from '../stream.model';
/**
* Wrapper around stream.pipeline() that will collect all results as array and emit it with Promise in the end.
* Will throw on error.
*/
export declare function pipelineToArray<OUT = any>(streams: (NodeJS.ReadableStream | NodeJS.WritableStream)[], opt?: TransformOpt): Promise<OUT[]>;