mirror of
https://github.com/rhysd/Mstdn.git
synced 2025-01-21 20:52:11 +01:00
16 lines
401 B
TypeScript
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;
|
|
}
|