提交 42392321 编写于 作者: P Punit Gupta

Fixing interface of axios instance

上级 d7f021b8
...@@ -101,6 +101,8 @@ export interface AxiosInterceptorManager<V> { ...@@ -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>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册