Appearance
type NextFn = () => Promise<any> | any;
The next function used to advance the middleware pipeline.
When called, it triggers the execution of the next middleware in the chain. If not called, the middleware chain stops at the current handler.
Promise<any> | any
Promise
any