Interface NextFunction

The NextFunction type is a callback function that is used to pass control to the next middleware. It is generally bound by the router to the next handler in the stack, or the default handler if no other handlers are available.

  • Parameters

    • Optionalerr: Error

      An optional error object that can be passed to the next middleware.

    Returns void