UNPKG

469 BTypeScriptView Raw
1export declare class DomController {
2 /**
3 * Schedules a task to run during the READ phase of the next frame.
4 * This task should only read the DOM, but never modify it.
5 */
6 read(cb: RafCallback): void;
7 /**
8 * Schedules a task to run during the WRITE phase of the next frame.
9 * This task should write the DOM, but never READ it.
10 */
11 write(cb: RafCallback): void;
12}
13export declare type RafCallback = (timeStamp?: number) => void;