From 97be7c3462b1d44bf7767a76b7290b6764150895 Mon Sep 17 00:00:00 2001 From: tingyuan <1932294867@qq.com> Date: Mon, 8 Jul 2024 00:50:17 +0800 Subject: [PATCH] fix: router typescript definations related to vue package --- 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 7aa983d62..d236a52dd 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