@@ -58,14 +58,14 @@ export interface RouteQueryAndHash {
58
58
/**
59
59
* @internal
60
60
*/
61
- export interface LocationAsPath < P extends string = string > {
61
+ export interface MatcherLocationAsPath < P extends string = string > {
62
62
path : P
63
63
}
64
64
65
65
/**
66
66
* @internal
67
67
*/
68
- export interface LocationAsName {
68
+ export interface MatcherLocationAsName {
69
69
name : RouteRecordName
70
70
params ?: RouteParams
71
71
}
@@ -86,7 +86,7 @@ export interface LocationAsRelativeRaw<
86
86
/**
87
87
* @internal
88
88
*/
89
- export interface LocationAsRelative <
89
+ export interface MatcherLocationAsRelative <
90
90
Info extends RouteNamedInfo = RouteNamedInfo
91
91
> {
92
92
params ?: Info extends RouteNamedInfo < any , infer Params , any >
@@ -167,11 +167,11 @@ export type RouteLocationNamedRaw<
167
167
export type RouteLocationPathRaw <
168
168
RouteMap extends RouteStaticPathMapGeneric = RouteStaticPathMapGeneric
169
169
> = RouteStaticPathMapGeneric extends RouteMap
170
- ? // allows assigning a RouteLocationRaw to RouteLocationPat
171
- RouteQueryAndHash & LocationAsPath & RouteLocationOptions
170
+ ? // allows assigning a RouteLocationRaw to RouteLocationPath
171
+ RouteQueryAndHash & MatcherLocationAsPath & RouteLocationOptions
172
172
: RouteQueryAndHash &
173
173
RouteLocationOptions &
174
- LocationAsPath <
174
+ MatcherLocationAsPath <
175
175
LiteralUnion <
176
176
{ [ K in keyof RouteMap ] : RouteMap [ K ] } [ keyof RouteMap ] ,
177
177
string
@@ -467,11 +467,17 @@ export const START_LOCATION_NORMALIZED: RouteLocationNormalizedLoaded = {
467
467
468
468
// Matcher types
469
469
// the matcher doesn't care about query and hash
470
+ /**
471
+ * Route ___location that can be passed to the matcher.
472
+ */
470
473
export type MatcherLocationRaw =
471
- | LocationAsPath
472
- | LocationAsName
473
- | LocationAsRelative
474
+ | MatcherLocationAsPath
475
+ | MatcherLocationAsName
476
+ | MatcherLocationAsRelative
474
477
478
+ /**
479
+ * Normalized/resolved Route ___location that returned by the matcher.
480
+ */
475
481
export interface MatcherLocation {
476
482
/**
477
483
* Name of the matched record
0 commit comments