Skip to content

Commit

Permalink
Add getUri signature to TypeScript definition. (#1736)
Browse files Browse the repository at this point in the history
* Add `getUri` signature to TypeScript definition.

This is in support of #1624.

* Make configuration optional.
  • Loading branch information
atrauzzi authored and emilyemorehouse committed Aug 21, 2018
1 parent b681e91 commit 7db0494
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Expand Up @@ -128,6 +128,7 @@ export interface AxiosInstance {
request: AxiosInterceptorManager<AxiosRequestConfig>;
response: AxiosInterceptorManager<AxiosResponse>;
};
getUri(config?: AxiosRequestConfig): string;
request<T = any, R = AxiosResponse<T>> (config: AxiosRequestConfig): Promise<R>;
get<T = any, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig): Promise<R>;
delete<T = any, R = AxiosResponse<T>>(url: string, config?: AxiosRequestConfig): Promise<R>;
Expand Down

0 comments on commit 7db0494

Please sign in to comment.