Skip to content

Commit

Permalink
Augment vue instead of @vue/runtime-core
Browse files Browse the repository at this point in the history
See documentation for augmenting global properties: https://vuejs.org/guide/typescript/options-api.html#augmenting-global-properties

Legacy @vue/runtime-core breaks with vue-router@^4.4.1

Cf: vuejs/language-tools#4793 (comment)
  • Loading branch information
ethmcc authored Dec 16, 2024
1 parent 1904ac7 commit f85a698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ declare module "vue/types/vue" {
}
}

declare module '@vue/runtime-core' {
declare module 'vue' {
interface ComponentCustomProperties {
$cookies: VueCookies
}
Expand Down

0 comments on commit f85a698

Please sign in to comment.