-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typings for the route config based hooks no longer working since 4.16.0 #4705
Comments
Thanks for reporting! |
Can you please include a script that compiles in v4.15.0 and it does not in v4.16.0. That would help in bisecting the problem. |
Do you need something more than the attached code snippet? That shows the problem between the 2 versions |
It's definitely due to #4655 If I take the |
Anything that I can quickly run in a bash shell that returns 1 if it fails. Opening an editor and trying to autocomplete is not great for git bisecting. |
closed by #4708 |
Prerequisites
Fastify version
4.16.0
Plugin version
No response
Node.js version
18.x
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
12.3
Description
The hooks specified in the options of a route no longer have the correct typings applied/resolved. They come back as
any
. The following code snippet works in4.15.0
, but breaks in4.16.0
Steps to Reproduce
The same appears to be true for all the other hooks specified in this manner as well.
Interestingly, hooks added with
addHook
appear to have the correct typings resolvedExpected Behavior
No response
The text was updated successfully, but these errors were encountered: