Skip to content

Type Alias: FinalHandler()

ts
type FinalHandler = () => Promise<any>;

Final handler called when the entire middleware chain completes successfully.

The final handler is executed after all middleware have called next and the pipeline reaches its end. It provides a way to execute custom logic outside the middleware chain when the chain completes.

Returns

Promise<any>