This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
2021-08-20 13:32:53 +00:00
|
|
|
// https://next.vuex.vuejs.org/guide/migrating-to-4-0-from-3-x.html#typescript-support
|
|
|
|
import { ComponentCustomProperties } from 'vue'
|
|
|
|
import { Store } from 'vuex'
|
|
|
|
|
|
|
|
declare module '@vue/runtime-core' {
|
|
|
|
// Declare your own store states.
|
|
|
|
interface State {
|
|
|
|
count: number
|
|
|
|
}
|
|
|
|
|
|
|
|
interface ComponentCustomProperties {
|
|
|
|
$store: Store<State>
|
|
|
|
}
|
|
|
|
}
|