greenpress / vuex-composition-helpers

A util package to use Vuex with Composition API easily.
https://www.npmjs.com/package/vuex-composition-helpers
MIT License
288 stars 32 forks source link

mapState returns type any for the computed state #59

Closed kpguru20001 closed 2 years ago

kpguru20001 commented 2 years ago

using mapState returns the following:

Screenshot 2022-01-27 at 9 47 58 AM

what is the right way of defining mapState or any other map in Typescript

davidmeirlevy commented 2 years ago

This library handles composition API usage, through "useState" and the setup function, and it doesn't seem that you do that, or even use this library.

The "mapState" is a method under "vuex" itself.