1
0
mirror of https://github.com/rhysd/Mstdn.git synced 2025-01-21 20:52:11 +01:00
Mstdn/typings/request-idle-callback.d.ts

10 lines
239 B
TypeScript
Raw Normal View History

interface RequestIdleCallback {
didTimeout?: boolean;
timeRemaining?: () => number;
}
interface Window {
requestIdleCallback(cb: (deadline: RequestIdleCallback) => any): NodeJS.Timer;
cancelIdleCallback(id: NodeJS.Timer): void;
}