vite-vue3-lowcode/types/vuex.d.ts

15 lines
310 B
TypeScript
Raw Normal View History

2022-01-01 01:31:04 +08:00
// import { ComponentCustomProperties } from 'vue';
import { Store } from 'vuex';
2021-09-07 16:09:59 +08:00
declare module '@vue/runtime-core' {
// declare your own store states
interface State {
2022-01-01 01:31:04 +08:00
count: number;
2021-09-07 16:09:59 +08:00
}
// provide typings for `this.$store`
interface ComponentCustomProperties {
2022-01-01 01:31:04 +08:00
$store: Store<State>;
2021-09-07 16:09:59 +08:00
}
}