From 9e2a22c75c07292c3f88cfa35e13f4dd1b95a8ba Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sun, 5 Nov 2023 08:42:05 -0500 Subject: [PATCH] Remove unnecessary exported functions from instrument This avoids importing CombinedState so that the types are compatible with Redux 5 --- .../redux-devtools-instrument/src/instrument.ts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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,