import {GetterTree} from "vuex"; import {State} from "@/store/state"; export type Getters = { playerMarkersEnabled(state: State): boolean; } export const getters: GetterTree & Getters = { playerMarkersEnabled(state: State): boolean { return state.components.playerMarkers !== undefined; } }