]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
fix: router typescript definations related to vue package (#2295)
authortingyuan <hbtwhucsis@gmail.com>
Tue, 9 Jul 2024 07:27:24 +0000 (15:27 +0800)
committerGitHub <noreply@github.com>
Tue, 9 Jul 2024 07:27:24 +0000 (09:27 +0200)
Co-authored-by: tingyuan <1932294867@qq.com>
packages/router/src/globalExtensions.ts

index 7aa983d62c52309b8049afcec0ce2278e1d55046..d236a52dd8dff0b11a3f82a4c5be025f9e75bbf4 100644 (file)
@@ -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