Skip to content

Commit

Permalink
Fix tpromise callback sig for ts 2.4 (#30228)
Browse files Browse the repository at this point in the history
Fixes #30216

Changes the TPromise callback interface as suggested by #30216 (comment) to fix async functions when compiling using ts 2.4+
  • Loading branch information
mjbvz authored Jul 7, 2017
1 parent c5bf26a commit 56d032e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vs/base/common/winjs.base.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export declare class Promise {
* The value callback to complete a promise
*/
export interface TValueCallback<T> {
(value: T): void;
(value: T | Thenable<T>): void;
}


Expand Down
2 changes: 1 addition & 1 deletion src/vs/monaco.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ declare module monaco {
* The value callback to complete a promise
*/
export interface TValueCallback<T> {
(value: T): void;
(value: T | Thenable<T>): void;
}


Expand Down

0 comments on commit 56d032e

Please sign in to comment.