Files
freeplanet/src/store/index.ts
Paolo Arena eda9a8514f - starting project list...
- ordering some functions
- fix error TS2339

quasar.extensions.json was the problem !
inside had:
{
  "@quasar/typescript": {
    "webpack": "plugin",
    "rename": true
  }
}
2019-03-21 20:43:15 +01:00

26 lines
549 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'
import { IProgressState } from '@types'
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