We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b59cfb commit 5ab6100Copy full SHA for 5ab6100
src/lib/es2015.promise.d.ts
@@ -10,7 +10,7 @@ interface PromiseConstructor {
10
* a resolve callback used to resolve the promise with a value or the result of another promise,
11
* and a reject callback used to reject the promise with a provided reason or error.
12
*/
13
- new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
+ new <T>(executor: (resolve: (value?: T) => void, reject: (reason?: any) => void) => void): Promise<T extends PromiseLike<infer U> ? U : T>;
14
15
/**
16
* Creates a Promise that is resolved with an array of results when all of the provided Promises
0 commit comments