Quasar 2 (Beta 17), Vuex 4, typescript. Getters not showing in store. #9365
-
I have dedided to go all-in with Q2, Vuex4 and Typescript. I have built the base application from the cli
in src/store/module-example/state.ts
in src/pages/Index.vue:
So far so good.....now I'm struggling!
but I don't get any intellisense in Index.vue when I try to add a new computed property:
I'm pretty sure that the issue lies in the getters file. the original code looked like
There is no interface for type definition and the getters being generated is not an extension of the GetterTree (using &) but an new instantiation of it. What am I doing wrong and how do I fix it before (hopefully) applying the same logic to actions and mutations. TIA Aaron |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
OK. worked out the syntax:
but it has to be linter-protected as it is not type-safe. and as a result there is no intellisense on it :( |
Beta Was this translation helpful? Give feedback.
OK. worked out the syntax:
but it has to be linter-protected as it is not type-safe. and as a result there is no intellisense on it :(