mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +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';
|
import isIterable from './isIterable';
|
||||||
|
|
||||||
function iterateToKey(obj: any, key: string | number) {
|
function iterateToKey(obj: any, key: string | number) {
|
||||||
|
@ -41,7 +41,7 @@ export default function getInspectedState<S>(
|
||||||
|
|
||||||
if (convertImmutable) {
|
if (convertImmutable) {
|
||||||
try {
|
try {
|
||||||
state = fromJS(state).toJS();
|
state = (fromJS(state) as Map<unknown, unknown>).toJS() as unknown as S;
|
||||||
} catch (e) {} // eslint-disable-line no-empty
|
} catch (e) {} // eslint-disable-line no-empty
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user