@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
77 lines (39 loc) • 1.4 kB
Markdown
---
lang: en
title: 'API docs: context.genericinterceptorchain._constructor_'
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.genericinterceptorchain._constructor_.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/context](./context.md) > [GenericInterceptorChain](./context.genericinterceptorchain.md) > [(constructor)](./context.genericinterceptorchain._constructor_.md)
## GenericInterceptorChain.(constructor)
Create an invocation chain with a list of interceptor functions or binding keys
**Signature:**
```typescript
constructor(context: C, interceptors: GenericInterceptorOrKey<C>[]);
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
context
</td><td markdown="1">
C
</td><td markdown="1">
Context object
</td></tr>
<tr><td markdown="1">
interceptors
</td><td markdown="1">
[GenericInterceptorOrKey](./context.genericinterceptororkey.md)<!-- --><C>\[\]
</td><td markdown="1">
An array of interceptor functions or binding keys
</td></tr>
</tbody></table>