Skip to content

Commit 002f85b

Browse files
committed
style: lint
1 parent 85296dd commit 002f85b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/router/src/matcher/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function createRouterMatcher(
8585
mainNormalizedRecord.aliasOf = originalRecord && originalRecord.record
8686
const options: PathParserOptions = mergeOptions(globalOptions, record)
8787
// generate an array of records to correctly handle aliases
88-
const normalizedRecords: typeof mainNormalizedRecord[] = [
88+
const normalizedRecords: (typeof mainNormalizedRecord)[] = [
8989
mainNormalizedRecord,
9090
]
9191
if ('alias' in record) {

packages/router/src/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ export function createRouter(options: RouterOptions): Router {
396396
parentOrRoute: RouteRecordName | RouteRecordRaw,
397397
route?: RouteRecordRaw
398398
) {
399-
let parent: Parameters<typeof matcher['addRoute']>[1] | undefined
399+
let parent: Parameters<(typeof matcher)['addRoute']>[1] | undefined
400400
let record: RouteRecordRaw
401401
if (isRouteName(parentOrRoute)) {
402402
parent = matcher.getRecordMatcher(parentOrRoute)

0 commit comments

Comments
 (0)