<Link>
uses widened from
type for relative to
, unlike linkOptions
#3031
Labels
types
Changes to the typescript types
Which project does this relate to?
Router
Describe the bug
The behavior of
<Link>
types differ fromlinkOptions
when a string union type is used infrom
.Your Example Website or App
https://stackblitz.com/edit/github-txkpx7fm?file=src%2Froutes%2Findex.tsx
Steps to Reproduce the Bug or Issue
linkOptions()
catches issues without requiringas const
👍<Link>
incorrectly flags a valid path as invalid whenas const
is not used 👎<Link>
needsas const
to have types behave correctly 👎Expected behavior
Type safety parity between
linkOptions
and<Link>
.Screenshots or Videos
No response
Platform
Additional context
Possibly related to #2623 and #3029
The text was updated successfully, but these errors were encountered: