workaround layer breaker where dom-API is dependent on from common (#197662)

workaround https://github.com/microsoft/vscode/issues/197661
This commit is contained in:
Johannes Rieken 2023-11-07 19:34:42 +01:00 committed by GitHub
parent ce40e7ce61
commit 273862296b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1274,7 +1274,7 @@ declare function cancelIdleCallback(handle: number): void;
};
};
} else {
runWhenIdle = (targetWindow, runner, timeout?) => {
runWhenIdle = (targetWindow: any, runner, timeout?) => {
const handle: number = targetWindow.requestIdleCallback(runner, typeof timeout === 'number' ? { timeout } : undefined);
let disposed = false;
return {