UNPKG

preemptive-animation-frame

Version:
9 lines (6 loc) 327 B
// @flow import * as RAF from "request-polyfilled-animation-frame"; declare export function cancelAnimationFrame(id: number): void; declare export function forceAnimationFrame(time?: number): void; declare export function now(): number; declare export function requestAnimationFrame<a>(request: (time: number) => a): number;