1// https://stackoverflow.com/questions/64412243/vue-js-3-and-typescript-property-store-does-not-exist-on-type-componentpub
2// add file named 'vuex-shim.d.ts', with contents:
3
4import { ComponentCustomProperties } from 'vue'
5import { Store } from 'vuex'
6
7declare module '@vue/runtime-core' {
8 // Declare your own store states.
9 interface State {
10 count: number
11 }
12
13 interface ComponentCustomProperties {
14 $store: Store<State>
15 }
16}