mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-22 14:09:46 +03:00
Remove unnecessary exported functions from instrument
This avoids importing CombinedState so that the types are compatible with Redux 5
This commit is contained in:
parent
d57d015de9
commit
9e2a22c75c
|
@ -367,7 +367,7 @@ function recomputeStates<S, A extends Action<string>>(
|
||||||
/**
|
/**
|
||||||
* Lifts an app's action into an action on the lifted store.
|
* 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,
|
action: A,
|
||||||
trace?: ((action: A) => string | undefined) | boolean,
|
trace?: ((action: A) => string | undefined) | boolean,
|
||||||
traceLimit?: number,
|
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.
|
* Creates a history state reducer from an app's reducer.
|
||||||
*/
|
*/
|
||||||
export function liftReducerWith<
|
function liftReducerWith<
|
||||||
S,
|
S,
|
||||||
A extends Action<string>,
|
A extends Action<string>,
|
||||||
MonitorState,
|
MonitorState,
|
||||||
|
@ -832,12 +832,7 @@ export function liftReducerWith<
|
||||||
/**
|
/**
|
||||||
* Provides an app's view into the state of the lifted store.
|
* Provides an app's view into the state of the lifted store.
|
||||||
*/
|
*/
|
||||||
export function unliftState<
|
function unliftState<S, A extends Action<string>, MonitorState, NextStateExt>(
|
||||||
S,
|
|
||||||
A extends Action<string>,
|
|
||||||
MonitorState,
|
|
||||||
NextStateExt,
|
|
||||||
>(
|
|
||||||
liftedState: LiftedState<S, A, MonitorState> & NextStateExt,
|
liftedState: LiftedState<S, A, MonitorState> & NextStateExt,
|
||||||
): S & NextStateExt {
|
): S & NextStateExt {
|
||||||
const { computedStates, currentStateIndex } = liftedState;
|
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.
|
* Provides an app's view into the lifted store.
|
||||||
*/
|
*/
|
||||||
export function unliftStore<
|
function unliftStore<
|
||||||
S,
|
S,
|
||||||
A extends Action<string>,
|
A extends Action<string>,
|
||||||
MonitorState,
|
MonitorState,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user