fix(store): add type

This commit is contained in:
Clément Loridan
2021-09-23 10:46:39 +02:00
parent c7ba938f94
commit 596aaee9dd
+2 -1
View File
@@ -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;