Skip to content

Commit 0027186

Browse files
committed
chore: comment style
1 parent 606c919 commit 0027186

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

packages/router/src/experimental/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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'

packages/router/src/experimental/route-resolver/matchers/matcher-pattern.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,14 @@ export interface MatcherPatternQuery<
273273
*/
274274
export 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
*/
282286
export type EmptyParams = Record<PropertyKey, never>

packages/router/src/experimental/route-resolver/resolver-dynamic.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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-
363366
export function isAliasRecord<T extends NEW_MatcherDynamicRecord>(
364367
record: T | undefined
365368
): boolean {

packages/router/src/experimental/router.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)