From: Eduardo San Martin Morote Date: Fri, 18 Jun 2021 09:51:50 +0000 (+0200) Subject: chore: comments X-Git-Tag: v4.0.11~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f18979d5cae141e1666ce651f7d0f64d26b67668;p=thirdparty%2Fvuejs%2Frouter.git chore: comments --- diff --git a/src/navigationGuards.ts b/src/navigationGuards.ts index 8bb14f7b..29b8d19f 100644 --- a/src/navigationGuards.ts +++ b/src/navigationGuards.ts @@ -60,6 +60,7 @@ export function onBeforeRouteLeave(leaveGuard: NavigationGuard) { const activeRecord: RouteRecordNormalized | undefined = inject( matchedRouteKey, + // to avoid warning {} as any ).value @@ -91,6 +92,7 @@ export function onBeforeRouteUpdate(updateGuard: NavigationGuard) { const activeRecord: RouteRecordNormalized | undefined = inject( matchedRouteKey, + // to avoid warning {} as any ).value @@ -327,6 +329,7 @@ export function extractComponentsGuards( /** * Allows differentiating lazy components from functional components and vue-class-component + * * @param component */ function isRouteComponent(