* feat: pnpm new * Refactor build and release workflows, update dependencies Switch build scripts and workflows from npm to pnpm, update build and artifact paths, and simplify release workflow by removing version detection and changelog steps. Add new dependencies (silk-wasm, express, ws, node-pty-prebuilt-multiarch), update exports in package.json files, and add vite config for napcat-framework. Also, rename manifest.json for framework package and fix static asset copying in shell build config.
17 lines
460 B
TypeScript
17 lines
460 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;
|