Roo-Code/jetbrains/host/typings/base-common.d.ts
2025-09-11 18:30:12 -05:00

18 lines
710 B
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
// Declare types that we probe for to implement util and/or polyfill functions
declare global {
interface IdleDeadline {
readonly didTimeout: boolean
timeRemaining(): number
}
function requestIdleCallback(callback: (args: IdleDeadline) => void, options?: { timeout: number }): number
function cancelIdleCallback(handle: number): void
}
export {}