Files
stacjownik/src/vuex.d.ts
T
2021-06-29 13:13:42 +02:00

14 lines
315 B
TypeScript

import { ComponentCustomProperties } from 'vue'
import { Store } from 'vuex'
declare module '@vue/runtime-core' {
// declare your own store states
interface State {
count: number
}
// provide typings for `this.$store`
interface ComponentCustomProperties {
$store: Store<State>
}
}