import Vue from "vue" ; import Vuex from "vuex" ; import { SetId } from "../dominion/set-id" ; import { windowStore , State as WindowStoreState } from "./window/window-store" ; import { store as i18nStore , State as I18nState } from "./i18n/store" ; Vue . use ( Vuex ) ; export interface State { selectedSetId : SetId ; window : WindowStoreState ; i18n : I18nState ; } export const store = new Vuex . Store ( { state : { selectedSetId : SetId . BASE_SET } as State , mutations : { UPDATE_SELECTED_SET ( state , setId ) { state . selectedSetId = setId ; } } , modules : { window : windowStore , i18n : i18nStore , } } ) ;