Page Contents

Home > @loopback/express > MiddlewareCreationOptions

MiddlewareCreationOptions interface

Options for defining a middleware

Signature:

export interface MiddlewareCreationOptions 

Properties

Property Type Description
injectConfiguration boolean | ‘watch’ A flag to control if configuration for the middleware can be injected lazily.- true (default): creates a provider class with @config - false: No configuration injection is supported - ‘watch’: creates a provider class with @config.view
providerClassName string Class name for the created provider class. It’s only used if injectConfiguration is not set to false.