- ordering some functions
- fix error TS2339
quasar.extensions.json was the problem !
inside had:
{
"@quasar/typescript": {
"webpack": "plugin",
"rename": true
}
}
26 lines
549 B
TypeScript
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
|