magner
magner copied to clipboard
Add `rewriteDefaults` to the `request` function
It should wrap the wretcher's defaults function like so:
const rewriteDefaults = (defaults: WretcherOptions) => wretcher.defaults(defaults, false);
Because otherwise we require users to know how to work with Wretch's immutability, which is sometimes confusing