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
I have searched existing issues to ensure the bug has not already been reported
Fastify version
5.0.0
Plugin version
5.0.0
Node.js version
22.10.0
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
CachyOS 2024.10.03
Description
When using RouteShorthandOptions to declare the variable for the options of a route handler, it breaks its type safety, this doesn't happen if the variables isn't explicit typed.
Prerequisites
Fastify version
5.0.0
Plugin version
5.0.0
Node.js version
22.10.0
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
CachyOS 2024.10.03
Description
When using
RouteShorthandOptions
to declare the variable for the options of a route handler, it breaks its type safety, this doesn't happen if the variables isn't explicit typed.Link to code that reproduces the bug
No response
Expected Behavior
I hope to get the same type safety as omitting the explicit type declaration
The text was updated successfully, but these errors were encountered: