more lint fixes
This commit is contained in:
parent
cc014de397
commit
3e545cdaa9
8 changed files with 29 additions and 38 deletions
|
|
@ -23,7 +23,7 @@ export class HttpClient {
|
|||
|
||||
async post<T = any>(
|
||||
url: string,
|
||||
data?: any,
|
||||
data?: unknown,
|
||||
config: Omit<RequestConfig, 'method' | 'url' | 'data'> = {}
|
||||
): Promise<HttpResponse<T>> {
|
||||
return this.request<T>({ ...config, method: 'POST', url, data });
|
||||
|
|
@ -31,7 +31,7 @@ export class HttpClient {
|
|||
|
||||
async put<T = any>(
|
||||
url: string,
|
||||
data?: any,
|
||||
data?: unknown,
|
||||
config: Omit<RequestConfig, 'method' | 'url' | 'data'> = {}
|
||||
): Promise<HttpResponse<T>> {
|
||||
return this.request<T>({ ...config, method: 'PUT', url, data });
|
||||
|
|
@ -46,7 +46,7 @@ export class HttpClient {
|
|||
|
||||
async patch<T = any>(
|
||||
url: string,
|
||||
data?: any,
|
||||
data?: unknown,
|
||||
config: Omit<RequestConfig, 'method' | 'url' | 'data'> = {}
|
||||
): Promise<HttpResponse<T>> {
|
||||
return this.request<T>({ ...config, method: 'PATCH', url, data });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue