Skip to content

Commit c538e1d

Browse files
author
arturpimentel
committed
Rollback typings fixes for HttpClient.ts
After `Create compatibility with TS 3.9.7` (187b096), this isn't needed anymore.
1 parent 1e25416 commit c538e1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/HttpClient/HttpClient.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export class HttpClient {
130130

131131
public getRaw = <T = any>(url: string, config: RequestConfig = {}): Promise<IOResponse<T>> => {
132132
const cacheableConfig = this.getConfig(url, config)
133-
return this.request(cacheableConfig) as any
133+
return this.request(cacheableConfig)
134134
}
135135

136136
public getWithBody = <T = any>(url: string, data?: any, config: RequestConfig = {}): Promise<T> => {
@@ -198,12 +198,12 @@ export class HttpClient {
198198

199199
public head = (url: string, config: RequestConfig = {}): Promise<IOResponse<void>> => {
200200
const headConfig: RequestConfig = { ...config, url, method: 'head' }
201-
return this.request(headConfig) as any
201+
return this.request(headConfig)
202202
}
203203

204204
public delete = <T = void>(url: string, config?: RequestConfig): Promise<IOResponse<T>> => {
205205
const deleteConfig: RequestConfig = { ...config, url, method: 'delete' }
206-
return this.request(deleteConfig) as any
206+
return this.request(deleteConfig)
207207
}
208208

209209
protected request = async (config: RequestConfig): Promise<AxiosResponse> => {

0 commit comments

Comments
 (0)