Skip to content

Commit 90bf20d

Browse files
committed
Remove Thenable
1 parent 8ffcbd9 commit 90bf20d

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

src/browser/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
],
88
"outDir": "../../out",
99
"types": [
10-
"../../node_modules/@types/mocha",
11-
"../vs/typings/thenable.d.ts"
10+
"../../node_modules/@types/mocha"
1211
],
1312
"baseUrl": "..",
1413
"paths": {

src/vs/base/common/async.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export function raceTimeout<T>(promise: Promise<T>, timeout: number, onTimeout?:
124124
]);
125125
}
126126

127-
export function asPromise<T>(callback: () => T | Thenable<T>): Promise<T> {
127+
export function asPromise<T>(callback: () => T | PromiseLike<T>): Promise<T> {
128128
return new Promise<T>((resolve, reject) => {
129129
const item = callback();
130130
if (isThenable<T>(item)) {

src/vs/typings/thenable.d.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)