Type Alias Middleware

Middleware: ((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.