interface AbortWretch { signal: (<T, C, R>(this: T & Wretch<T, C, R>,
controller: AbortController) => this); } Properties
signal
signal: (<T, C, R>(this: T & Wretch<T, C, R>,
controller: AbortController) => this) Type declaration
- <T, C, R>(this, controller): this
Parameters
- this: T & Wretch<T, C, R>
- controller: AbortController
Returns this
Associates a custom controller with the request.
Useful when you need to use your own AbortController, otherwise wretch will create a new controller itself.