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
2017-04-25 01:29:16 +09:00

16 lines
401 B
TypeScript

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;
}