fix(store): add type
This commit is contained in:
+2
-1
@@ -1,3 +1,4 @@
|
|||||||
|
import { Store } from 'redux';
|
||||||
import configureStore from './configure-store';
|
import configureStore from './configure-store';
|
||||||
|
|
||||||
import { ReactFlowState, ConnectionMode } from '../types';
|
import { ReactFlowState, ConnectionMode } from '../types';
|
||||||
@@ -56,7 +57,7 @@ export const initialState: ReactFlowState = {
|
|||||||
reactFlowVersion: typeof __REACT_FLOW_VERSION__ !== 'undefined' ? __REACT_FLOW_VERSION__ : '-',
|
reactFlowVersion: typeof __REACT_FLOW_VERSION__ !== 'undefined' ? __REACT_FLOW_VERSION__ : '-',
|
||||||
};
|
};
|
||||||
|
|
||||||
const store = configureStore(initialState);
|
const store: Store = configureStore(initialState);
|
||||||
|
|
||||||
export type ReactFlowDispatch = typeof store.dispatch;
|
export type ReactFlowDispatch = typeof store.dispatch;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user