This commit is contained in:
IndieKKY
2023-05-17 16:37:56 +08:00
commit 858f83a45c
59 changed files with 8855 additions and 0 deletions

14
src/store.ts Normal file
View File

@@ -0,0 +1,14 @@
import {configureStore} from '@reduxjs/toolkit'
import envReducer from './redux/envReducer'
const store = configureStore({
reducer: {
env: envReducer,
},
})
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