um-react/src/store.ts

12 lines
319 B
TypeScript
Raw Normal View History

2023-05-07 22:29:37 +00:00
import { configureStore } from '@reduxjs/toolkit';
import fileListing from './features/file-listing/fileListingSlice';
export const store = configureStore({
reducer: {
fileListing: fileListing,
},
});
export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;