mirror of
https://github.com/tenrok/axios.git
synced 2026-06-02 16:04:10 +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 {
|
||||
(config: AxiosRequestConfig): AxiosPromise;
|
||||
(url: string, config?: AxiosRequestConfig): AxiosPromise;
|
||||
defaults: AxiosRequestConfig;
|
||||
interceptors: {
|
||||
request: AxiosInterceptorManager<AxiosRequestConfig>;
|
||||
@@ -116,8 +118,6 @@ export interface AxiosInstance {
|
||||
}
|
||||
|
||||
export interface AxiosStatic extends AxiosInstance {
|
||||
(config: AxiosRequestConfig): AxiosPromise;
|
||||
(url: string, config?: AxiosRequestConfig): AxiosPromise;
|
||||
create(config?: AxiosRequestConfig): AxiosInstance;
|
||||
Cancel: CancelStatic;
|
||||
CancelToken: CancelTokenStatic;
|
||||
|
||||
Reference in New Issue
Block a user