| 1 |
/*--------------------------------------------------------------------------------------------- |
| 2 |
* Copyright (c) Microsoft Corporation. All rights reserved. |
| 3 |
* Licensed under the MIT License. See License.txt in the project root for license information. |
| 4 |
*--------------------------------------------------------------------------------------------*/ |
| 5 |
|
| 6 |
// Declare types that we probe for to implement util and/or polyfill functions |
| 7 |
|
| 8 |
declare global { |
| 9 |
|
| 10 |
interface IdleDeadline { |
| 11 |
readonly didTimeout: boolean; |
| 12 |
timeRemaining(): number; |
| 13 |
} |
| 14 |
|
| 15 |
function requestIdleCallback(callback: (args: IdleDeadline) => void, options?: { timeout: number }): number; |
| 16 |
function cancelIdleCallback(handle: number): void; |
| 17 |
|
| 18 |
} |
| 19 |
|
| 20 |
export { } |