UNPKG

@medusajs/utils

Version:

Medusa utilities functions shared by Medusa core and Modules

11 lines 369 B
/** * Promise.allSettled with error handling, safe alternative to Promise.all * @param promises * @param aggregateErrors */ export declare function promiseAll<T extends readonly unknown[] | []>(promises: T, { aggregateErrors }?: { aggregateErrors: boolean; }): Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>; //# sourceMappingURL=promise-all.d.ts.map