]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
fix(types): extend @vue/runtime-core module (#473)
authorShinigami <chrissi92@hotmail.de>
Sun, 20 Sep 2020 16:57:10 +0000 (18:57 +0200)
committerGitHub <noreply@github.com>
Sun, 20 Sep 2020 16:57:10 +0000 (18:57 +0200)
`declare module 'vue'` seems only to work if there is no other additional plugin

src/globalExtensions.ts

index d903b6e996a14e3149dccafeb0a982c396eb64c1..eba7082d6957feb98a63211c44a474e68bd4aad2 100644 (file)
@@ -5,7 +5,7 @@ import {
 } from './types'
 import { Router } from './router'
 
-declare module 'vue' {
+declare module '@vue/runtime-core' {
   export interface ComponentCustomOptions {
     /**
      * Guard called when the router is navigating to the route that is rendering