// Type definitions for p-settle 2.0 // Project: https://github.com/sindresorhus/p-settle#readme // Definitions by: Nate Silva // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace pSettle { interface SettledResult { isFulfilled: boolean; isRejected: boolean; /** If the promise was fulfilled, the resolved value */ value?: T; /** If the promise was rejected, the reason */ reason?: any; } } /** * Returns a Promise that is fulfilled when all promises in `input` are settled. * * The fulfilled value is an array of objects with the following properties: * * * `isFulfilled` * * `isRejected` * * `value` or `reason` (Depending on whether the promise fulfilled or rejected) */ declare function pSettle(input: Iterable>): Promise>>; export = pSettle;