# @types/refresh-fetch

> TypeScript definitions for refresh-fetch

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

## Install

```sh
npm install @types/refresh-fetch
pnpm add @types/refresh-fetch
yarn add @types/refresh-fetch
bun add @types/refresh-fetch
```

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.6.7 |
| Published | 2023-11-07 |
| First published | 2020-02-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

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

## Recent versions

- 0.6.7 (latest) — 2023-11-07
- 0.6.3 (ts4.3) — 2023-08-22
- 0.6.2 (ts4.2) — 2022-12-30
- 0.6.1 (ts2.8) — 2020-03-18
- 0.6.6 — 2023-11-06
- 0.6.5 — 2023-10-18
- 0.6.4 — 2023-09-27
- 0.6.0 — 2020-02-12

## README

# Installation
> `npm install --save @types/refresh-fetch`

# Summary
This package contains type definitions for refresh-fetch (https://github.com/vlki/refresh-fetch).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/refresh-fetch.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/refresh-fetch/index.d.ts)
````ts
export function configureRefreshFetch<T>(
    configuration: {
        fetch: T;
        refreshToken: () => Promise<void>;
        shouldRefreshToken: (error: any) => boolean;
    },
): T;

/* eslint-disable-next-line @definitelytyped/no-unnecessary-generics */
export function fetchJSON<ResponseBody>(url: string | Request | URL, options?: RequestInit): Promise<{
    body: ResponseBody;
    response: Response;
}>;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Alex Lisenkov](https://github.com/AlexLisenkov), and [Pieter Braam](https://github.com/ppbraam).

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