vikunja-frontend/src/types/shims-vue.d.ts
Dominik Pschenitschni 59401bc1da
fix: vue3 types
2021-10-07 12:55:59 +02:00

19 lines
No EOL
433 B
TypeScript

declare module 'vue' {
export default Vue
export * from '@vue/runtime-dom'
}
// 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>
}
}