]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: comment style
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 30 Jul 2025 19:58:59 +0000 (21:58 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 30 Jul 2025 19:58:59 +0000 (21:58 +0200)
packages/router/src/experimental/index.ts
packages/router/src/experimental/route-resolver/matchers/matcher-pattern.ts
packages/router/src/experimental/route-resolver/resolver-dynamic.ts
packages/router/src/experimental/router.ts

index 62ae84c6485904a8a29a3577016f80ff8c518c83..83f7a8ff68f1d0396b0b6c25a781c0ae482f08b3 100644 (file)
@@ -28,4 +28,6 @@ export type {
   MatcherPatternHash,
   MatcherPatternPath,
   MatcherPatternQuery,
+  MatcherParamsFormatted,
+  EmptyParams,
 } from './route-resolver/matchers/matcher-pattern'
index 3bc66bce5ba6b9cf177876513ad6303f68386121..399ba1b00cf78fd9cae87ec15b504acefa5b0fd5 100644 (file)
@@ -273,10 +273,14 @@ export interface MatcherPatternQuery<
  */
 export interface MatcherPatternHash<
   TParams extends MatcherParamsFormatted = MatcherParamsFormatted,
-> extends MatcherPattern<string, TParams> {} /**
+> extends MatcherPattern<string, TParams> {}
+
+/**
  * Generic object of params that can be passed to a matcher.
  */
-export type MatcherParamsFormatted = Record<string, unknown> /**
+export type MatcherParamsFormatted = Record<string, unknown>
+
+/**
  * Empty object in TS.
  */
 export type EmptyParams = Record<PropertyKey, never>
index 7a1d0baa74747e3bd577868671b7e7c9777cf6a3..ddff7c428c045dd1ae0cfb5117316cd697983874 100644 (file)
@@ -297,7 +297,9 @@ export function createCompiledMatcher<
     getRecord,
     getRecords,
   }
-} /**
+}
+
+/**
  * Performs a binary search to find the correct insertion index for a new matcher.
  *
  * Matchers are primarily sorted by their score. If scores are tied then we also consider parent/child relationships,
@@ -355,11 +357,12 @@ export function getInsertionAncestor<T extends NEW_MatcherDynamicRecord>(
   }
 
   return
-} /**
+}
+
+/**
  * Checks if a record or any of its parent is an alias
  * @param record
  */
-
 export function isAliasRecord<T extends NEW_MatcherDynamicRecord>(
   record: T | undefined
 ): boolean {
index 9b2c5d78fb0159c24555310ea77c55581f38565f..2a7c7606e24bd8ea61dbc6d0eed582b8f1af520c 100644 (file)
@@ -84,7 +84,6 @@ import {
   EXPERIMENTAL_ResolverRecord_Matchable,
   EXPERIMENTAL_ResolverStatic,
 } from './route-resolver/resolver-static'
-import { ResolverLocationResolved } from './route-resolver/resolver-abstract'
 
 /**
  * resolve, reject arguments of Promise constructor