# @types/react-timeout

> TypeScript definitions for react-timeout

Latest version **1.1.7** (published 2025-11-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-timeout
pnpm add @types/react-timeout
yarn add @types/react-timeout
bun add @types/react-timeout
```

## Health

**Score 65/100 (B)** — status: stable.

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.1.7 |
| Published | 2025-11-14 |
| First published | 2018-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 1.1.7 (latest) — 2025-11-14
- 1.1.6 (ts4.5) — 2023-11-07
- 1.1.3 (ts3.7) — 2021-10-20
- 1.1.2 (ts3.6) — 2021-07-08
- 1.1.1 (ts2.8) — 2018-08-06
- 1.1.0 (ts2.6) — 2018-04-11
- 1.1.5 — 2023-10-18
- 1.1.4 — 2023-09-27

## README

# Installation
> `npm install --save @types/react-timeout`

# Summary
This package contains type definitions for react-timeout (https://github.com/plougsgaard/react-timeout).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-timeout.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-timeout/index.d.ts)
````ts
import * as React from "react";

export = ReactTimeout;

declare function ReactTimeout<T>(
    SourceComponent: React.ComponentClass<T> | React.FunctionComponent<T>,
): React.ComponentClass<T>;

declare namespace ReactTimeout {
    type Timer = typeof globalThis extends { setTimeout(...args: any[]): infer T } ? T : Id;
    type Immediate = typeof globalThis extends { setImmediate(...args: any[]): infer T } ? T : Id;

    type Id = number;

    interface ReactTimeoutProps {
        setTimeout?: ((callback: (...args: any[]) => void, ms: number, ...args: any[]) => Timer) | undefined;
        clearTimeout?: ((timer: Timer | Id) => void) | undefined;
        setInterval?: ((callback: (...args: any[]) => void, ms: number, ...args: any[]) => Timer) | undefined;
        clearInterval?: ((id: Timer | Id) => void) | undefined;
        setImmediate?: ((callback: (...args: any[]) => void, ...args: any[]) => Immediate) | undefined;
        clearImmediate?: ((id: Immediate | Id) => void) | undefined;
        requestAnimationFrame?: ((callback: (...args: any[]) => void) => Id) | undefined;
        cancelAnimationFrame?: ((id: Id) => void) | undefined;
    }
}

````

### Additional Details
 * Last updated: Fri, 14 Nov 2025 18:02:08 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Kerwyn Rojas](https://github.com/kerwynrg).

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