mirror of
https://github.com/bendtherules/ts-transformer-visualizer.git
synced 2026-08-19 00:35:13 +00:00
Move library files to lib/
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user