Type alias UseFunction

UseFunction: ((req, res, next) => unknown | Promise<unknown>)

Type declaration

    • (req, res, next): unknown | Promise<unknown>
    • Use function for a context Use functions are called when the context is executed. They can be used to add middleware to the context.

      Parameters

      • req: Request

        The request to execute the use function for

      • res: Response

        The response to execute the use function for

      • next: NextFunction

        The next function to call (if not called, this will be the final context to be executed)

      Returns unknown | Promise<unknown>

Generated using TypeDoc