From 596aaee9dd87c05796a62b964bd94ee4cec6bfd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Loridan?= Date: Thu, 23 Sep 2021 10:46:39 +0200 Subject: [PATCH] fix(store): add type --- src/store/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/index.ts b/src/store/index.ts index 6640d9e0..cf24e6b9 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -1,3 +1,4 @@ +import { Store } from 'redux'; import configureStore from './configure-store'; import { ReactFlowState, ConnectionMode } from '../types'; @@ -56,7 +57,7 @@ export const initialState: ReactFlowState = { reactFlowVersion: typeof __REACT_FLOW_VERSION__ !== 'undefined' ? __REACT_FLOW_VERSION__ : '-', }; -const store = configureStore(initialState); +const store: Store = configureStore(initialState); export type ReactFlowDispatch = typeof store.dispatch;