---
lang: en
title: 'API docs: express.createmiddlewareinterceptorbinding'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/express
permalink: /doc/en/lb4/apidocs.express.createmiddlewareinterceptorbinding.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/express](./express.md) &gt; [createMiddlewareInterceptorBinding](./express.createmiddlewareinterceptorbinding.md)

## createMiddlewareInterceptorBinding() function

Create a binding for the middleware based interceptor

<b>Signature:</b>

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

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  middlewareProviderClass | [Constructor](./context.constructor.md)<!-- -->&lt;[Provider](./context.provider.md)<!-- -->&lt;[Interceptor](./context.interceptor.md)<!-- -->&gt;&gt; | Middleware provider class |
|  options | [MiddlewareInterceptorBindingOptions](./express.middlewareinterceptorbindingoptions.md) | Options to create middlewareFactory interceptor binding |

<b>Returns:</b>

[Binding](./context.binding.md)<!-- -->&lt;[Interceptor](./context.interceptor.md)<!-- -->&gt;


