mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-17 07:05:03 +00:00
21 lines
489 B
TypeScript
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>;
|
|
}
|
|
}
|