Type alias Middleware

Middleware: ((options?) => ConfiguredMiddleware)

Type declaration

    • (options?): 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