]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
fix: missing void type
authorEduardo San Martin Morote <posva13@gmail.com>
Sat, 1 Jun 2019 15:27:48 +0000 (17:27 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 4 Jun 2019 16:30:49 +0000 (18:30 +0200)
src/types/index.ts

index f925d2d6247b045965b0448d02d6a3d534dd62e9..76d4e64649e7434d6508f74474f3ef0663501e0c 100644 (file)
@@ -62,7 +62,7 @@ export interface RouteLocationNormalized
 
 // TODO: type this for beforeRouteUpdate and beforeRouteLeave
 export interface RouteComponentInterface {
-  beforeRouteEnter?: NavigationGuard
+  beforeRouteEnter?: NavigationGuard<void>
   /**
    * Guard called when the router is navigating away from the current route
    * that is rendering this component.