-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathasync.d.ts
16 lines (15 loc) · 1.41 KB
/
async.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// https://github.com/caolan/async
declare module "async" {
export function each(values: any[], iterator: (item: any, callback: Function) => void, callback: (err: Error) => void): void;
export function map(values: any[], generator: (err: Error, result: any) => void, callback: (err: Error, results: any[]) => void): void;
export function mapSeries(values: any[], generator: (err: Error, result: any) => void, callback: (err: Error, results: any[]) => void): void;
export function mapLimit(values: any[], limit: number, generator: (err: Error, result: any) => void, callback: (err: Error, results: any[]) => void): void;
export function filter(values: any[], generator: (err: Error, result: boolean) => void, callback: (err: Error, results: any[]) => void): void;
export function parallel(funcs: any[], callback?: (err, result: any) => void): void;
export function parallel(funcs: any, callback?: (err, result: any) => void): void;
export function parallelLimit(funcs: any[], limit: number, callback?: (err, result: any) => void): void;
export function parallelLimit(funcs: any, limit: number, callback?: (err, result: any) => void): void;
//export function series(funcs: ((done: () => void) => void)[]);
export function series(funcs: any[], callback?: (err, result: any) => void): void;
export function waterfall(funcs: any[], callback?: (err, result: any) => void): void;
}