Allows middleware to inspect and transform results from downstream handlers.
The generic type TResult represents the result type that flows through the chain.
Type Parameters
TResult = unknown
The type of result returned by the handler and middleware chain
Middleware function with result passing
Allows middleware to inspect and transform results from downstream handlers. The generic type
TResultrepresents the result type that flows through the chain.