From 5ebf25ddbff4017a65efeb23cdd0003123e0e8e9 Mon Sep 17 00:00:00 2001 From: Christopher Brown Date: Wed, 10 Jun 2015 13:12:36 -0500 Subject: [PATCH] Fix async.waterfall signature (callback has variadic argument structure) --- async/async.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/async/async.d.ts b/async/async.d.ts index 475191aaf..adf6fe11b 100644 --- a/async/async.d.ts +++ b/async/async.d.ts @@ -96,7 +96,7 @@ interface Async { doWhilst(fn: AsyncVoidFunction, test: () => boolean, callback: (err: any) => void): void; until(test: () => boolean, fn: AsyncVoidFunction, callback: (err: any) => void): void; doUntil(fn: AsyncVoidFunction, test: () => boolean, callback: (err: any) => void): void; - waterfall(tasks: Function[], callback?: AsyncResultArrayCallback): void; + waterfall(tasks: Function[], callback?: (err: any, ...arguments: any[]) => void): void; queue(worker: AsyncWorker, concurrency: number): AsyncQueue; priorityQueue(worker: AsyncWorker, concurrency: number): AsyncPriorityQueue; auto(tasks: any, callback?: AsyncResultArrayCallback): void;