Skip to content

Type Alias: NextFn()

ts
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.

Returns

Promise<any> | any