kogosoftwarellc / open-api

A Monorepo of various packages to power OpenAPI in node
MIT License
892 stars 235 forks source link

openapi-types incompatible with TypeScript 4.8 #829

Closed kibertoad closed 2 years ago

kibertoad commented 2 years ago

Error:

node_modules/@fastify/swagger/node_modules/openapi-types/dist/index.d.ts:16:28 - error TS2344: Type 'T' does not satisfy the constraint '{}'.

16         paths: PathsObject<T>;
                              ~

  node_modules/@fastify/swagger/node_modules/openapi-types/dist/index.d.ts:15:34
    15     type PathsWebhooksComponents<T> = {
                                        ~
    This type parameter might need an `extends {}` constraint.
mcollina commented 2 years ago

I think we are in a bit of a hurry to fix this. Maybe we should consider forking the original package or vendor the openapi types?