@ifreeovo/highlight-dom
Version:
实现类似dom-inspector的高亮效果
9 lines (8 loc) • 339 B
TypeScript
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;