WIP: Array<> stuff

This commit is contained in:
Andy Hanson
2016-11-28 11:24:05 -08:00
parent 8e2c6958a6
commit 6ba254f0ac
89 changed files with 604 additions and 611 deletions
+2 -2
View File
@@ -8,9 +8,9 @@
* Processes each of the elements in the array and triggers a callback once every element has been processed.
* - note that the elements are called in order but are not guaranteed to finish in order.
*/
export declare function asyncEach<T>(array: Array<T>, each: (i: number, element: T, done: (err?: Error) => void) => void, finish: (err?: Error) => void): void;
export declare function asyncEach<T>(array: T[], each: (i: number, element: T, done: (err?: Error) => void) => void, finish: (err?: Error) => void): void;
/**
* Processes each of the elements in the array and triggers a callback once every element has been processed.
* - note that the elements are called in order and are guaranteed to finish in order.
*/
export declare function awaitEach<T>(array: Array<T>, each: (i: number, element: T, done: (err?: Error) => void) => void, finish: (err?: Error) => void): void;
export declare function awaitEach<T>(array: T[], each: (i: number, element: T, done: (err?: Error) => void) => void, finish: (err?: Error) => void): void;