File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1- interface PromiseResolvedResult < T > {
1+ interface PromiseFulfilledResult < T > {
22 status : "fulfilled" ;
33 value : T ;
44}
@@ -8,7 +8,7 @@ interface PromiseRejectedResult {
88 reason : any ;
99}
1010
11- type PromiseSettledResult < T > = PromiseResolvedResult < T > | PromiseRejectedResult ;
11+ type PromiseSettledResult < T > = PromiseFulfilledResult < T > | PromiseRejectedResult ;
1212
1313interface PromiseConstructor {
1414 /**
@@ -17,7 +17,8 @@ interface PromiseConstructor {
1717 * @param values An array of Promises.
1818 * @returns A new Promise.
1919 */
20- allSettled < T extends readonly any [ ] | readonly [ any ] > ( values : T ) : Promise < { - readonly [ P in keyof T ] : PromiseSettledResult < T [ P ] extends PromiseLike < infer U > ? U : T [ P ] > } > ;
20+ allSettled < T extends readonly unknown [ ] | readonly [ unknown ] > ( values : T ) :
21+ Promise < { - readonly [ P in keyof T ] : PromiseSettledResult < T [ P ] extends PromiseLike < infer U > ? U : T [ P ] > } > ;
2122
2223 /**
2324 * Creates a Promise that is resolved with an array of results when all
You can’t perform that action at this time.
0 commit comments