Function: executeInterceptors()
executeInterceptors<
T,TArgs>(value,interceptors?, ...args?):Promise<T>
Defined in: packages/fetch/src/executeInterceptors.ts:16
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
interceptors?
Interceptor<T, TArgs>[]
interceptor 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>