Add Thenable type
This commit is contained in:
Родитель
cc4eb5e7f6
Коммит
74de882c77
|
@ -46,6 +46,7 @@ function vscodeDtsToTypescript(contents) {
|
|||
return !markerHit;
|
||||
});
|
||||
|
||||
lines.unshift('/// <reference path="./thenable.d.ts" />')
|
||||
lines.push('export = vscode;'); // this is to enable TS module resolution support
|
||||
|
||||
return lines.join('\n');
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "vscode",
|
||||
"version": "1.0.0-beta.1",
|
||||
"version": "1.0.0-beta.2",
|
||||
"typings": "vscode.d.ts",
|
||||
"scripts": {
|
||||
"prepublish": "tsc",
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
interface Thenable<T> extends PromiseLike<T> {}
|
Загрузка…
Ссылка в новой задаче