Skip to content

Commit d60dd27

Browse files
committed
chore: add notes
1 parent 909c45b commit d60dd27

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/router/src/types/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ export type NavigationGuardReturn =
490490
| Error
491491
| RouteLocationRaw
492492
| boolean
493+
// FIXME: this one is only allowed in options api
493494
| NavigationGuardNextCallback
494495

495496
/**
@@ -502,6 +503,7 @@ export interface NavigationGuard {
502503
to: RouteLocationNormalized,
503504
from: RouteLocationNormalized,
504505
next: NavigationGuardNext
506+
// FIXME: this one shouldn't allow returning () => ...
505507
): NavigationGuardReturn | Promise<NavigationGuardReturn>
506508
}
507509

0 commit comments

Comments
 (0)