Type alias ErrorHandler<I, O>

ErrorHandler<I, O>: ((error, input) => Awaitable<O>)

Middleware error handler

Type Parameters

  • I

    Input type of the error handler

  • O

    Output type of the error handler

Type declaration

Remarks

It receives both the error and the input available at the level it was chained.

Generated using TypeDoc