Skip to content

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

@muneeebsheikh

Description

@muneeebsheikh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions