File tree Expand file tree Collapse file tree 4 files changed +14
-6
lines changed
packages/router/src/experimental Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -28,4 +28,6 @@ export type {
2828 MatcherPatternHash ,
2929 MatcherPatternPath ,
3030 MatcherPatternQuery ,
31+ MatcherParamsFormatted ,
32+ EmptyParams ,
3133} from './route-resolver/matchers/matcher-pattern'
Original file line number Diff line number Diff line change @@ -273,10 +273,14 @@ export interface MatcherPatternQuery<
273273 */
274274export interface MatcherPatternHash <
275275 TParams extends MatcherParamsFormatted = MatcherParamsFormatted ,
276- > extends MatcherPattern < string , TParams > { } /**
276+ > extends MatcherPattern < string , TParams > { }
277+
278+ /**
277279 * Generic object of params that can be passed to a matcher.
278280 */
279- export type MatcherParamsFormatted = Record < string , unknown > /**
281+ export type MatcherParamsFormatted = Record < string , unknown >
282+
283+ /**
280284 * Empty object in TS.
281285 */
282286export type EmptyParams = Record < PropertyKey , never >
Original file line number Diff line number Diff line change @@ -297,7 +297,9 @@ export function createCompiledMatcher<
297297 getRecord,
298298 getRecords,
299299 }
300- } /**
300+ }
301+
302+ /**
301303 * Performs a binary search to find the correct insertion index for a new matcher.
302304 *
303305 * 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>(
355357 }
356358
357359 return
358- } /**
360+ }
361+
362+ /**
359363 * Checks if a record or any of its parent is an alias
360364 * @param record
361365 */
362-
363366export function isAliasRecord < T extends NEW_MatcherDynamicRecord > (
364367 record : T | undefined
365368) : boolean {
Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ import {
8484 EXPERIMENTAL_ResolverRecord_Matchable ,
8585 EXPERIMENTAL_ResolverStatic ,
8686} from './route-resolver/resolver-static'
87- import { ResolverLocationResolved } from './route-resolver/resolver-abstract'
8887
8988/**
9089 * resolve, reject arguments of Promise constructor
You can’t perform that action at this time.
0 commit comments