Mohammad Asif cf937194cb Removed un-waned things 1. | 6 kuukautta sitten | |
---|---|---|
.. | ||
LICENSE | 6 kuukautta sitten | |
README.md | 6 kuukautta sitten | |
index.d.ts | 6 kuukautta sitten | |
package.json | 6 kuukautta sitten |
npm install --save @types/refresh-fetch
This package contains type definitions for refresh-fetch (https://github.com/vlki/refresh-fetch).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/refresh-fetch.
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;
}>;
These definitions were written by Alex Lisenkov, and Pieter Braam.