@better-typescript-lib/es2020
Advanced tools
Comparing version 2.2.1 to 2.3.0
{ | ||
"name": "@better-typescript-lib/es2020", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"description": "Better TypeScript standard library", | ||
@@ -5,0 +5,0 @@ "types": "./index.d.ts", |
@@ -9,4 +9,5 @@ /// <reference no-default-lib="true"/> | ||
status: "rejected"; | ||
reason: any; | ||
reason: unknown; | ||
} | ||
// reason: any; | ||
@@ -26,3 +27,5 @@ type PromiseSettledResult<T> = | ||
values: T | ||
): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>> }>; | ||
): Promise<{ | ||
-readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>>; | ||
}>; | ||
@@ -36,4 +39,18 @@ /** | ||
allSettled<T>( | ||
values: Iterable<T | PromiseLike<T>> | ||
values: Iterable<T> | ||
): Promise<PromiseSettledResult<Awaited<T>>[]>; | ||
} | ||
// /** | ||
// * Creates a Promise that is resolved with an array of results when all | ||
// * of the provided Promises resolve or reject. | ||
// * @param values An array of Promises. | ||
// * @returns A new Promise. | ||
// */ | ||
// allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>> }>; | ||
// /** | ||
// * Creates a Promise that is resolved with an array of results when all | ||
// * of the provided Promises resolve or reject. | ||
// * @param values An array of Promises. | ||
// * @returns A new Promise. | ||
// */ | ||
// allSettled<T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>; |
92129
1760