Documentation
    Preparing search index...
    MiddlewareHandlerInfo:
        | { type: "closure"; name: string }
        | {
            type: "named";
            name: string;
            args: any | undefined;
            method: string;
            moduleNameOrPath: string;
        }
        | {
            type: "global";
            name?: string;
            method: string;
            moduleNameOrPath: string;
        }

    Information node describing different types of middleware handlers and their metadata

    Type Declaration

    • { type: "closure"; name: string }
      • type: "closure"

        Type identifier for closure middleware

      • name: string

        Name of the closure middleware

    • {
          type: "named";
          name: string;
          args: any | undefined;
          method: string;
          moduleNameOrPath: string;
      }
      • type: "named"

        Type identifier for named middleware

      • name: string

        Name of the named middleware

      • args: any | undefined

        Arguments to pass to the middleware

      • method: string

        Method name on the middleware class

      • moduleNameOrPath: string

        Module name or file path for the middleware

    • { type: "global"; name?: string; method: string; moduleNameOrPath: string }
      • type: "global"

        Type identifier for global middleware

      • Optionalname?: string

        Optional name for the global middleware

      • method: string

        Method name on the middleware class

      • moduleNameOrPath: string

        Module name or file path for the middleware