Function: executeInterceptors()
executeInterceptors<
T,TArgs>(value,signal?,interceptors?, ...args?):Promise<T>
Defined in: packages/fetch/src/executeInterceptors.ts:19
Gracefully executes interceptors and returns the processed value. If the value is not transformed (by returning a new value) by the interceptors, the original value is returned.
Type Parameters
T
T
TArgs
TArgs extends unknown[]
Parameters
value
T
value to be passed to the interceptors
signal?
AbortSignal
The AbortController used to monitor the request status. If the signal is aborted (e.g. due to timeout or manual cancellation), the interceptor chain halts immediately. Note: This does not interrupt the currently executing interceptor, but prevents subsequent ones from running.
interceptors?
Interceptor<T, TArgs>[]
interceptor/transformer callbacks
args?
...TArgs
(optional) common arguments to be supplied to all the interceptors in addition to the `value' which will always be the first argument.
Interceptor arguments: [value, ...args]
Returns
Promise<T>