Skip to content

Align TypeScript definitions and argument names with fetch API

Choose a tag to compare

@jonbern jonbern released this 27 Jan 10:17
· 97 commits to master since this release

This version improves the TypeScript definition of the wrapping function.

Previously it would simply expect a function with the same signature as the fetch function. Now it expects to receive the actual fetch function.

In addition, the argument names used by fetch-retry now corresponds to the argument names used by the official fetch API.

Many thanks to @vishalvijay for highlighting the issue and providing the PR to fix it.