Skip to content

Commit 2607045

Browse files
committed
docs: undefined path
1 parent bf48bce commit 2607045

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/router/src/types/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ export interface MatcherLocationAsPath {
5959
export interface MatcherLocationAsName {
6060
name: RouteRecordName
6161
// to allow checking location.path == null
62+
/**
63+
* Ignored path property since we are dealing with a relative location. Only `undefined` is allowed.
64+
*/
6265
path?: undefined
6366
params?: RouteParams
6467
}
@@ -68,6 +71,9 @@ export interface MatcherLocationAsName {
6871
*/
6972
export interface MatcherLocationAsRelative {
7073
// to allow checking location.path == null
74+
/**
75+
* Ignored path property since we are dealing with a relative location. Only `undefined` is allowed.
76+
*/
7177
path?: undefined
7278
params?: RouteParams
7379
}
@@ -78,6 +84,9 @@ export interface MatcherLocationAsRelative {
7884
export interface LocationAsRelativeRaw {
7985
name?: RouteRecordName
8086
// to allow checking location.path == null
87+
/**
88+
* Ignored path property since we are dealing with a relative location. Only `undefined` is allowed.
89+
*/
8190
path?: undefined
8291
params?: RouteParamsRaw
8392
}

0 commit comments

Comments
 (0)