vuejs / vuex

🗃️ Centralized State Management for Vue.js.
https://vuex.vuejs.org
MIT License
28.42k stars 9.57k forks source link

Vuex4 - typings for store.getters #1956

Closed ConnorJBishop closed 3 years ago

ConnorJBishop commented 3 years ago

Forgive me if I'm missing something but it seems that for Vuex4 there is no way to provide typings for our getters, only state. As a result store.getters is of type any which is not ideal for typescript users.

Is this an intentional design decision?

vue-bot commented 3 years ago

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!