blog-admin-web/src/vuex.d.ts
2021-10-03 21:14:13 +08:00

10 lines
270 B
TypeScript

import { ComponentCustomProperties } from 'vue'
import { Store } from 'vuex'
import { StateType } from './store/types'
declare module '@vue/runtime-core' {
// provide typings for `this.$store`
interface ComponentCustomProperties {
$store: Store<StateType>
}
}