Skip to content

Commit 4018469

Browse files
committed
feat: Rename ListenerV2 export to StateChangeListener
The `ListenerV2` export of the `next` version of `BaseController` has been renamed to `StateChangeListener`. Fixes #6338
1 parent 513bb4b commit 4018469

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/base-controller/src/next/BaseController.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ export type StateConstraint = Record<string, Json>;
5050
* @param patches - A list of patches describing any changes (see here for more
5151
* information: https://immerjs.github.io/immer/docs/patches)
5252
*/
53-
// TODO: Either fix this lint violation or explain why it's necessary to ignore.
54-
// eslint-disable-next-line @typescript-eslint/naming-convention
55-
export type Listener<T> = (state: T, patches: Patch[]) => void;
53+
export type StateChangeListener<T> = (state: T, patches: Patch[]) => void;
5654

5755
/**
5856
* An function to derive state.

packages/base-controller/src/next/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export type {
22
BaseControllerInstance,
3-
Listener as ListenerV2,
3+
StateChangeListener,
44
StateConstraint,
55
StateDeriver,
66
StateDeriverConstraint,

0 commit comments

Comments
 (0)