mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-04 13:42:27 +08:00
15 lines
303 B
TypeScript
15 lines
303 B
TypeScript
import { ComponentCustomProperties } from 'vue'
|
|
import { Store } from 'vuex'
|
|
|
|
declare module '@vue/runtime-core' {
|
|
// declare your own store states
|
|
interface State {
|
|
count: number
|
|
}
|
|
|
|
// provide typings for `this.$store`
|
|
interface ComponentCustomProperties {
|
|
$store: Store<State>
|
|
}
|
|
}
|