Interface: AxiosInstance
internal.AxiosInstance
Hierarchy
↳
AxiosInstance
Callable
AxiosInstance
▸ AxiosInstance(config): AxiosPromise<any>
Parameters
| Name | Type |
|---|---|
config | AxiosRequestConfig<any> |
Returns
AxiosPromise<any>
Defined in
medusa-js/node_modules/axios/index.d.ts:188
AxiosInstance
▸ AxiosInstance(url, config?): AxiosPromise<any>
Parameters
| Name | Type |
|---|---|
url | string |
config? | AxiosRequestConfig<any> |
Returns
AxiosPromise<any>
Defined in
medusa-js/node_modules/axios/index.d.ts:189
Properties
defaults
• defaults: AxiosDefaults<any>
Inherited from
Defined in
medusa-js/node_modules/axios/index.d.ts:171
interceptors
• interceptors: Object
Type declaration
| Name | Type |
|---|---|
request | AxiosInterceptorManager<AxiosRequestConfig<any>> |
response | AxiosInterceptorManager<AxiosResponse<any, any>> |
Inherited from
Defined in
medusa-js/node_modules/axios/index.d.ts:172
Methods
delete
▸ delete<T, R, D>(url, config?): Promise<R>
Type parameters
| Name | Type |
|---|---|
T | any |
R | AxiosResponse<T, any> |
D | any |
Parameters
| Name | Type |
|---|---|
url | string |
config? | AxiosRequestConfig<D> |
Returns
Promise<R>
Inherited from
Defined in
medusa-js/node_modules/axios/index.d.ts:179
get
▸ get<T, R, D>(url, config?): Promise<R>
Type parameters
| Name | Type |
|---|---|
T | any |
R | AxiosResponse<T, any> |
D | any |
Parameters
| Name | Type |
|---|---|
url | string |
config? | AxiosRequestConfig<D> |
Returns
Promise<R>
Inherited from
Defined in
medusa-js/node_modules/axios/index.d.ts:178
getUri
▸ getUri(config?): string
Parameters
| Name | Type |
|---|---|
config? | AxiosRequestConfig<any> |
Returns
string
Inherited from
Defined in
medusa-js/node_modules/axios/index.d.ts:176
head
▸ head<T, R, D>(url, config?): Promise<R>
Type parameters
| Name | Type |
|---|---|
T | any |
R | AxiosResponse<T, any> |
D | any |
Parameters
| Name | Type |
|---|---|
url | string |
config? | AxiosRequestConfig<D> |
Returns
Promise<R>
Inherited from
Defined in
medusa-js/node_modules/axios/index.d.ts:180
options
▸ options<T, R, D>(url, config?): Promise<R>
Type parameters
| Name | Type |
|---|---|
T | any |
R | AxiosResponse<T, any> |
D | any |
Parameters
| Name | Type |
|---|---|
url | string |
config? | AxiosRequestConfig<D> |
Returns
Promise<R>
Inherited from
Defined in
medusa-js/node_modules/axios/index.d.ts:181
patch
▸ patch<T, R, D>(url, data?, config?): Promise<R>
Type parameters
| Name | Type |
|---|---|
T | any |
R | AxiosResponse<T, any> |
D | any |
Parameters
| Name | Type |
|---|---|
url | string |
data? | D |
config? | AxiosRequestConfig<D> |
Returns
Promise<R>
Inherited from
Defined in
medusa-js/node_modules/axios/index.d.ts:184
post
▸ post<T, R, D>(url, data?, config?): Promise<R>
Type parameters
| Name | Type |
|---|---|
T | any |
R | AxiosResponse<T, any> |
D | any |
Parameters
| Name | Type |
|---|---|
url | string |
data? | D |
config? | AxiosRequestConfig<D> |
Returns
Promise<R>
Inherited from
Defined in
medusa-js/node_modules/axios/index.d.ts:182
put
▸ put<T, R, D>(url, data?, config?): Promise<R>
Type parameters
| Name | Type |
|---|---|
T | any |
R | AxiosResponse<T, any> |
D | any |
Parameters
| Name | Type |
|---|---|
url | string |
data? | D |
config? | AxiosRequestConfig<D> |
Returns
Promise<R>
Inherited from
Defined in
medusa-js/node_modules/axios/index.d.ts:183
request
▸ request<T, R, D>(config): Promise<R>
Type parameters
| Name | Type |
|---|---|
T | any |
R | AxiosResponse<T, any> |
D | any |
Parameters
| Name | Type |
|---|---|
config | AxiosRequestConfig<D> |
Returns
Promise<R>
Inherited from
Defined in
medusa-js/node_modules/axios/index.d.ts:177