store.ts 364 Bytes
// REQ-USR-004: Redux store(FE 共享骨架,后续 FE-02~04 复用)
import { configureStore } from '@reduxjs/toolkit';
import authReducer from './slices/authSlice';

export const store = configureStore({
  reducer: {
    auth: authReducer,
  },
});

export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;