mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-22 01:26:48 +03:00
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:
parent
d57d015de9
commit
262ea85ce1
5
.changeset/bright-pumpkins-move.md
Normal file
5
.changeset/bright-pumpkins-move.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@redux-devtools/instrument': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Remove unnecessary exported functions from instrument
|
|
@ -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