Page Contents

Home > @loopback/express > createMiddlewareInterceptorBinding

createMiddlewareInterceptorBinding() function

Create a binding for the middleware based interceptor

Signature:

export declare function createMiddlewareInterceptorBinding<CFG>(middlewareProviderClass: Constructor<Provider<Interceptor>>, options?: MiddlewareInterceptorBindingOptions): Binding<Interceptor>;

Parameters

Parameter Type Description
middlewareProviderClass Constructor<Provider<Interceptor>> Middleware provider class
options MiddlewareInterceptorBindingOptions Options to create middlewareFactory interceptor binding

Returns:

Binding<Interceptor>