fastify / fastify-swagger

Swagger documentation generator for Fastify
MIT License
915 stars 201 forks source link

Missing exposeHeadRoutes property into the type definition of SwaggerOptions #811

Open giulio-coa opened 1 month ago

giulio-coa commented 1 month ago

Prerequisites

Fastify version

^4.26.1

Plugin version

^8.15.0

Node.js version

18

Operating system

Linux

Operating system version (i.e. 20.04, 11.3, 10)

Alpine

Description

Missing exposeHeadRoutes property into the type definition of SwaggerOptions.

Link to code that reproduces the bug

No response

Expected Behavior

The TypeScript compiler should not detect the following error:

Object literal may only specify known properties, and 'exposeHeadRoutes' does not exist in type 'FastifyRegisterOptions<SwaggerOptions>'. ts(2769)
mcollina commented 1 month ago

Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests (we use tsd for ts)