swagger-stats icon indicating copy to clipboard operation
swagger-stats copied to clipboard

Interface 'Chain' incorrectly extends interface 'Promise<Response>'

Open PankajDh opened this issue 5 years ago • 0 comments
trafficstars

swagger-stat uses fastify and fastify uses 'light-my-request'. We are getting the below error

node_modules/light-my-request/index.d.ts(89,13): error TS2430: Interface 'Chain' incorrectly extends interface 'Promise<Response>'. The types of 'get(...)[Symbol.toStringTag]' are incompatible between these types. Type 'string' is not assignable to type '"Object"'.

swagger-stats version :"0.95.17"

the error was not there when we removed swagger-stats from package.json further I forked and when I removed "^" symbol from fastify in the package.json, it worked fine

PankajDh avatar Nov 11 '20 07:11 PankajDh