]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: undefined path
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 5 Jul 2023 13:30:05 +0000 (15:30 +0200)
committerEduardo San Martin Morote <posva@users.noreply.github.com>
Fri, 15 Dec 2023 14:31:15 +0000 (15:31 +0100)
packages/router/src/types/index.ts

index b7e88db138acc4d82a95750f4b723e1abfaaf6da..9c2396b21ce92b92f35f9b8f16098aab3766370d 100644 (file)
@@ -59,6 +59,9 @@ export interface MatcherLocationAsPath {
 export interface MatcherLocationAsName {
   name: RouteRecordName
   // to allow checking location.path == null
+  /**
+   * Ignored path property since we are dealing with a relative location. Only `undefined` is allowed.
+   */
   path?: undefined
   params?: RouteParams
 }
@@ -68,6 +71,9 @@ export interface MatcherLocationAsName {
  */
 export interface MatcherLocationAsRelative {
   // to allow checking location.path == null
+  /**
+   * Ignored path property since we are dealing with a relative location. Only `undefined` is allowed.
+   */
   path?: undefined
   params?: RouteParams
 }
@@ -78,6 +84,9 @@ export interface MatcherLocationAsRelative {
 export interface LocationAsRelativeRaw {
   name?: RouteRecordName
   // to allow checking location.path == null
+  /**
+   * Ignored path property since we are dealing with a relative location. Only `undefined` is allowed.
+   */
   path?: undefined
   params?: RouteParamsRaw
 }