Files
freeplanet/src/store/index.ts
paolo 02e5725ba9 Building in Production -> put to the Server
give an error: Vuex handler functions must not be anonymous.
Resolve:
npm cache clean --force
npm install
npm i npm@latest -g
2018-12-22 23:30:02 +01:00

25 lines
509 B
TypeScript

import Vue from 'vue'
import Vuex, { Store } from 'vuex'
import { IGlobalState } from 'model'
import { Route } from 'vue-router'
import { getStoreBuilder } from 'vuex-typex'
export interface RootState {
GlobalModule: IGlobalState
route: Route
}
Vue.use(Vuex)
export const DebugMode = true
export * from './Modules'
export { default as EventBus } from './EventBus'
export { default as Api } from './Api'
const store: Store<RootState> = getStoreBuilder<RootState>().vuexStore()
export default store