# @types/raf

> TypeScript definitions for raf

Latest version **3.4.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/raf
pnpm add @types/raf
yarn add @types/raf
bun add @types/raf
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.4.3 |
| Published | 2023-11-07 |
| First published | 2019-01-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/raf
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/raf
- npm.io page: https://npm.io/package/@types/raf

## Recent versions

- 3.4.3 (latest) — 2023-11-07
- 3.4.0 (ts2.0) — 2019-01-03
- 3.4.2 — 2023-10-18
- 3.4.1 — 2023-09-27

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/raf/index.d.ts)
````ts
declare const raf: {
    (callback: (timestamp: number) => void): number;
    cancel: (handle: number) => void;
    polyfill: (globalObject?: any) => void;
};

export = raf;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Ben Lorantfy](https://github.com/BenLorantfy).

---
_Source: https://npm.io/package/@types/raf · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
