Documentation
    Preparing search index...

    Function MiddlewareFactory

    • A factory function for adjoining absolute middleware options to the absolute middleware function with sensible defaults

      Type Parameters

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

      Parameters

      • fn: MiddlewareFunction<I, O, C>

        A function to make into a middleware.

      • options: MiddlewareOptions = {}

        Additional options that determine the sorting of the middleware on the stack.

        • The name of the middleware must be unique to the stack.
        • Tags will group your middleware and should be used in plugins so that by removing middleware by tag will remove the whole plugin.

      Returns Middleware<I, O, C>

      A middleware function.