We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 909c45b commit d60dd27Copy full SHA for d60dd27
packages/router/src/types/index.ts
@@ -490,6 +490,7 @@ export type NavigationGuardReturn =
490
| Error
491
| RouteLocationRaw
492
| boolean
493
+ // FIXME: this one is only allowed in options api
494
| NavigationGuardNextCallback
495
496
/**
@@ -502,6 +503,7 @@ export interface NavigationGuard {
502
503
to: RouteLocationNormalized,
504
from: RouteLocationNormalized,
505
next: NavigationGuardNext
506
+ // FIXME: this one shouldn't allow returning () => ...
507
): NavigationGuardReturn | Promise<NavigationGuardReturn>
508
}
509
0 commit comments