mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
fix compilation error
This commit is contained in:
@@ -41,7 +41,7 @@ export function anyEvent<T>(...events: Event<T>[]): Event<T> {
|
||||
}
|
||||
|
||||
export function done<T>(promise: Promise<T>): Promise<void> {
|
||||
return promise.then(() => null, () => null);
|
||||
return promise.then<void>(() => void 0, () => void 0);
|
||||
}
|
||||
|
||||
export function throttle<T>(fn: () => Promise<T>): () => Promise<T> {
|
||||
|
||||
Reference in New Issue
Block a user