Vuex Getters and Typescript errors
I have a quasar project which uses Vuex and the Composition API. I have enabled typescript and I’ve added Cordova.
I have a component which needs to pull a boolean value from a getter in my store module like so:
const flag = computed(() => store.getters['test/flag'])
the code works fine while I’m developing, but if I try to build it, I get the following typescript errors:
106:33 error Unsafe member access ['test/flag'] on an any value @typescript-eslint/no-unsafe-member-access 106:33 error Unsafe return of an any typed value @typescript-eslint/no-unsafe-return
Let me know if I need to provide additional info, I have an example project which I can provide if necessary.
Can anyone tell me what I need to do to safely use getters in my typescript component?