Skip to content

Commit 262ea85

Browse files
authored
Remove unnecessary exported functions from instrument (#1530)
* Remove unnecessary exported functions from instrument This avoids importing CombinedState so that the types are compatible with Redux 5 * Create bright-pumpkins-move.md
1 parent d57d015 commit 262ea85

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.changeset/bright-pumpkins-move.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@redux-devtools/instrument': patch
3+
---
4+
5+
Remove unnecessary exported functions from instrument

packages/redux-devtools-instrument/src/instrument.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ function recomputeStates<S, A extends Action<string>>(
367367
/**
368368
* Lifts an app's action into an action on the lifted store.
369369
*/
370-
export function liftAction<A extends Action<string>>(
370+
function liftAction<A extends Action<string>>(
371371
action: A,
372372
trace?: ((action: A) => string | undefined) | boolean,
373373
traceLimit?: number,
@@ -404,7 +404,7 @@ export interface LiftedState<S, A extends Action<string>, MonitorState> {
404404
/**
405405
* Creates a history state reducer from an app's reducer.
406406
*/
407-
export function liftReducerWith<
407+
function liftReducerWith<
408408
S,
409409
A extends Action<string>,
410410
MonitorState,
@@ -832,12 +832,7 @@ export function liftReducerWith<
832832
/**
833833
* Provides an app's view into the state of the lifted store.
834834
*/
835-
export function unliftState<
836-
S,
837-
A extends Action<string>,
838-
MonitorState,
839-
NextStateExt,
840-
>(
835+
function unliftState<S, A extends Action<string>, MonitorState, NextStateExt>(
841836
liftedState: LiftedState<S, A, MonitorState> & NextStateExt,
842837
): S & NextStateExt {
843838
const { computedStates, currentStateIndex } = liftedState;
@@ -868,7 +863,7 @@ export type EnhancedStore<S, A extends Action<string>, MonitorState> = Store<
868863
/**
869864
* Provides an app's view into the lifted store.
870865
*/
871-
export function unliftStore<
866+
function unliftStore<
872867
S,
873868
A extends Action<string>,
874869
MonitorState,

0 commit comments

Comments
 (0)