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

16 lines
397 B
TypeScript
Raw Normal View History

interface RequestIdleCallback {
didTimeout?: boolean;
timeRemaining?: () => number;
}
interface RequestIdleCallbackOptions {
timeout?: number;
}
type RequestIdleCallbackId = number;
interface Window {
requestIdleCallback(cb: (deadline: RequestIdleCallback) => any, options?: RequestIdleCallbackOptions): RequestIdleCallbackId;
cancelIdleCallback(id: RequestIdleCallbackId): void;
}