Files
Dimitri Benin 963cd2108f [p-each-series] add typings (#18827)
* [p-each-series] add typings

* [p-each-series] remove unused code

* [p-each-series] widen type to PromiseLike
2017-08-10 16:41:42 -07:00

9 lines
396 B
TypeScript

// Type definitions for p-each-series 1.0
// Project: https://github.com/sindresorhus/p-each-series#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = pEachSeries;
declare function pEachSeries<T>(input: Iterable<PromiseLike<T> | T>, iterator: (element: T, index: number) => any): Promise<T[]>;