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

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

[Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [composeInterceptors](./context.composeinterceptors.md)

## composeInterceptors() function

Compose a list of interceptors as a single interceptor

<b>Signature:</b>

```typescript
export declare function composeInterceptors<C extends Context = Context>(...interceptors: GenericInterceptorOrKey<C>[]): GenericInterceptor<C>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  interceptors | [GenericInterceptorOrKey](./context.genericinterceptororkey.md)<!-- -->&lt;C&gt;\[\] | A list of interceptor functions or binding keys |

<b>Returns:</b>

[GenericInterceptor](./context.genericinterceptor.md)<!-- -->&lt;C&gt;


