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
This commit is contained in:
Nathan Bierema 2023-11-05 08:52:55 -05:00 committed by GitHub
parent d57d015de9
commit 262ea85ce1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View File

@ -0,0 +1,5 @@
---
'@redux-devtools/instrument': patch
---
Remove unnecessary exported functions from instrument

View File

@ -367,7 +367,7 @@ function recomputeStates<S, A extends Action<string>>(
/**
* Lifts an app's action into an action on the lifted store.
*/
export function liftAction<A extends Action<string>>(
function liftAction<A extends Action<string>>(
action: A,
trace?: ((action: A) => string | undefined) | boolean,
traceLimit?: number,
@ -404,7 +404,7 @@ export interface LiftedState<S, A extends Action<string>, MonitorState> {
/**
* Creates a history state reducer from an app's reducer.
*/
export function liftReducerWith<
function liftReducerWith<
S,
A extends Action<string>,
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<string>,
MonitorState,
NextStateExt,
>(
function unliftState<S, A extends Action<string>, MonitorState, NextStateExt>(
liftedState: LiftedState<S, A, MonitorState> & NextStateExt,
): S & NextStateExt {
const { computedStates, currentStateIndex } = liftedState;
@ -868,7 +863,7 @@ export type EnhancedStore<S, A extends Action<string>, MonitorState> = Store<
/**
* Provides an app's view into the lifted store.
*/
export function unliftStore<
function unliftStore<
S,
A extends Action<string>,
MonitorState,