• A factory function for adjoining absolute middleware options to the absolute middleware function

    Type Parameters

    • I extends object
    • O extends object
    • C extends object = object

    Parameters

    • fn: MiddlewareFunction<I, O, C>

      A function to make into an absolute middleware.

    • options: AbsoluteMiddlewareOptions = {}

      Additional properties used to determine the position of the middleware in the stack. The step determines what lifecycle the middleware will run in while the priority determines the order of the middleware within the step. A high priority will run after a low priority middleware.

    Returns AbsoluteMiddleware<I, O, C>

    An absolute middleware function.