Visitar URL original
Fix a compile error in Promise def. · benkingcode/NativeScript@57b3d94 · GitHub
Skip to content

Commit 57b3d94

Browse files
committed
Fix a compile error in Promise def.
1 parent ec97431 commit 57b3d94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎es6-promise.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ interface PromiseConstructor {
103103
* a resolve callback used resolve the promise with a value or the result of another promise,
104104
* and a reject callback used to reject the promise with a provided reason or error.
105105
*/
106-
new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
106+
new <T>(executor: (resolve: (value?: T | Thenable<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
107107

108108
/**
109109
* Returns promise (only if promise.constructor == Promise)

0 commit comments

Comments
 (0)