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:
Matt Bierner
2017-04-13 17:14:50 -07:00
committed by GitHub
parent 1d05d0c49d
commit 0d14027696
5 changed files with 11 additions and 11 deletions

View File

@@ -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> {