2021-10-07 12:55:59 +02:00
|
|
|
declare module 'vue' {
|
2021-07-19 20:20:49 +02:00
|
|
|
export default Vue
|
2021-10-07 12:55:59 +02:00
|
|
|
export * from '@vue/runtime-dom'
|
2021-07-19 20:20:49 +02:00
|
|
|
}
|
2021-08-20 15:32:53 +02:00
|
|
|
|
|
|
|
// https://next.vuex.vuejs.org/guide/migrating-to-4-0-from-3-x.html#typescript-support
|
|
|
|
import { ComponentCustomProperties } from 'vue'
|
|
|
|
import { Store } from 'vuex'
|
|
|
|
|
|
|
|
declare module '@vue/runtime-core' {
|
|
|
|
// Declare your own store states.
|
|
|
|
interface State {
|
|
|
|
count: number
|
|
|
|
}
|
|
|
|
|
|
|
|
interface ComponentCustomProperties {
|
|
|
|
$store: Store<State>
|
|
|
|
}
|
|
|
|
}
|