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 generated TS file marks all params as optional, where really only routes containing ? should be marked as optional in the generated types.
Suggestion
Line 68 of index.d.ts marks every param as optional. It looks like it should be possible to know whether a route contains a question mark during the generating process.
Alternatives
I tried some complicated extraction technique combining the generated TS file and the generated ziggy file, however that depends on the generated ziggy file being a ts file also, with the object set to as const.
The text was updated successfully, but these errors were encountered:
Description
The generated TS file marks all params as optional, where really only routes containing
?
should be marked as optional in the generated types.Suggestion
Line 68 of index.d.ts marks every param as optional. It looks like it should be possible to know whether a route contains a question mark during the generating process.
Alternatives
I tried some complicated extraction technique combining the generated TS file and the generated ziggy file, however that depends on the generated ziggy file being a ts file also, with the object set to
as const
.The text was updated successfully, but these errors were encountered: