- Preparing search index...
- The search index is not available
wretch
Type alias WretchAddon<W, R>
Wretch
Addon
<W, R>: { resolver
?: R; wretch
?: W; beforeRequest
?<T, C, R>(wretch
: T & Wretch<T, C, R>, options
: WretchOptions, state
: Record<any, any>): T & Wretch<T, C, R>; }
Type Parameters
-
W extends unknown
-
R extends unknown = unknown
Type declaration
-
Optional
resolver?: R
-
Optional
wretch?: W
-
beforeRequest?:function
- beforeRequest<T, C, R>(wretch: T & Wretch<T, C, R>, options: WretchOptions, state: Record<any, any>): T & Wretch<T, C, R>
-
Parameters
-
wretch: T & Wretch<T, C, R>
-
-
state: Record<any, any>
Returns T & Wretch<T, C, R>
An addon enhancing either the request or response chain (or both).