deploy-ease-platform/frontend/src/store/index.ts
2024-11-30 17:41:04 +08:00

13 lines
305 B
TypeScript

import {configureStore} from '@reduxjs/toolkit';
import userReducer from './userSlice';
const store = configureStore({
reducer: {
user: userReducer,
},
});
export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;
export default store;