From f85a698bb5486354e7e93b8c6f0e8b55e16842a7 Mon Sep 17 00:00:00 2001 From: ethmcc <64378116+ethmcc@users.noreply.github.com> Date: Mon, 16 Dec 2024 12:50:28 -0500 Subject: [PATCH] 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: https://github.com/vuejs/language-tools/issues/4793#issuecomment-2336471084 --- types/vue.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/vue.d.ts b/types/vue.d.ts index 77bcc9a..ad4204e 100644 --- a/types/vue.d.ts +++ b/types/vue.d.ts @@ -10,7 +10,7 @@ declare module "vue/types/vue" { } } -declare module '@vue/runtime-core' { +declare module 'vue' { interface ComponentCustomProperties { $cookies: VueCookies }