Skip to content

Commit

Permalink
Fix readme and type
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalvijay committed Jan 18, 2020
1 parent 7beed3a commit 5a2eb3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Adds retry functionality to the `Fetch` API.

It wraps any `Fetch` API package (eg: [isomorphic-fetch](https://github.com/matthew-andrews/isomorphic-fetch), [cross-fetch](https://github.com/lquixada/cross-fetch), [isomorphic-unfetch](https://github.com/developit/unfetch ) and etc.) and retries requests that fail due to network issues. It can also be configured to retry requests on specific HTTP status codes.
It wraps any `Fetch` API package (eg: [isomorphic-fetch](https://github.com/matthew-andrews/isomorphic-fetch), [cross-fetch](https://github.com/lquixada/cross-fetch), [isomorphic-unfetch](https://github.com/developit/unfetch) and etc.) and retries requests that fail due to network issues. It can also be configured to retry requests on specific HTTP status codes.

[![Build Status](https://travis-ci.org/jonbern/fetch-retry.svg?branch=master)](https://travis-ci.org/jonbern/fetch-retry)

Expand Down
4 changes: 1 addition & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ declare module 'fetch-retry' {
retryOn?: number[] | RequestRetryOnFunction;
}

function fetchRetry(url: String, options?: IRequestInitWithRetry): Promise<Response>;

function fetchBuilder(fetch: (url: String, options?: RequestInit) => Promise<Response>): fetchRetry;
function fetchBuilder(fetch: (url: String, options?: RequestInit) => Promise<Response>): ((url: String, options?: IRequestInitWithRetry) => Promise<Response>);
export = fetchBuilder;
}

0 comments on commit 5a2eb3c

Please sign in to comment.