fast-gateway
fast-gateway copied to clipboard
What are the types for Request, Response and Next in the middleware
trafficstars
I'm using typescript as per project requirements and using fastify gateway for researching as a possible alternate for a commercial gateway. While writing middleware, the request, response and next need to have types and yet I could not find them as they are not required in JS and in TS i've specified them as unknown.
Since it is based on fastify, I assume that they use FastifyRequest, FastifyReply interfaces as mentioned here https://stackoverflow.com/a/63822691
Can you please guide me what are the types because adding these types require me to install fastify also