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
4.26.x
Plugin version
8.14.x
Node.js version
20.x
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
All
Description
The config object for routes in fastify is typed liberally: it is a union with unknown and you can use it to store arbitrary configuration. However, this module specifies a concrete type for the config option that breaks extensions:
Prerequisites
Fastify version
4.26.x
Plugin version
8.14.x
Node.js version
20.x
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
All
Description
The
config
object for routes in fastify is typed liberally: it is a union withunknown
and you can use it to store arbitrary configuration. However, this module specifies a concrete type for the config option that breaks extensions:fastify-swagger/index.d.ts
Lines 56 to 58 in 352f7d6
Steps to Reproduce
Online repro: https://stackblitz.com/edit/node-59kmye?file=package.json,index.ts
Expected Behavior
It should be possible to use fastify-swagger without overwriting config types.
The text was updated successfully, but these errors were encountered: