Page Contents

Home > @loopback/express > MiddlewareCreationOptions

MiddlewareCreationOptions interface

Options for defining a middleware


export interface MiddlewareCreationOptions 


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