mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
Fix redux-devtools build
This commit is contained in:
parent
0813b61b60
commit
4d014de5aa
|
@ -1,6 +1,6 @@
|
|||
import mapValues from 'lodash/mapValues';
|
||||
import identity from 'lodash/identity';
|
||||
import { Action, PreloadedState, Reducer, StoreEnhancer } from 'redux';
|
||||
import { Action, Reducer, StoreEnhancer } from 'redux';
|
||||
import { LiftedState } from '@redux-devtools/instrument';
|
||||
|
||||
export default function persistState<S, A extends Action<string>, MonitorState>(
|
||||
|
@ -32,9 +32,9 @@ export default function persistState<S, A extends Action<string>, MonitorState>(
|
|||
}
|
||||
|
||||
return (next) =>
|
||||
<S2, A2 extends Action<string>>(
|
||||
reducer: Reducer<S2, A2>,
|
||||
initialState?: PreloadedState<S2>,
|
||||
<S2, A2 extends Action<string>, PreloadedState>(
|
||||
reducer: Reducer<S2, A2, PreloadedState>,
|
||||
initialState?: PreloadedState | undefined,
|
||||
) => {
|
||||
const key = `redux-dev-session-${sessionId}`;
|
||||
|
||||
|
@ -58,7 +58,7 @@ export default function persistState<S, A extends Action<string>, MonitorState>(
|
|||
|
||||
const store = next(
|
||||
reducer,
|
||||
finalInitialState as PreloadedState<S2> | undefined,
|
||||
finalInitialState as PreloadedState | undefined,
|
||||
);
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue
Block a user