mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-11 20:27:07 +03:00
14 lines
548 B
TypeScript
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;
|