2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-05 16:42:32 +03:00

Add getUri signature to TypeScript definition. (#1736)

* Add `getUri` signature to TypeScript definition.

This is in support of #1624.

* Make configuration optional.
This commit is contained in:
Alexander Trauzzi
2018-08-21 09:24:53 -05:00
committed by Emily Morehouse
parent b681e919c4
commit 7db0494579
Vendored
+1
View File
@@ -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>;