@exadel/esl
Version:
Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components
13 lines (12 loc) • 444 B
TypeScript
import type { AnyToAnyFnSignature } from '../misc/functions';
export declare class RAFMock {
private handleCounter;
private queue;
requestAnimationFrame(callback: AnyToAnyFnSignature): number;
cancelAnimationFrame(handle: number): void;
triggerNextAnimationFrame(time?: number): void;
triggerAllAnimationFrames(time?: number): void;
reset(): void;
static applyMock(): void;
static get instance(): RAFMock;
}