-
-
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
FastifyRegister type does not propagate type provider generic to plugin type #4032
Comments
@stefee the repository seems private, can you move it to the public so I can see the reproduction? |
@RafaelGSS Fixed! |
|
Sorry, I didn't just see that PR, so I just need to wait for the RELEASE, right? |
Issue isn’t fixed yet - the broken link in the description is. Fix incoming. |
@keysking The fix should come in the next release. |
Prerequisites
Fastify version
4.x.x
Plugin version
No response
Node.js version
16.x
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
11.6
Description
The
FastifyRegister
type (offastify.register
function) has this interface:This passes through the
Options
to theplugin
but not the other arguments (Server
andTypeProvider
) which results in an error like this:Steps to Reproduce
See https://github.com/stefee/fastify-issue-repro-4032/blob/main/index.ts
Expected Behavior
No type error.
The text was updated successfully, but these errors were encountered: