Skip to content

Commit

Permalink
chore: add notes
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed May 11, 2023
1 parent 909c45b commit d60dd27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/router/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ export type NavigationGuardReturn =
| Error
| RouteLocationRaw
| boolean
// FIXME: this one is only allowed in options api
| NavigationGuardNextCallback

/**
Expand All @@ -502,6 +503,7 @@ export interface NavigationGuard {
to: RouteLocationNormalized,
from: RouteLocationNormalized,
next: NavigationGuardNext
// FIXME: this one shouldn't allow returning () => ...
): NavigationGuardReturn | Promise<NavigationGuardReturn>
}

Expand Down

0 comments on commit d60dd27

Please # to comment.