Merge pull request #1137 from NativeScript/hdeshev/es6-promise-fix

Fix a compile error in Promise def.
This commit is contained in:
Hristo Deshev
2015-11-23 16:54:18 +02:00

2
es6-promise.d.ts vendored
View File

@@ -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 <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
new <T>(executor: (resolve: (value?: T | Thenable<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
/**
* Returns promise (only if promise.constructor == Promise)