// Type definitions for p-map 1.1 // Project: https://github.com/sindresorhus/p-map#readme // Definitions by: BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 export = pMap; declare function pMap(input: Iterable>, mapper: Mapper, options?: pMap.Options): Promise; type Input = Promise | PromiseLike | T; type Mapper = (el: T, index: number) => Promise | R; declare namespace pMap { interface Options { concurrency?: number; } }