import { PreloadedState, Store } from 'redux'; import { TodoState } from '../reducers'; import { TodoAction } from '../actions/TodoActions'; const configureStore: ( initialState?: PreloadedState ) => Store = process.env.NODE_ENV === 'production' ? // eslint-disable-next-line @typescript-eslint/no-var-requires require('./configureStore.prod').default : // eslint-disable-next-line @typescript-eslint/no-var-requires require('./configureStore.dev').default; export default configureStore;