diff --git a/packages/app/src/utils/scroll-jank-investigation.ts b/packages/app/src/utils/scroll-jank-investigation.ts index 77541882c..b00ea864d 100644 --- a/packages/app/src/utils/scroll-jank-investigation.ts +++ b/packages/app/src/utils/scroll-jank-investigation.ts @@ -366,7 +366,7 @@ export function installScrollJankInvestigation(): void { timeoutHandles.set(timeoutId, true); timerStats.timeout.active = timeoutHandles.size; return timeoutId as unknown as ReturnType; - }) as typeof setTimeout; + }) as unknown as typeof setTimeout; globalThis.clearTimeout = ((timeoutId?: number) => { if (typeof timeoutId === "number" && timeoutHandles.delete(timeoutId)) { @@ -391,7 +391,7 @@ export function installScrollJankInvestigation(): void { intervalHandles.set(intervalId, true); timerStats.interval.active = intervalHandles.size; return intervalId as unknown as ReturnType; - }) as typeof setInterval; + }) as unknown as typeof setInterval; globalThis.clearInterval = ((intervalId?: number) => { if (typeof intervalId === "number" && intervalHandles.delete(intervalId)) {