22 lines
475 B
TypeScript
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>
|
|
}
|
|
}
|