Files
freeplanet/src/store/index.ts

37 lines
718 B
TypeScript
Raw Normal View History

import Vue from 'vue'
2018-11-17 21:07:07 +01:00
import Vuex, { Store } from 'vuex'
2018-11-17 21:07:07 +01:00
import { IGlobState } from 'model'
import { Route } from 'vue-router'
import { getStoreBuilder } from 'vuex-typex'
2018-11-15 19:48:37 +01:00
export interface RootState {
GlobalModule: IGlobState
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
// export function createStore() {
// const store: Store<RootState> = storeBuilder.vuexStore({
// strict: DebugMode
// })
//
// return store
//
// }
// export default new Vuex.Store<RootState>({
// })