mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
Fix a few compile issues when using TS 2.3 (#24731)
Tested recomppiling VSCode with TS2.3. This fixes a few issues that were discovered, including workarounds for: * https://github.com/Microsoft/TypeScript/issues/15184 * https://github.com/Microsoft/TypeScript/issues/15185
This commit is contained in:
@@ -53,7 +53,7 @@ export function anyEvent<T>(...events: Event<T>[]): Event<T> {
|
||||
}
|
||||
|
||||
export function done<T>(promise: Promise<T>): Promise<void> {
|
||||
return promise.then<void>(() => void 0, () => void 0);
|
||||
return promise.then<void>(() => void 0);
|
||||
}
|
||||
|
||||
export function once<T>(event: Event<T>): Event<T> {
|
||||
|
||||
Reference in New Issue
Block a user