Files
wallitor/wallitor-gui/src/store/vuex.d.ts
T
2024-10-14 11:17:20 +08:00

22 lines
475 B
TypeScript

import type { Store } from 'vuex'
import type { Cell } from '@/ts/types'
declare module 'vuex' {
export * from 'vuex/types/index.d.ts'
export * from 'vuex/types/helpers.d.ts'
export * from 'vuex/types/logger.d.ts'
export * from 'vuex/types/vue.d.ts'
}
declare module 'vue' {
// 声明自己的 store state
interface State {
wpList: Cell[]
}
// 为 `this.$store` 提供类型声明
interface ComponentCustomProperties {
$store: Store<State>
}
}