File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
- ### Changed
11
-
12
- - ** BREAKING:** Convert ` BaseConfig ` , ` BaseState ` interfaces to types ([ #3959 ] ( https://github.com/MetaMask/core/pull/3959 ) )
13
- - As types, ` BaseConfig ` , ` BaseState ` now extend ` Record ` and have an index signature of ` string ` .
14
-
15
10
## [ 4.1.1]
16
11
17
12
### Changed
Original file line number Diff line number Diff line change @@ -9,19 +9,25 @@ export type Listener<T> = (state: T) => void;
9
9
* Base controller configuration
10
10
* @property disabled - Determines if this controller is enabled
11
11
*/
12
- export type BaseConfig = {
12
+ // This interface was created before this ESLint rule was added.
13
+ // Convert to a `type` in a future major version.
14
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
15
+ export interface BaseConfig {
13
16
disabled ?: boolean ;
14
- } ;
17
+ }
15
18
16
19
/**
17
20
* @type BaseState
18
21
*
19
22
* Base state representation
20
23
* @property name - Unique name for this controller
21
24
*/
22
- export type BaseState = {
25
+ // This interface was created before this ESLint rule was added.
26
+ // Convert to a `type` in a future major version.
27
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
28
+ export interface BaseState {
23
29
name ?: string ;
24
- } ;
30
+ }
25
31
26
32
/**
27
33
* @deprecated This class has been renamed to BaseControllerV1 and is no longer recommended for use for controllers. Please use BaseController (formerly BaseControllerV2) instead.
You can’t perform that action at this time.
0 commit comments