From: tingyuan Date: Tue, 9 Jul 2024 07:27:24 +0000 (+0800) Subject: fix: router typescript definations related to vue package (#2295) X-Git-Tag: v4.4.1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a495ce0e1d545d521673d21af43e63a761b53e27;p=thirdparty%2Fvuejs%2Frouter.git fix: router typescript definations related to vue package (#2295) Co-authored-by: tingyuan <1932294867@qq.com> --- diff --git a/packages/router/src/globalExtensions.ts b/packages/router/src/globalExtensions.ts index 7aa983d6..d236a52d 100644 --- a/packages/router/src/globalExtensions.ts +++ b/packages/router/src/globalExtensions.ts @@ -8,8 +8,7 @@ import type { RouterLink } from './RouterLink' import type { Router } from './router' import type { TypesConfig } from './config' -// TODO: figure out why it cannot be 'vue' like said in docs -declare module '@vue/runtime-core' { +declare module 'vue' { export interface ComponentCustomOptions { /** * Guard called when the router is navigating to the route that is rendering