Files
freeplanet/src/store/index.ts

25 lines
509 B
TypeScript
Raw Normal View History

import Vue from 'vue'
2018-11-17 21:07:07 +01:00
import Vuex, { Store } from 'vuex'
import { IGlobalState } from 'model'
2018-11-17 21:07:07 +01:00
import { Route } from 'vue-router'
import { getStoreBuilder } from 'vuex-typex'
2018-11-15 19:48:37 +01:00
export interface RootState {
GlobalModule: IGlobalState
2018-11-15 19:48:37 +01:00
route: Route
}
2018-11-17 21:07:07 +01:00
Vue.use(Vuex)
export const DebugMode = true
2018-11-05 22:28:59 +01:00
2018-11-15 19:48:37 +01:00
export * from './Modules'
2018-11-17 21:07:07 +01:00
export { default as EventBus } from './EventBus'
export { default as Api } from './Api'
const store: Store<RootState> = getStoreBuilder<RootState>().vuexStore()
export default store