Skip to content

Commit fbb29e0

Browse files
authored
Fixing missing type parameters on delete/head
1 parent 0499a97 commit fbb29e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ export interface AxiosInstance {
110110
};
111111
request<T = any>(config: AxiosRequestConfig): AxiosPromise<T>;
112112
get<T = any>(url: string, config?: AxiosRequestConfig): AxiosPromise<T>;
113-
delete(url: string, config?: AxiosRequestConfig): AxiosPromise;
114-
head(url: string, config?: AxiosRequestConfig): AxiosPromise;
113+
delete<T = any>(url: string, config?: AxiosRequestConfig): AxiosPromise<T>;
114+
head<T = any>(url: string, config?: AxiosRequestConfig): AxiosPromise<T>;
115115
post<T = any>(url: string, data?: any, config?: AxiosRequestConfig): AxiosPromise<T>;
116116
put<T = any>(url: string, data?: any, config?: AxiosRequestConfig): AxiosPromise<T>;
117117
patch<T = any>(url: string, data?: any, config?: AxiosRequestConfig): AxiosPromise<T>;

0 commit comments

Comments
 (0)