fix: 🚨 Fix Deepsource warnings

This commit is contained in:
Jesse Wierzbinski 2025-07-07 05:08:34 +02:00
parent 2fffbcbede
commit 870b6dbe85
No known key found for this signature in database
13 changed files with 58 additions and 59 deletions

View file

@ -87,8 +87,8 @@ export class ResponseError<
export class BaseClient {
public constructor(
protected baseUrl: URL,
private accessToken?: string,
private options: {
private readonly accessToken?: string,
private readonly options: {
globalCatch?: (error: ResponseError) => void;
throwOnError?: boolean;
} = {},
@ -103,6 +103,7 @@ export class BaseClient {
}
/** Overridable by testing */
// biome-ignore lint/nursery/useReadonlyClassProperties: Overridable by testing
private fetch = (...args: Parameters<typeof fetch>) => fetch(...args);
private async request<ReturnType>(