How to correctly type the "this" keyword referencing the Pinia-store itself #12023
Unanswered
DevKame
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a function within my piniaStore of my Vue+TS project:
My issue is with the word "this". It works but my ts compiler is crying.
getAllUsers is a computed property within my store and i want to access it using the this keyword.
Like i said, it works fine but, again, typescript is throwing errors:
When i hover over the this keyword it says this:
How do i type this correctly?
Beta Was this translation helpful? Give feedback.
All reactions