Type alias Middleware

Middleware: ((options?: {
    [key: string]: any;
}) => ConfiguredMiddleware)

Type declaration

    • (options?: {
          [key: string]: any;
      }): ConfiguredMiddleware
    • Shape of a typical middleware. Expects options and returns a ConfiguredMiddleware that can then be registered using the .middlewares function.

      Parameters

      • Optional options: {
            [key: string]: any;
        }
        • [key: string]: any

      Returns ConfiguredMiddleware

Generated using TypeDoc