From 5ab6100d6ee80494230ab6fdc2c6a7e53c2c58dc Mon Sep 17 00:00:00 2001 From: Jack Bates Date: Fri, 23 Aug 2019 15:02:06 -0700 Subject: [PATCH] Better typings for Promise executor, like #31117 --- src/lib/es2015.promise.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/es2015.promise.d.ts b/src/lib/es2015.promise.d.ts index 83776137c33c1..72ebe87ba07d8 100644 --- a/src/lib/es2015.promise.d.ts +++ b/src/lib/es2015.promise.d.ts @@ -10,7 +10,7 @@ interface PromiseConstructor { * a resolve callback used to resolve the promise with a value or the result of another promise, * and a reject callback used to reject the promise with a provided reason or error. */ - new (executor: (resolve: (value?: T | PromiseLike) => void, reject: (reason?: any) => void) => void): Promise; + new (executor: (resolve: (value?: T) => void, reject: (reason?: any) => void) => void): Promise ? U : T>; /** * Creates a Promise that is resolved with an array of results when all of the provided Promises