typed-vuex icon indicating copy to clipboard operation
typed-vuex copied to clipboard

Feature request: Extend `mapper` to allow mapping to different names

Open omnichronous opened this issue 2 years ago • 0 comments

Great feature, but can this be extend to allow us to rename the props names? Like vuex does with mapGetters, etc ?

Originally posted by @MateiNenciu in https://github.com/danielroe/typed-vuex/issues/264#issuecomment-1060700804

It would be awesome to have this, basically as described in the Vuex docs:

...mapGetters({
  // map `this.doneCount` to `this.$store.getters.doneTodosCount`
  doneCount: 'doneTodosCount'
})

omnichronous avatar Apr 04 '23 13:04 omnichronous