Skip to main content

Interface: AxiosInstance

internal.AxiosInstance

Hierarchy

Callable

AxiosInstance

AxiosInstance(config): AxiosPromise<any>

Parameters

NameType
configAxiosRequestConfig<any>

Returns

AxiosPromise<any>

Defined in

medusa-js/node_modules/axios/index.d.ts:188

AxiosInstance

AxiosInstance(url, config?): AxiosPromise<any>

Parameters

NameType
urlstring
config?AxiosRequestConfig<any>

Returns

AxiosPromise<any>

Defined in

medusa-js/node_modules/axios/index.d.ts:189

Properties

defaults

defaults: AxiosDefaults<any>

Inherited from

Axios.defaults

Defined in

medusa-js/node_modules/axios/index.d.ts:171


interceptors

interceptors: Object

Type declaration

NameType
requestAxiosInterceptorManager<AxiosRequestConfig<any>>
responseAxiosInterceptorManager<AxiosResponse<any, any>>

Inherited from

Axios.interceptors

Defined in

medusa-js/node_modules/axios/index.d.ts:172

Methods

delete

delete<T, R, D>(url, config?): Promise<R>

Type parameters

NameType
Tany
RAxiosResponse<T, any>
Dany

Parameters

NameType
urlstring
config?AxiosRequestConfig<D>

Returns

Promise<R>

Inherited from

Axios.delete

Defined in

medusa-js/node_modules/axios/index.d.ts:179


get

get<T, R, D>(url, config?): Promise<R>

Type parameters

NameType
Tany
RAxiosResponse<T, any>
Dany

Parameters

NameType
urlstring
config?AxiosRequestConfig<D>

Returns

Promise<R>

Inherited from

Axios.get

Defined in

medusa-js/node_modules/axios/index.d.ts:178


getUri

getUri(config?): string

Parameters

NameType
config?AxiosRequestConfig<any>

Returns

string

Inherited from

Axios.getUri

Defined in

medusa-js/node_modules/axios/index.d.ts:176


head<T, R, D>(url, config?): Promise<R>

Type parameters

NameType
Tany
RAxiosResponse<T, any>
Dany

Parameters

NameType
urlstring
config?AxiosRequestConfig<D>

Returns

Promise<R>

Inherited from

Axios.head

Defined in

medusa-js/node_modules/axios/index.d.ts:180


options

options<T, R, D>(url, config?): Promise<R>

Type parameters

NameType
Tany
RAxiosResponse<T, any>
Dany

Parameters

NameType
urlstring
config?AxiosRequestConfig<D>

Returns

Promise<R>

Inherited from

Axios.options

Defined in

medusa-js/node_modules/axios/index.d.ts:181


patch

patch<T, R, D>(url, data?, config?): Promise<R>

Type parameters

NameType
Tany
RAxiosResponse<T, any>
Dany

Parameters

NameType
urlstring
data?D
config?AxiosRequestConfig<D>

Returns

Promise<R>

Inherited from

Axios.patch

Defined in

medusa-js/node_modules/axios/index.d.ts:184


post

post<T, R, D>(url, data?, config?): Promise<R>

Type parameters

NameType
Tany
RAxiosResponse<T, any>
Dany

Parameters

NameType
urlstring
data?D
config?AxiosRequestConfig<D>

Returns

Promise<R>

Inherited from

Axios.post

Defined in

medusa-js/node_modules/axios/index.d.ts:182


put

put<T, R, D>(url, data?, config?): Promise<R>

Type parameters

NameType
Tany
RAxiosResponse<T, any>
Dany

Parameters

NameType
urlstring
data?D
config?AxiosRequestConfig<D>

Returns

Promise<R>

Inherited from

Axios.put

Defined in

medusa-js/node_modules/axios/index.d.ts:183


request

request<T, R, D>(config): Promise<R>

Type parameters

NameType
Tany
RAxiosResponse<T, any>
Dany

Parameters

NameType
configAxiosRequestConfig<D>

Returns

Promise<R>

Inherited from

Axios.request

Defined in

medusa-js/node_modules/axios/index.d.ts:177

Was this page helpful?