Files
DefectingCat 1d48411138 Fix checklist in markdown
* Add strip-markdown
* Add CopyButton component
* Fix copy code
* Add about page
* Use async function with get all markdown content
* Add shortcut icon
* Remove useless code
2021-11-20 11:34:21 +08:00

12 lines
454 B
TypeScript

import { configureStore } from '@reduxjs/toolkit';
import routerReducer from '../features/router/routerSlice';
export const store = configureStore({
reducer: { router: routerReducer },
});
// 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;