Skip to content

Commit

Permalink
address the feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
sunilsabatp committed Jan 8, 2025
1 parent 3a86009 commit b578413
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/utils/apiRequests/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,23 @@ interface GetAuthRequestOptions extends BaseRequestOptions {
queryParams?: { [key: string]: string };
version?: string;
}
interface PostAuthRequestOptions<T> extends BaseRequestOptions {
interface PostAuthRequestOptions extends BaseRequestOptions {
token: string | null;
data: T;
data: any;

Check warning on line 31 in src/utils/apiRequests/api.ts

View check run for this annotation

codefactor.io / CodeFactor

src/utils/apiRequests/api.ts#L31

Unexpected any. Specify a different type. (@typescript-eslint/no-explicit-any)
logoutUser: (value?: string | undefined) => void;
headers?: Record<string, string>;
}
interface DeleteAuthRequestOptions extends BaseRequestOptions {
token: string | null;
logoutUser: (value?: string | undefined) => void;
}
interface PutAuthRequestOptions<T> extends BaseRequestOptions {
interface PutAuthRequestOptions extends BaseRequestOptions {
token: string | null;
data?: T;
data?: any;

Check warning on line 41 in src/utils/apiRequests/api.ts

View check run for this annotation

codefactor.io / CodeFactor

src/utils/apiRequests/api.ts#L41

Unexpected any. Specify a different type. (@typescript-eslint/no-explicit-any)
logoutUser: (value?: string | undefined) => void;
}
interface PostRequestOptions<T> extends BaseRequestOptions {
data: T;
interface PostRequestOptions extends BaseRequestOptions {
data: any;

Check warning on line 45 in src/utils/apiRequests/api.ts

View check run for this annotation

codefactor.io / CodeFactor

src/utils/apiRequests/api.ts#L45

Unexpected any. Specify a different type. (@typescript-eslint/no-explicit-any)
}
interface GetRequestOptions extends BaseRequestOptions {
queryParams?: { [key: string]: string };
Expand Down

0 comments on commit b578413

Please sign in to comment.