redux-devtools/packages/redux-devtools-slider-monitor/examples/todomvc/store/configureStore.ts

14 lines
548 B
TypeScript

import { PreloadedState, Store } from 'redux';
import { TodoState } from '../reducers';
import { TodoAction } from '../actions/TodoActions';
const configureStore: (
initialState?: PreloadedState<TodoState>
) => Store<TodoState, TodoAction> =
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;