import {Module, GetterTree, MutationTree, ActionTree} from 'vuex'; declare global { interface CommonStoreModule extends Module { getters: CommonStoreGetters; mutations: CommonStoreMutations; actions: CommonStoreActions; } interface CommonStoreState { lang?: Lang; systemInfo?: SystemInfo; } type CommonStoreGetters = GetterTree; interface CommonStoreMutations extends MutationTree { setLang: StoreMutation; setSystemInfo: StoreMutation; } interface CommonStoreActions extends ActionTree { getSystemInfo: StoreAction; } }