Options API - mapState property as function - type issue #588
-
I'm using the Options API and getting the store state with mapState. I would like to use a function to access the values as described here. The property's type is correct in mapState: When accessing the value in a method however, I get Why is it cast as type never? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
What version of pinia is this? Tests are currently passing |
Beta Was this translation helpful? Give feedback.
-
Should be fixed on the latest rc release |
Beta Was this translation helpful? Give feedback.
Should be fixed on the latest rc release