From: Shinigami Date: Sun, 20 Sep 2020 16:57:10 +0000 (+0200) Subject: fix(types): extend @vue/runtime-core module (#473) X-Git-Tag: v4.0.0-beta.12~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=556cd4b4af3d7ac1aa1c66848f5ab1bc33d13153;p=thirdparty%2Fvuejs%2Frouter.git fix(types): extend @vue/runtime-core module (#473) `declare module 'vue'` seems only to work if there is no other additional plugin --- diff --git a/src/globalExtensions.ts b/src/globalExtensions.ts index d903b6e9..eba7082d 100644 --- a/src/globalExtensions.ts +++ b/src/globalExtensions.ts @@ -5,7 +5,7 @@ import { } from './types' import { Router } from './router' -declare module 'vue' { +declare module '@vue/runtime-core' { export interface ComponentCustomOptions { /** * Guard called when the router is navigating to the route that is rendering