A from
union should result in a intersection of relative to
paths
#3011
Labels
types
Changes to the typescript types
Which project does this relate to?
Router
Describe the bug
When
from
is a union of different paths,to
allows a union of relative paths forfrom
instead of an intersection, resulting in invalid links.Your Example Website or App
https://stackblitz.com/edit/github-dj5qylfv?file=src%2FPage.tsx,src%2Froutes%2F__root.tsx,src%2Froutes%2Fposts%2Fpost%2F%24postId.tsx,src%2Froutes%2Fusers%2Fuser%2F%24userId.tsx
Steps to Reproduce the Bug or Issue
from
that is an union of different valid pathsto
Expected behavior
to
should only allow relative paths that are valid for allfrom
paths.Screenshots or Videos
No response
Platform
Additional context
I wonder if this can be done in TS 🤔
The text was updated successfully, but these errors were encountered: