Skip to content

Commit

Permalink
fix: any types
Browse files Browse the repository at this point in the history
  • Loading branch information
micaelae committed Jun 26, 2024
1 parent e1f32b7 commit 2cf440c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ui/pages/bridge/bridge.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@ type FeatureFlagResponse = {
type Validator<T> = {
property: keyof T;
type: string;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
validator: (value: any) => boolean;
validator: (value: unknown) => boolean;
};

const validateResponse = <T>(
validators: Validator<T>[],
// eslint-disable-next-line @typescript-eslint/no-explicit-any
data: any,
data: unknown,
urlUsed: string,
): data is T => {
return validateData(validators, data, urlUsed);
Expand Down

0 comments on commit 2cf440c

Please sign in to comment.