3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-17 07:05:03 +00:00
zeppelin/dashboard/src/store/index.ts
2025-03-13 00:04:57 +00:00

21 lines
489 B
TypeScript

import { createStore, Store } from "vuex";
import { AuthStore } from "./auth";
import { DocsStore } from "./docs";
import { GuildStore } from "./guilds";
import { RootState } from "./types";
export const RootStore = createStore({
modules: {
auth: AuthStore,
guilds: GuildStore,
docs: DocsStore,
},
});
// Set up typings so Vue/our components know about the state's types
declare module "vue" {
interface ComponentCustomProperties {
$store: Store<RootState>;
}
}