# @types/q-retry

> TypeScript definitions for q-retry

Latest version **0.0.36** (published 2025-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/q-retry
pnpm add @types/q-retry
yarn add @types/q-retry
bun add @types/q-retry
```

## 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; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.0.36 |
| Published | 2025-10-24 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51446 |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [@types/q](https://npm.io/package/@types/q.md) ^0

## Recent versions

- 0.0.36 (latest) — 2025-10-24
- 0.0.35 (ts5.1) — 2023-11-07
- 0.0.33 (ts4.3) — 2023-08-30
- 0.0.32 (ts3.6) — 2021-07-08
- 0.0.31 (ts3.4) — 2017-11-09
- 0.0.30 (ts2.0) — 2017-03-15
- 0.0.34 — 2023-10-18
- 0.0.29 — 2016-09-19
- 0.0.28 — 2016-07-14
- 0.0.27-alpha — 2016-07-08
- 0.0.25-alpha — 2016-07-04
- 0.0.24-alpha — 2016-07-02
- 0.0.23-alpha — 2016-07-01
- 0.0.22-alpha — 2016-07-01
- 0.0.20-alpha — 2016-05-25
- … 3 more at https://npm.io/package/@types/q-retry/versions

## README

# Installation
> `npm install --save @types/q-retry`

# Summary
This package contains type definitions for q-retry (https://github.com/vilic/q-retry).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/q-retry.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/q-retry/index.d.ts)
````ts
import Q = require("q");

export = Q;

declare module "q" {
    export interface IRetryOptions {
        limit?: number | undefined;
        interval?: number | undefined;
        maxInterval?: number | undefined;
        intervalMultiplier?: number | undefined;
    }

    export function retry<U>(
        process: () => IPromise<U>,
        onFail: (reason: any, retries: number) => void,
        limit: number,
    ): Promise<U>;
    export function retry<U>(
        process: () => IPromise<U>,
        onFail: (reason: any, retries: number) => void,
        options?: IRetryOptions,
    ): Promise<U>;
    export function retry<U>(process: () => IPromise<U>, limit: number): Promise<U>;
    export function retry<U>(process: () => IPromise<U>, options?: IRetryOptions): Promise<U>;
    export function retry<U>(
        process: () => U,
        onFail: (reason: any, retries: number) => void,
        limit: number,
    ): Promise<U>;
    export function retry<U>(
        process: () => U,
        onFail: (reason: any, retries: number) => void,
        options?: IRetryOptions,
    ): Promise<U>;
    export function retry<U>(process: () => U, limit: number): Promise<U>;
    export function retry<U>(process: () => U, options?: IRetryOptions): Promise<U>;

    interface Promise<T> {
        retry<U>(
            process: (value: T) => IPromise<U>,
            onFail: (reason: any, retries: number) => void,
            limit: number,
        ): Promise<U>;
        retry<U>(
            process: (value: T) => IPromise<U>,
            onFail: (reason: any, retries: number) => void,
            options?: IRetryOptions,
        ): Promise<U>;
        retry<U>(process: (value: T) => IPromise<U>, limit: number): Promise<U>;
        retry<U>(process: (value: T) => IPromise<U>, options?: IRetryOptions): Promise<U>;
        retry<U>(process: (value: T) => U, onFail: (reason: any, retries: number) => void, limit: number): Promise<U>;
        retry<U>(
            process: (value: T) => U,
            onFail: (reason: any, retries: number) => void,
            options?: IRetryOptions,
        ): Promise<U>;
        retry<U>(process: (value: T) => U, limit: number): Promise<U>;
        retry<U>(process: (value: T) => U, options?: IRetryOptions): Promise<U>;
    }
}

````

### Additional Details
 * Last updated: Fri, 24 Oct 2025 04:02:41 GMT
 * Dependencies: [@types/q](https://npmjs.com/package/@types/q)

# Credits
These definitions were written by [VILIC VANE](https://github.com/vilic).

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