mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-21 17:16:42 +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.
|
||||
*/
|
||||
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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user