13 lines
611 B
TypeScript
13 lines
611 B
TypeScript
/// <reference types="node" />
|
|
import 'typings-global';
|
|
import { Transform } from 'stream';
|
|
export declare type TExecutionMode = 'forEach' | 'forFirst' | 'atEnd';
|
|
export interface IPromiseFunction {
|
|
(file?: any, enc?: any): PromiseLike<any>;
|
|
}
|
|
declare let defaultExport: (functionsToExecuteArg: IPromiseFunction | IPromiseFunction[], executionModeArg?: TExecutionMode) => Transform;
|
|
export declare let forEach: (funcArg: IPromiseFunction) => void;
|
|
export declare let forFirst: (funcArg: IPromiseFunction) => void;
|
|
export declare let atEnd: (funcArg: IPromiseFunction) => void;
|
|
export default defaultExport;
|