Type Alias WretchAddon<W, R>
WretchAddon<W, R>: { resolver?: R | (<T, C>(_: C & WretchResponseChain<T, C, R>) => R); wretch?: W; beforeRequest?<T, C, R>(wretch: T & Wretch<T, C, R>,
options: WretchOptions,
state: Record<any, any>): T & Wretch<T, C, R>; }
An addon enhancing either the request or response chain (or both).