Skip to content

Function: baseCall

lib.baseCall

baseCall<T, K>(options): Promise<AxiosResponse<K>>

Example wrapper function around Axios. This is provided as the default example function for GlobalOptions.netCall.

Type parameters

Name Type Description
T T The type of the data sent in the request. This might be undefined for get.
K T The type of the data expected to return from the server. Defaults to T.

Parameters

Name Type
options NetCallOptions<T>

Returns

Promise<AxiosResponse<K>>

Defined in

src/base/lib/index.ts:181