import { STATE } from './state' import constants from './constants' import { Mutation , MutationTree } from 'vuex' const mutations : MutationTree < any > = { [constants.SETNAME](state : STATE , data : string) { state.name = data } } export default mutations ;