---
lang: en
title: 'API docs: express.middlewareorkey'
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.middlewareorkey.html
---

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

[Home](./index.md) &gt; [@loopback/express](./express.md) &gt; [MiddlewareOrKey](./express.middlewareorkey.md)

## MiddlewareOrKey type

A middleware function or binding key

<b>Signature:</b>

```typescript
export declare type MiddlewareOrKey = GenericInterceptorOrKey<MiddlewareContext>;
```
<b>References:</b> [GenericInterceptorOrKey](./context.genericinterceptororkey.md)<!-- -->, [MiddlewareContext](./express.middlewarecontext.md)


