Installation

npm install --save @types/raf

Summary

This package contains type definitions for raf (https://github.com/chrisdickinson/raf#readme).

Details

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;

Additional Details

Credits

These definitions were written by Ben Lorantfy.