Ziggy version
2.4.2
Laravel version
none
Description
As the title says, when a route contains required parameters, intellisense is lost.
This is easily reproduceable within tests/js/route.test-d.ts, so there is no relevant information to put in the other fields of this issue.
Steps to reproduce
-
Open tests/js/route.test-d.ts
-
On line 25, remove the comment parameter and hit Ctrl/Cmd + Space to view suggested intellisense and assert it shows generic stuff instead of actual parameters.
-
On the posts.comments.show route declaration (line 11), make the post parameter optional by changing required to false .
-
Again on line 25, hit Ctrl/Cmd + Space again and assert it suggests the "correct" information about the route parameters.
