提交 56d032e4 编写于 作者: M Matt Bierner 提交者: GitHub

Fix tpromise callback sig for ts 2.4 (#30228)

Fixes #30216

Changes the TPromise callback interface as suggested by https://github.com/Microsoft/vscode/issues/30216#issuecomment-313558951 to fix async functions when compiling using ts 2.4+
上级 c5bf26a6
......@@ -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;
}
......
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册