mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Bugfix in async.d.ts: error parameter in callbacks is listed as string but Error objects are put in.
This commit is contained in:
Vendored
+2
-2
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user