From d60dd271476735a89766bc1629825f4636fb7545 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Thu, 11 May 2023 12:40:30 +0200 Subject: [PATCH] chore: add notes --- packages/router/src/types/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/router/src/types/index.ts b/packages/router/src/types/index.ts index 9860e671..76588f71 100644 --- a/packages/router/src/types/index.ts +++ b/packages/router/src/types/index.ts @@ -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 } -- 2.47.2