From 441e0ac7ce515175ddd1f0e4ea3de5f965d4c87c Mon Sep 17 00:00:00 2001 From: jonathanfishbein1 Date: Sat, 12 Mar 2016 22:43:29 -0500 Subject: [PATCH] Change return type of compe and seq functions to Function from void --- async/async.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/async/async.d.ts b/async/async.d.ts index 543b3751d..b266786b6 100644 --- a/async/async.d.ts +++ b/async/async.d.ts @@ -127,8 +127,8 @@ interface Async { doDuring(fn: AsyncVoidFunction, test: (testCallback: (error: Error, truth: boolean) => void) => void, callback: (err: any) => void): void; forever(next: (errCallback : (err: Error) => void) => void, errBack: (err: Error) => void) : void; waterfall(tasks: Function[], callback?: (err: Error, results?: any) => void): void; - compose(...fns: Function[]): void; - seq(...fns: Function[]): void; + compose(...fns: Function[]): Function; + seq(...fns: Function[]): Function; applyEach(fns: Function[], argsAndCallback: any[]): void; // applyEach(fns, args..., callback). TS does not support ... for a middle argument. Callback is optional. applyEachSeries(fns: Function[], argsAndCallback: any[]): void; // applyEachSeries(fns, args..., callback). TS does not support ... for a middle argument. Callback is optional. queue(worker: AsyncWorker, concurrency?: number): AsyncQueue;