diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2019-05-05 12:54:54 +0200 |
---|---|---|
committer | jbion <joffrey.bion@amadeus.com> | 2019-05-06 18:33:14 +0200 |
commit | 7499f84cdd25a8355a6c4b952c33720dfd4cb6c1 (patch) | |
tree | d2b3de98cc26b5db826a18923daf82acb764f99c | |
parent | Simplify store.js using react-devtools-extensions package (diff) | |
download | seven-wonders-7499f84cdd25a8355a6c4b952c33720dfd4cb6c1.tar.gz seven-wonders-7499f84cdd25a8355a6c4b952c33720dfd4cb6c1.tar.bz2 seven-wonders-7499f84cdd25a8355a6c4b952c33720dfd4cb6c1.zip |
Convert store.js to TypeScript
-rw-r--r-- | frontend/src/store.ts (renamed from frontend/src/store.js) | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/frontend/src/store.js b/frontend/src/store.ts index 2a5bf4bb..54a65509 100644 --- a/frontend/src/store.js +++ b/frontend/src/store.ts @@ -1,14 +1,13 @@ -// @flow import createHistory from 'history/createBrowserHistory'; import { routerMiddleware } from 'react-router-redux'; import { applyMiddleware, createStore } from 'redux'; import { composeWithDevTools } from 'redux-devtools-extension'; import createSagaMiddleware from 'redux-saga'; -import type { GlobalState } from './reducers'; +import { GlobalState } from './reducers'; import { createReducer } from './reducers'; import { rootSaga } from './sagas'; -export function configureStore(initialState: GlobalState = {}) { +export function configureStore(initialState: GlobalState) { const sagaMiddleware = createSagaMiddleware(); const history = createHistory(); |