You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that our type for an array of parameters doesn't specify any of them as optional (except additional unknown params after the ones we're expecting), so e.g. passing an array with less than 2 items will error if the route has 2 parameters, even if some of them are optional.
After #697 I'm hoping this will be possible to fix.
The text was updated successfully, but these errors were encountered:
Given this route:
Which generates these types:
These valid
route()
calls, which should not cause any type errors, do:The issue is that our type for an array of parameters doesn't specify any of them as optional (except additional unknown params after the ones we're expecting), so e.g. passing an array with less than 2 items will error if the route has 2 parameters, even if some of them are optional.
After #697 I'm hoping this will be possible to fix.
The text was updated successfully, but these errors were encountered: