mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Merge pull request #1192 from punit-gupta01/master
Fixing interface of axios instance
This commit is contained in:
Vendored
+2
-2
@@ -101,6 +101,8 @@ export interface AxiosInterceptorManager<V> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface AxiosInstance {
|
export interface AxiosInstance {
|
||||||
|
(config: AxiosRequestConfig): AxiosPromise;
|
||||||
|
(url: string, config?: AxiosRequestConfig): AxiosPromise;
|
||||||
defaults: AxiosRequestConfig;
|
defaults: AxiosRequestConfig;
|
||||||
interceptors: {
|
interceptors: {
|
||||||
request: AxiosInterceptorManager<AxiosRequestConfig>;
|
request: AxiosInterceptorManager<AxiosRequestConfig>;
|
||||||
@@ -116,8 +118,6 @@ export interface AxiosInstance {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface AxiosStatic extends AxiosInstance {
|
export interface AxiosStatic extends AxiosInstance {
|
||||||
(config: AxiosRequestConfig): AxiosPromise;
|
|
||||||
(url: string, config?: AxiosRequestConfig): AxiosPromise;
|
|
||||||
create(config?: AxiosRequestConfig): AxiosInstance;
|
create(config?: AxiosRequestConfig): AxiosInstance;
|
||||||
Cancel: CancelStatic;
|
Cancel: CancelStatic;
|
||||||
CancelToken: CancelTokenStatic;
|
CancelToken: CancelTokenStatic;
|
||||||
|
|||||||
Reference in New Issue
Block a user