Type alias Transform<Route, I, O, II, OO>

Transform<Route, I, O, II, OO>: ((chain) => Chain<RouterContext, Response, II, OO>)

Transform to apply to a route input and output before passing them to the handler

Type Parameters

  • Route extends string

    String literal type representing the route

  • I extends RouterContext

    Route input

  • O

    Route output

  • II

    Transformed route input passed to the handler

  • OO

    Transformed route output returned by the handler

Type declaration

Generated using TypeDoc