Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What are the types for Request, Response and Next in the middleware #90

Open
muneeebsheikh opened this issue Mar 24, 2023 · 0 comments
Open

Comments

@muneeebsheikh
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant