refactor: Linting
This commit is contained in:
parent
2490e61a78
commit
437c7c62de
11 changed files with 219 additions and 187 deletions
|
@ -1,4 +1,4 @@
|
|||
import {apiConfig} from "@/config.ts";
|
||||
import { apiConfig } from "@/config.ts";
|
||||
|
||||
export class BaseController {
|
||||
protected baseUrl: string;
|
||||
|
@ -7,7 +7,7 @@ export class BaseController {
|
|||
this.baseUrl = `${apiConfig.baseUrl}/${basePath}`;
|
||||
}
|
||||
|
||||
protected async get<T>(path: string, queryParams?: Record<string, any>): Promise<T> {
|
||||
protected async get<T>(path: string, queryParams?: Record<string, string | number | boolean>): Promise<T> {
|
||||
let url = `${this.baseUrl}${path}`;
|
||||
if (queryParams) {
|
||||
const query = new URLSearchParams();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue