From: Eduardo San Martin Morote Date: Thu, 26 Jan 2023 15:16:14 +0000 (+0100) Subject: style: lint X-Git-Tag: v4.2.0~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=002f85bc0c414cbe7b228999855f7894d2e80cc7;p=thirdparty%2Fvuejs%2Frouter.git style: lint --- 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)