Skip to content

Function: mergeFetchOptions()

mergeFetchOptions(...allOptions): FetchOptionsInterceptor

Defined in: packages/fetch/src/mergeFetchOptions.ts:18

Merge one or more FetchOptions

Notes:

  • config.fetchOptions will be added as the base and not necessary to be included
  • item properties will be prioritized in the order of sequence they were passed in
  • the following properties will be merged
    • errMsgs
    • headers
    • interceptors
  • all other properties will simply override previous values

Parameters

allOptions

...FetchOptions[]

Returns

FetchOptionsInterceptor

combined