1 | # Installation
|
2 | > `npm install --save @types/raf`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for raf (https://github.com/chrisdickinson/raf#readme).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/raf.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/raf/index.d.ts)
|
10 | ````ts
|
11 | declare const raf: {
|
12 | (callback: (timestamp: number) => void): number;
|
13 | cancel: (handle: number) => void;
|
14 | polyfill: (globalObject?: any) => void;
|
15 | };
|
16 |
|
17 | export = raf;
|
18 |
|
19 | ````
|
20 |
|
21 | ### Additional Details
|
22 | * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
|
23 | * Dependencies: none
|
24 |
|
25 | # Credits
|
26 | These definitions were written by [Ben Lorantfy](https://github.com/BenLorantfy).
|
27 |
|
\ | No newline at end of file |