File tree Expand file tree Collapse file tree
packages/assets-controllers/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,17 +92,15 @@ type SuggestedAssetMeta = {
9292 * @property allIgnoredTokens - Object containing hidden/ignored tokens by network and account
9393 * @property allDetectedTokens - Object containing tokens detected with non-zero balances
9494 */
95- // This interface was created before this ESLint rule was added.
96- // Convert to a `type` in a future major version.
97- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
98- export interface TokensState extends BaseState {
99- tokens : Token [ ] ;
100- ignoredTokens : string [ ] ;
101- detectedTokens : Token [ ] ;
102- allTokens : { [ chainId : Hex ] : { [ key : string ] : Token [ ] } } ;
103- allIgnoredTokens : { [ chainId : Hex ] : { [ key : string ] : string [ ] } } ;
104- allDetectedTokens : { [ chainId : Hex ] : { [ key : string ] : Token [ ] } } ;
105- }
95+ export type TokensState = BaseState &
96+ Record < string , unknown > & {
97+ tokens : Token [ ] ;
98+ ignoredTokens : string [ ] ;
99+ detectedTokens : Token [ ] ;
100+ allTokens : { [ chainId : Hex ] : { [ key : string ] : Token [ ] } } ;
101+ allIgnoredTokens : { [ chainId : Hex ] : { [ key : string ] : string [ ] } } ;
102+ allDetectedTokens : { [ chainId : Hex ] : { [ key : string ] : Token [ ] } } ;
103+ } ;
106104
107105/**
108106 * The name of the {@link TokensController}.
You can’t perform that action at this time.
0 commit comments