From 2c4177c074efe4c71bebc2d808661e0cef5331b0 Mon Sep 17 00:00:00 2001 From: Hristo Deshev Date: Mon, 23 Nov 2015 16:32:12 +0200 Subject: [PATCH] Fix a compile error in Promise def. --- es6-promise.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es6-promise.d.ts b/es6-promise.d.ts index c6830fddb..5ebee38fb 100644 --- a/es6-promise.d.ts +++ b/es6-promise.d.ts @@ -103,7 +103,7 @@ interface PromiseConstructor { * a resolve callback used 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 | Thenable) => void, reject: (reason?: any) => void) => void): Promise; /** * Returns promise (only if promise.constructor == Promise)