mirror of
https://github.com/bendtherules/ts-transformer-visualizer.git
synced 2026-08-18 13:51:48 +00:00
28 lines
610 B
TypeScript
28 lines
610 B
TypeScript
import {
|
|
createStore,
|
|
combineReducers,
|
|
applyMiddleware,
|
|
Middleware
|
|
} from "redux";
|
|
import { composeWithDevTools } from "redux-devtools-extension";
|
|
|
|
import { sourceFilesReducer } from "./sourceFiles/reducer";
|
|
|
|
const rootReducer = combineReducers({
|
|
sourceFiles: sourceFilesReducer
|
|
});
|
|
|
|
export type AppState = ReturnType<typeof rootReducer>;
|
|
|
|
export default function configureStore() {
|
|
const middlewares: Middleware[] = [];
|
|
const middleWareEnhancer = applyMiddleware(...middlewares);
|
|
|
|
const store = createStore(
|
|
rootReducer,
|
|
composeWithDevTools(middleWareEnhancer)
|
|
);
|
|
|
|
return store;
|
|
}
|