mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 17:20:09 +00: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:
4
async/async.d.ts
vendored
4
async/async.d.ts
vendored
@@ -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