UNPKG

@ifreeovo/highlight-dom

Version:
9 lines (8 loc) 339 B
import 'requestidlecallback'; export interface Task { id: string; interruptSchedule: () => void; isInterrupt: boolean; } export declare function makeHash(length?: number): string; export declare function schedule(task: (...args: any[]) => void, canExec: (...args: any[]) => boolean, finished?: (...args: any[]) => void): Task;