Skip to content

Commit

Permalink
Fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
joshkel committed Apr 28, 2024
1 parent f3874fd commit 1d1c330
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/workbox-core/src/_private/allSettled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ export type PromiseResult<T> = PromiseResolution<T> | PromiseRejection;
* https://github.com/es-shims/Promise.allSettled/blob/main/implementation.js
*
* which is (c) 2019 Jordan Harband and used under the terms of the MIT license.
*
* @private
*/
export function allSettled<T>(
function allSettled<T>(
iterable: Iterable<Promise<T>>,
): Promise<PromiseResult<T>[]> {
const values = Array.from(iterable);
Expand All @@ -40,3 +42,5 @@ export function allSettled<T>(
}),
);
}

export {allSettled};

0 comments on commit 1d1c330

Please sign in to comment.