mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #1137 from NativeScript/hdeshev/es6-promise-fix
Fix a compile error in Promise def.
This commit is contained in:
2
es6-promise.d.ts
vendored
2
es6-promise.d.ts
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user