Skip to content

Commit a7a8452

Browse files
committed
fix: allow arbitrary strings in RouteLocationRaw
1 parent 27e2970 commit a7a8452

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/router/src/typed-routes/route-location.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,10 @@ export type RouteLocationAsPath<Name extends keyof RouteMap = keyof RouteMap> =
310310
export type RouteLocationRaw<Name extends keyof RouteMap = keyof RouteMap> =
311311
RouteMapGeneric extends RouteMap
312312
?
313-
| RouteLocationAsStringTyped
313+
| RouteLocationAsString
314314
| RouteLocationAsRelativeGeneric
315315
| RouteLocationAsPathGeneric
316316
:
317-
| RouteLocationAsStringTyped<RouteMap>
317+
| _LiteralUnion<RouteLocationAsStringTypedList<RouteMap>[Name], string>
318318
| RouteLocationAsRelativeTypedList<RouteMap>[Name]
319319
| RouteLocationAsPathTypedList<RouteMap>[Name]

0 commit comments

Comments
 (0)