mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-12-06 00:27:20 +00:00
18 lines
710 B
TypeScript
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 {}
|