hole
Version:
Async friendly, stream-based task consuming utility in Node.js
9 lines (8 loc) • 332 B
TypeScript
/// <reference types="node" />
import { Transform, Writable } from 'stream';
export declare type Processor<T, U> = ((param0: T) => U | void) | Transform | Writable;
export interface ProcessorOption {
maxParallel?: number;
highWaterMark?: number;
}
export declare type ProcessorInfo = [Processor<any, any>, ProcessorOption];