npm install --save @types/raf
This package contains type definitions for raf (https://github.com/chrisdickinson/raf#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/raf. ## index.d.ts
declare const raf: {
(callback: (timestamp: number) => void): number;
cancel: (handle: number) => void;
polyfill: (globalObject?: any) => void;
};
export = raf;These definitions were written by Ben Lorantfy.