property 27 24store 27 does not exist on type

Solutions on MaxInterview for property 27 24store 27 does not exist on type by the best coders in the world

showing results for - "property 27 24store 27 does not exist on type"
Samantha
13 Jun 2020
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}