UNPKG

@naturalcycles/nodejs-lib

Version:
8 lines (7 loc) 371 B
/// <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[]>;