From 6cfdabc5b280210fab2c3ccf834c8289e05c619e Mon Sep 17 00:00:00 2001 From: Rogier Schouten Date: Fri, 6 Jun 2014 15:05:04 +0200 Subject: [PATCH] Bugfix in async.d.ts: error parameter in callbacks is listed as string but Error objects are put in. --- 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 f0b8cacdfe..d85679b68c 100644 --- a/async/async.d.ts +++ b/async/async.d.ts @@ -3,8 +3,8 @@ // Definitions by: Boris Yankov // Definitions: https://github.com/borisyankov/DefinitelyTyped -interface AsyncMultipleResultsCallback { (err: string, results: T[]): any; } -interface AsyncSingleResultCallback { (err: string, result: T): void; } +interface AsyncMultipleResultsCallback { (err: Error, results: T[]): any; } +interface AsyncSingleResultCallback { (err: Error, result: T): void; } interface AsyncTimesCallback { (n: number, callback: AsyncMultipleResultsCallback): void; } interface AsyncIterator { (item: T, callback: AsyncSingleResultCallback): void; }