Skip to content

Function: mergeOptions() ​

mergeOptions(...allOptions): FetchOptionsInterceptor

Defined in: packages/fetch/src/mergeOptions.ts:17

Merge one or more FetchOptions

Notes:

  • 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 | undefined)[]

Returns ​

FetchOptionsInterceptor

combined