From 2b42d543a11f716f59127bca90227cdcd112fd64 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Thu, 26 Aug 2021 00:05:27 -0400 Subject: [PATCH] Fix type --- .../src/utils/getInspectedState.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/redux-devtools-inspector-monitor/src/utils/getInspectedState.ts b/packages/redux-devtools-inspector-monitor/src/utils/getInspectedState.ts index 09fa708b..43a34eee 100644 --- a/packages/redux-devtools-inspector-monitor/src/utils/getInspectedState.ts +++ b/packages/redux-devtools-inspector-monitor/src/utils/getInspectedState.ts @@ -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( if (convertImmutable) { try { - state = fromJS(state).toJS(); + state = (fromJS(state) as Map).toJS() as unknown as S; } catch (e) {} // eslint-disable-line no-empty }