Mistyped computed getters with parameters using setup function #1065
Unanswered
Glandos
asked this question in
Help and Questions
Replies: 2 comments 2 replies
-
I have the same problem when using vue3 |
Beta Was this translation helpful? Give feedback.
0 replies
-
What does your store look like? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I followed #978 using the exact same store.
I am using a Vue 2 project, in an SFC with vue-class-component (yes, this is an already started project…):
However, both Vetur in VSCode and the Typescript checker complain on the
messageIfEven
saying that:So it seems that the getter is weirdly unwrapped, since it only retains its
Result
. But executing the code shows me thatmessageIfEven
is a function.What did I miss?
Beta Was this translation helpful? Give feedback.
All reactions