wretch
Preparing search index...
index
WretchAddon
Type Alias WretchAddon<W, R>
An addon enhancing either the request or response chain (or both).
type
WretchAddon
<
W
,
R
=
unknown
>
=
{
resolver
?:
|
R
|
(
<
T
,
C
,
E
=
unknown
>
(
_
:
C
&
WretchResponseChain
<
T
,
C
,
R
,
E
>
)
=>
R
)
;
wretch
?:
W
;
beforeRequest
?
<
T
,
C
,
R
,
E
=
unknown
>
(
wretch
:
T
&
Wretch
<
T
,
C
,
R
,
E
>
,
options
:
WretchOptions
,
state
:
Record
<
any
,
any
>
,
)
:
T
&
Wretch
<
T
,
C
,
R
,
E
>
;
}
Type Parameters
W
R
=
unknown
Index
Properties
resolver?
wretch?
Methods
before
Request?
Properties
Optional
resolver
resolver
?:
|
R
|
(
<
T
,
C
,
E
=
unknown
>
(
_
:
C
&
WretchResponseChain
<
T
,
C
,
R
,
E
>
)
=>
R
)
Optional
wretch
wretch
?:
W
Methods
Optional
before
Request
beforeRequest
?
<
T
,
C
,
R
,
E
=
unknown
>
(
wretch
:
T
&
Wretch
<
T
,
C
,
R
,
E
>
,
options
:
WretchOptions
,
state
:
Record
<
any
,
any
>
,
)
:
T
&
Wretch
<
T
,
C
,
R
,
E
>
Type Parameters
T
C
R
E
=
unknown
Parameters
wretch
:
T
&
Wretch
<
T
,
C
,
R
,
E
>
options
:
WretchOptions
state
:
Record
<
any
,
any
>
Returns
T
&
Wretch
<
T
,
C
,
R
,
E
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
resolver
wretch
Methods
before
Request
wretch
Loading...
An addon enhancing either the request or response chain (or both).