6 lines
200 B
TypeScript
6 lines
200 B
TypeScript
/**
|
|
* Runs the passed callback during the next idle period, or immediately
|
|
* if the browser's visibility state is (or becomes) hidden.
|
|
*/
|
|
export declare const whenIdle: (cb: () => void) => number;
|