Skip to content

Commit

Permalink
replace any with Json in snapRegistryList
Browse files Browse the repository at this point in the history
  • Loading branch information
kanthesha committed Oct 1, 2024
1 parent 957eec9 commit 1483091
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/scripts/controllers/preferences-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
} from '../../../shared/constants/network';
import { LedgerTransportTypes } from '../../../shared/constants/hardware-wallets';
import { ThemeType } from '../../../shared/constants/preferences';
import { Json } from 'json-rpc-engine';

type AccountIdentityEntry = {
address: string;
Expand Down Expand Up @@ -143,9 +144,8 @@ export type PreferencesControllerState = {
isIpfsGatewayEnabled: boolean;
useAddressBarEnsResolution: boolean;
ledgerTransportType: LedgerTransportTypes;
// TODO: Replace `any` with type
// eslint-disable-next-line @typescript-eslint/no-explicit-any
snapRegistryList: Record<string, any>;
// TODO: Replace `Json` with correct type
snapRegistryList: Record<string, Json>;
theme: ThemeType;
snapsAddSnapAccountModalDismissed: boolean;
useExternalNameSources: boolean;
Expand Down

0 comments on commit 1483091

Please sign in to comment.