Skip to content

Commit

Permalink
fix: allow arbitrary strings in RouteLocationRaw
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jun 12, 2024
1 parent 27e2970 commit a7a8452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/router/src/typed-routes/route-location.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,10 @@ export type RouteLocationAsPath<Name extends keyof RouteMap = keyof RouteMap> =
export type RouteLocationRaw<Name extends keyof RouteMap = keyof RouteMap> =
RouteMapGeneric extends RouteMap
?
| RouteLocationAsStringTyped
| RouteLocationAsString
| RouteLocationAsRelativeGeneric
| RouteLocationAsPathGeneric
:
| RouteLocationAsStringTyped<RouteMap>
| _LiteralUnion<RouteLocationAsStringTypedList<RouteMap>[Name], string>
| RouteLocationAsRelativeTypedList<RouteMap>[Name]
| RouteLocationAsPathTypedList<RouteMap>[Name]

0 comments on commit a7a8452

Please sign in to comment.