]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: add notes
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 11 May 2023 10:40:30 +0000 (12:40 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 11 May 2023 10:40:30 +0000 (12:40 +0200)
packages/router/src/types/index.ts

index 9860e67108985002a25a7bcccf5aaa95ce0a8764..76588f71331eba5549ca17474f06afa9905c9f43 100644 (file)
@@ -490,6 +490,7 @@ export type NavigationGuardReturn =
   | Error
   | RouteLocationRaw
   | boolean
+  // FIXME: this one is only allowed in options api
   | NavigationGuardNextCallback
 
 /**
@@ -502,6 +503,7 @@ export interface NavigationGuard {
     to: RouteLocationNormalized,
     from: RouteLocationNormalized,
     next: NavigationGuardNext
+    // FIXME: this one shouldn't allow returning () => ...
   ): NavigationGuardReturn | Promise<NavigationGuardReturn>
 }