Skip to content

Commit f85a698

Browse files
authored
Augment vue instead of @vue/runtime-core
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)
1 parent 1904ac7 commit f85a698

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/vue.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ declare module "vue/types/vue" {
1010
}
1111
}
1212

13-
declare module '@vue/runtime-core' {
13+
declare module 'vue' {
1414
interface ComponentCustomProperties {
1515
$cookies: VueCookies
1616
}

0 commit comments

Comments
 (0)