stromjs
Version:
Dependency-free streams utils for Node.js
15 lines (14 loc) • 694 B
TypeScript
/// <reference types="node" />
/// <reference types="node" />
import { TransformOptions, Transform, Readable, Writable } from "stream";
export declare function compose(streams: (Readable | Writable)[], errorCallback?: (err: any) => void, options?: TransformOptions): Compose;
export declare class Compose extends Transform {
private first;
private last;
private streams;
constructor(streams: (Readable | Writable)[], errorCallback?: (err: any) => void, options?: TransformOptions);
_transform(chunk: any, encoding: BufferEncoding, cb: any): void;
_flush(cb: any): void;
_destroy(error: any, cb: (error?: any) => void): void;
bubble(...events: string[]): void;
}