raf.d.ts 708 B

123456789101112131415
  1. /**
  2. * Thanks for following contributor of codes
  3. * https://gist.github.com/1866474
  4. * http://paulirish.com/2011/requestanimationframe-for-smart-animating/
  5. * http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
  6. * https://github.com/Financial-Times/polyfill-library/blob/master/polyfills/requestAnimationFrame/polyfill.js
  7. **/
  8. export declare const root: any;
  9. export declare const pnow: () => number;
  10. type TRequestAnimationFrame = (callback: (...args: any[]) => any) => number;
  11. type TCancelAnimationFrame = (id: number) => void;
  12. export declare const raf: TRequestAnimationFrame;
  13. export declare const caf: TCancelAnimationFrame;
  14. export {};
  15. //# sourceMappingURL=raf.d.ts.map