From 002f85bc0c414cbe7b228999855f7894d2e80cc7 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Thu, 26 Jan 2023 16:16:14 +0100 Subject: [PATCH] style: lint --- packages/router/src/matcher/index.ts | 2 +- packages/router/src/router.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/router/src/matcher/index.ts b/packages/router/src/matcher/index.ts index 9b1e1b31..3d1fec4e 100644 --- a/packages/router/src/matcher/index.ts +++ b/packages/router/src/matcher/index.ts @@ -85,7 +85,7 @@ export function createRouterMatcher( mainNormalizedRecord.aliasOf = originalRecord && originalRecord.record const options: PathParserOptions = mergeOptions(globalOptions, record) // generate an array of records to correctly handle aliases - const normalizedRecords: typeof mainNormalizedRecord[] = [ + const normalizedRecords: (typeof mainNormalizedRecord)[] = [ mainNormalizedRecord, ] if ('alias' in record) { diff --git a/packages/router/src/router.ts b/packages/router/src/router.ts index e2d5bfab..a7428985 100644 --- a/packages/router/src/router.ts +++ b/packages/router/src/router.ts @@ -396,7 +396,7 @@ export function createRouter(options: RouterOptions): Router { parentOrRoute: RouteRecordName | RouteRecordRaw, route?: RouteRecordRaw ) { - let parent: Parameters[1] | undefined + let parent: Parameters<(typeof matcher)['addRoute']>[1] | undefined let record: RouteRecordRaw if (isRouteName(parentOrRoute)) { parent = matcher.getRecordMatcher(parentOrRoute) -- 2.47.2