Skip to content

Commit

Permalink
fix(types): remove any type
Browse files Browse the repository at this point in the history
  • Loading branch information
atticusofsparta committed Mar 1, 2024
1 parent 7d14edb commit 5c80242
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class AxiosHTTPService implements HTTPClient {
signal?: AbortSignal;
allowedStatuses?: number[];
headers?: Record<string, string>;
params?: Record<string, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
params?: Record<string, unknown>;
}): Promise<T> {
this.logger.debug(`Get request to endpoint: ${endpoint}`);
const { status, statusText, data } = await this.axios.get<T>(endpoint, {
Expand Down
2 changes: 1 addition & 1 deletion src/types/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export interface HTTPClient {
signal?: AbortSignal;
headers?: Record<string, string>;
allowedStatuses?: number[];
params?: Record<string, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
params?: Record<string, unknown>;
}): Promise<T>;
// TODO: add post method
// post<T>({
Expand Down

0 comments on commit 5c80242

Please sign in to comment.