Regarding the usage of Typescript enabled Vuex in Composition API #8770
Unanswered
Ammamon
asked this question in
General - Components / Directives / etc
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am experimenting with the usage of typescript enabled Vuex in Composition API (Quasar v2 beta)
Please see my example code below.
Even though I am able get the state value displayed on screen, I am shown the below error in the part highlighted in red by ESLint
Unsafe member access .item on an any value.eslint@typescript-eslint/no-unsafe-member-access
How can I fix this type error?
Note that I am using module based store, as you can see in the explorer at the left side.
state.ts file:
index.ts file content for that particular module.
Beta Was this translation helpful? Give feedback.
All reactions