appendCustomParams

deprecated
Function
appendCustomParams<T>(customOptions: T, keys: keyofT[], baseOptions?: Partial<T>): IRequestOptions

Appends selected custom option keys into params while preserving request options.

Type Parameters

ParameterType
TIRequestOptions

Parameters

ParameterTypeNotes
customOptionsT

Endpoint-specific options supplied by the caller.

keyskeyofT[]

Keys from customOptions that should be appended to params .

baseOptionsPartial<T>

Request defaults merged before customOptions .

Returns 

IRequestOptions

IRequestOptions object with custom options appended to params , and all other custom options removed that are not part of IRequestOptions.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.