From 262ea85ce1bc61471e4f8c6e54bcfcf2a09a1452 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sun, 5 Nov 2023 08:52:55 -0500 Subject: [PATCH] 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 --- .changeset/bright-pumpkins-move.md | 5 +++++ .../redux-devtools-instrument/src/instrument.ts | 13 ++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 .changeset/bright-pumpkins-move.md diff --git a/.changeset/bright-pumpkins-move.md b/.changeset/bright-pumpkins-move.md new file mode 100644 index 00000000..1ff2cb30 --- /dev/null +++ b/.changeset/bright-pumpkins-move.md @@ -0,0 +1,5 @@ +--- +'@redux-devtools/instrument': patch +--- + +Remove unnecessary exported functions from instrument diff --git a/packages/redux-devtools-instrument/src/instrument.ts b/packages/redux-devtools-instrument/src/instrument.ts index f288ed3a..f88b09eb 100644 --- a/packages/redux-devtools-instrument/src/instrument.ts +++ b/packages/redux-devtools-instrument/src/instrument.ts @@ -367,7 +367,7 @@ function recomputeStates>( /** * Lifts an app's action into an action on the lifted store. */ -export function liftAction>( +function liftAction>( action: A, trace?: ((action: A) => string | undefined) | boolean, traceLimit?: number, @@ -404,7 +404,7 @@ export interface LiftedState, MonitorState> { /** * Creates a history state reducer from an app's reducer. */ -export function liftReducerWith< +function liftReducerWith< S, A extends Action, MonitorState, @@ -832,12 +832,7 @@ export function liftReducerWith< /** * Provides an app's view into the state of the lifted store. */ -export function unliftState< - S, - A extends Action, - MonitorState, - NextStateExt, ->( +function unliftState, MonitorState, NextStateExt>( liftedState: LiftedState & NextStateExt, ): S & NextStateExt { const { computedStates, currentStateIndex } = liftedState; @@ -868,7 +863,7 @@ export type EnhancedStore, MonitorState> = Store< /** * Provides an app's view into the lifted store. */ -export function unliftStore< +function unliftStore< S, A extends Action, MonitorState,