Skip to content

Commit 1e6f6b2

Browse files
committed
Remove Promise redeclaration, our target includes Promise
1 parent fcbe377 commit 1e6f6b2

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/services/utilities.ts

-18
Original file line numberDiff line numberDiff line change
@@ -60,24 +60,6 @@ import {
6060
unescapeLeadingUnderscores, UserPreferences, VariableDeclaration, visitEachChild, VoidExpression, YieldExpression,
6161
} from "./_namespaces/ts";
6262

63-
/** @internal */ // Don't expose that we use this
64-
// Based on lib.es6.d.ts
65-
declare global {
66-
// Module transform: converted from ambient declaration
67-
/** @internal */
68-
interface PromiseConstructor {
69-
new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
70-
reject(reason: any): Promise<never>;
71-
all<T>(values: (T | PromiseLike<T>)[]): Promise<T[]>;
72-
}
73-
}
74-
/** @internal */
75-
declare global {
76-
// Module transform: converted from ambient declaration
77-
/** @internal */
78-
var Promise: PromiseConstructor; // eslint-disable-line no-var
79-
}
80-
8163
// These utilities are common to multiple language service features.
8264
//#region
8365
/** @internal */

0 commit comments

Comments
 (0)