Skip to content

Commit

Permalink
Remove Promise redeclaration
Browse files Browse the repository at this point in the history
Now that we target ES2018, we don't need to declare this ourselves.
  • Loading branch information
jakebailey committed Oct 31, 2022
1 parent 6aa7f3e commit bbdce63
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/services/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,6 @@ import {
unescapeLeadingUnderscores, UserPreferences, VariableDeclaration, visitEachChild, VoidExpression, YieldExpression,
} from "./_namespaces/ts";

/** @internal */ // Don't expose that we use this
// Based on lib.es6.d.ts
declare global {
// Module transform: converted from ambient declaration
/** @internal */
interface PromiseConstructor {
new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
reject(reason: any): Promise<never>;
all<T>(values: (T | PromiseLike<T>)[]): Promise<T[]>;
}
}
/** @internal */
declare global {
// Module transform: converted from ambient declaration
/** @internal */
var Promise: PromiseConstructor; // eslint-disable-line no-var
}

// These utilities are common to multiple language service features.
//#region
/** @internal */
Expand Down

0 comments on commit bbdce63

Please sign in to comment.