Skip to content

Commit

Permalink
chore: add types for this.$route and this.$i18n in Vue instance
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed Aug 29, 2024
1 parent efc3448 commit d913508
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/shims-vue.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { RouteLocationNormalizedLoaded } from 'vue-router'
import { VueI18n } from 'vue-i18n'

declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$route: RouteLocationNormalizedLoaded
$i18n: VueI18n
}
}

0 comments on commit d913508

Please sign in to comment.