mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
* 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
12 lines
454 B
TypeScript
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;
|