// Type definitions for p-some 2.0 // Project: https://github.com/sindresorhus/p-some#readme // Definitions by: BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 import AggregateErrorModule = require('aggregate-error'); export = pSome; declare function pSome(values: Array> | Iterable>, options: pSome.Options): Promise; type Value = T | PromiseLike; declare namespace pSome { interface Options { count: number; filter?(value: T): boolean; } const AggregateError: typeof AggregateErrorModule; }