You've already forked bilibili-subtitle
15 lines
447 B
TypeScript
15 lines
447 B
TypeScript
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
|