mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-26 07:59:48 +03:00
Fix type
This commit is contained in:
parent
6b4dbed116
commit
2b42d543a1
|
@ -1,4 +1,4 @@
|
|||
import { fromJS, isAssociative } from 'immutable';
|
||||
import { fromJS, isAssociative, Map } from 'immutable';
|
||||
import isIterable from './isIterable';
|
||||
|
||||
function iterateToKey(obj: any, key: string | number) {
|
||||
|
@ -41,7 +41,7 @@ export default function getInspectedState<S>(
|
|||
|
||||
if (convertImmutable) {
|
||||
try {
|
||||
state = fromJS(state).toJS();
|
||||
state = (fromJS(state) as Map<unknown, unknown>).toJS() as unknown as S;
|
||||
} catch (e) {} // eslint-disable-line no-empty
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user