import { MutationTree , ActionTree , Module , GetterTree } from 'vuex' ; import { State as RootState } from '../index' ; import { namespaced , register as commonRegister , State as CommonState , state as commonState , mutations as commonMutations , } from '@/stores/modules/preference' ; import { moduleHelper } from '@/stores' ; export const register = { ... commonRegister , } ; const state = { ... commonState , } ; const mutations = { ... commonMutations , } ; const actions = { } ; const getters = { } ; export const preference = { namespaced , state , actions , mutations , getters , } ; export default moduleHelper ( preference , register ) ; type State = CommonState ;