]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
style: lint
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 26 Jan 2023 15:16:14 +0000 (16:16 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 26 Jan 2023 15:16:14 +0000 (16:16 +0100)
packages/router/src/matcher/index.ts
packages/router/src/router.ts

index 9b1e1b3193572ddf0dd48b05e80258238347c2c1..3d1fec4e157093c30b0b7248fb23f4c94ea9442f 100644 (file)
@@ -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) {
index e2d5bfab2c216407c4de4944bbf23dab41d6d544..a74289854f316320289b8315f372aead4b7af090 100644 (file)
@@ -396,7 +396,7 @@ export function createRouter(options: RouterOptions): Router {
     parentOrRoute: RouteRecordName | RouteRecordRaw,
     route?: RouteRecordRaw
   ) {
-    let parent: Parameters<typeof matcher['addRoute']>[1] | undefined
+    let parent: Parameters<(typeof matcher)['addRoute']>[1] | undefined
     let record: RouteRecordRaw
     if (isRouteName(parentOrRoute)) {
       parent = matcher.getRecordMatcher(parentOrRoute)