Skip to content

Commit

Permalink
Merge pull request #1192 from punit-gupta01/master
Browse files Browse the repository at this point in the history
Fixing interface of axios instance
  • Loading branch information
nickuraltsev committed Jan 6, 2018
2 parents ae218d0 + 521a429 commit 84a00b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Expand Up @@ -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>;
Expand All @@ -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;
Expand Down

0 comments on commit 84a00b2

Please sign in to comment.