Bugfix in async.d.ts: error parameter in callbacks is listed as string but Error objects are put in.

This commit is contained in:
Rogier Schouten
2014-06-06 15:05:04 +02:00
parent cee2ec0948
commit 6cfdabc5b2

4
async/async.d.ts vendored
View File

@@ -3,8 +3,8 @@
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface AsyncMultipleResultsCallback<T> { (err: string, results: T[]): any; }
interface AsyncSingleResultCallback<T> { (err: string, result: T): void; }
interface AsyncMultipleResultsCallback<T> { (err: Error, results: T[]): any; }
interface AsyncSingleResultCallback<T> { (err: Error, result: T): void; }
interface AsyncTimesCallback<T> { (n: number, callback: AsyncMultipleResultsCallback<T>): void; }
interface AsyncIterator<T, R> { (item: T, callback: AsyncSingleResultCallback<R>): void; }