Represents the next middleware function in the chain.
When invoked, continues execution to the next middleware or the final function.
Allows middleware to decide whether to proceed with execution and with what arguments.
Type Parameters
TParameters extends unknown[] = unknown[]
Type of arguments passed through the middleware chain
TReturn = unknown
Type of value returned from the function
Example
// In middleware next() // Continue with original args next([newArg1, newArg2]) // Continue with modified args
Represents the next middleware function in the chain.
When invoked, continues execution to the next middleware or the final function. Allows middleware to decide whether to proceed with execution and with what arguments.