File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ export class HttpClient {
130
130
131
131
public getRaw = < T = any > ( url : string , config : RequestConfig = { } ) : Promise < IOResponse < T > > => {
132
132
const cacheableConfig = this . getConfig ( url , config )
133
- return this . request ( cacheableConfig ) as any
133
+ return this . request ( cacheableConfig )
134
134
}
135
135
136
136
public getWithBody = < T = any > ( url : string , data ?: any , config : RequestConfig = { } ) : Promise < T > => {
@@ -198,12 +198,12 @@ export class HttpClient {
198
198
199
199
public head = ( url : string , config : RequestConfig = { } ) : Promise < IOResponse < void > > => {
200
200
const headConfig : RequestConfig = { ...config , url, method : 'head' }
201
- return this . request ( headConfig ) as any
201
+ return this . request ( headConfig )
202
202
}
203
203
204
204
public delete = < T = void > ( url : string , config ?: RequestConfig ) : Promise < IOResponse < T > > => {
205
205
const deleteConfig : RequestConfig = { ...config , url, method : 'delete' }
206
- return this . request ( deleteConfig ) as any
206
+ return this . request ( deleteConfig )
207
207
}
208
208
209
209
protected request = async ( config : RequestConfig ) : Promise < AxiosResponse > => {
You can’t perform that action at this time.
0 commit comments