# @types/redux-timeout

> TypeScript definitions for redux-timeout

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

## Install

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

## 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 | 2.0.3 |
| Published | 2023-11-07 |
| First published | 2021-12-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51439 |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [redux](https://npm.io/package/redux.md) ^4.1.2

## Recent versions

- 2.0.3 (latest) — 2023-11-07
- 2.0.0 (ts3.8) — 2021-12-12
- 2.0.2 — 2023-10-18
- 2.0.1 — 2023-09-27

## README

# Installation
> `npm install --save @types/redux-timeout`

# Summary
This package contains type definitions for redux-timeout (https://github.com/gpfunk/redux-timeout).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-timeout.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-timeout/index.d.ts)
````ts
import { AnyAction, Middleware } from "redux";

/**
 * Add a timeout
 *
 * @param timeout Time in ms. Uses this value when initializing the setTimeout. This setTimeout will be cleared and recreated on any dispatches of action.
 * @param action Action or array of actions to watch for.
 * @param toCall Function to call when timeout is triggered.
 * @return Returns an add timeout action.
 */
export function addTimeout(timeout: number, action: string | string[], toCall: (...args: any) => void): AnyAction;

/**
 * Remove a timeout
 *
 * @param action Action or array of actions to remove from the watched list.
 * @return Returns a remove timeout action.
 */
export function removeTimeout(action: string | string[]): AnyAction;

/**
 * Creates a reduxTimeout middleware.
 *
 * @return Returns a middleware.
 */
export function reduxTimeout(): Middleware;

/**
 * Set as an action to watch and the middleware will watch for ANY actions that are dispatched.
 */
export const WATCH_ALL: string;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [redux](https://npmjs.com/package/redux)

# Credits
These definitions were written by [Xavier Balloy](https://github.com/xballoy).

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