From a495ce0e1d545d521673d21af43e63a761b53e27 Mon Sep 17 00:00:00 2001 From: tingyuan Date: Tue, 9 Jul 2024 15:27:24 +0800 Subject: [PATCH] fix: router typescript definations related to vue package (#2295) Co-authored-by: tingyuan <1932294867@qq.com> --- packages/router/src/globalExtensions.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.47.2