mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-12 07:50:25 +00:00
17 lines
452 B
TypeScript
17 lines
452 B
TypeScript
import { configureStore } from '@reduxjs/toolkit'
|
|
|
|
import configSlice from './modules/config'
|
|
|
|
const store = configureStore({
|
|
reducer: {
|
|
config: configSlice
|
|
}
|
|
})
|
|
|
|
export default store
|
|
|
|
// Infer the `RootState` and `AppDispatch` types from the store itself
|
|
export type RootState = ReturnType<typeof store.getState>
|
|
// Inferred type: {posts: PostsState, comments: CommentsState, users: UsersState}
|
|
export type AppDispatch = typeof store.dispatch
|