]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
fix(types): revert declare module vue
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 18 May 2023 15:47:41 +0000 (17:47 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 18 May 2023 15:47:44 +0000 (17:47 +0200)
This seems to be causing problems without fixing any. I'm reverting this
to avoid any more trouble until we can figure out a better rollout
strategy.

packages/router/src/globalExtensions.ts

index 55a6687ca4be7d47fcdd82a029bb3c5b6ff16b5e..3689785782811364cf4e454338c0802a1a371ac8 100644 (file)
@@ -8,7 +8,8 @@ import { RouterLink } from './RouterLink'
 import type { Router } from './router'
 import type { TypesConfig } from './config'
 
-declare module 'vue' {
+// TODO: figure out why it cannot be 'vue' like said in docs
+declare module '@vue/runtime-core' {
   export interface ComponentCustomOptions {
     /**
      * Guard called when the router is navigating to the route that is rendering