import { GetterTree } from 'vuex'
import { State } from './index'
import { RootState } from '~/store/index'

export type Getters<S = State> = {
  check(state: S, key: string): any
}

export const getters: GetterTree<State, RootState> & Getters = {
  check: (state, key: string) => {
    return state.check.get(key)
  },
}
