]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
refactor(types): unused generic
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 16 Aug 2022 14:05:20 +0000 (16:05 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 16 Aug 2022 14:05:20 +0000 (16:05 +0200)
packages/router/src/types/index.ts

index ef5b7f1d60ec944e2cd3a16e2867d8f38a5398f8..9860e67108985002a25a7bcccf5aaa95ce0a8764 100644 (file)
@@ -49,8 +49,8 @@ export interface RouteQueryAndHash {
 /**
  * @internal
  */
-export interface MatcherLocationAsPath<P extends string = string> {
-  path: P
+export interface MatcherLocationAsPath {
+  path: string
 }
 
 /**
@@ -64,16 +64,16 @@ export interface MatcherLocationAsName {
 /**
  * @internal
  */
-export interface LocationAsRelativeRaw {
-  name?: RouteRecordName
-  params?: RouteParamsRaw
+export interface MatcherLocationAsRelative {
+  params?: RouteParams
 }
 
 /**
  * @internal
  */
-export interface MatcherLocationAsRelative {
-  params?: RouteParams
+export interface LocationAsRelativeRaw {
+  name?: RouteRecordName
+  params?: RouteParamsRaw
 }
 
 /**