Skip to content

Commit

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

Changes the TPromise callback interface as suggested by microsoft#30216 (comment) to fix async functions when compiling using ts 2.4+
  • Loading branch information
mjbvz committed Jul 7, 2017
1 parent 3858a18 commit ce724cf
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 ce724cf

Please sign in to comment.