File tree 2 files changed +9
-10
lines changed
2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ 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.
13
+ - As types, ` BaseConfig ` , ` BaseState ` now extend ` Record ` and have an index signature of ` string ` .
14
+
10
15
## [ 4.1.1]
11
16
12
17
### Changed
Original file line number Diff line number Diff line change @@ -9,25 +9,19 @@ 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
- // 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 {
12
+ export type BaseConfig = {
16
13
disabled ?: boolean ;
17
- }
14
+ } ;
18
15
19
16
/**
20
17
* @type BaseState
21
18
*
22
19
* Base state representation
23
20
* @property name - Unique name for this controller
24
21
*/
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 {
22
+ export type BaseState = {
29
23
name ?: string ;
30
- }
24
+ } ;
31
25
32
26
/**
33
27
* @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