UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

65 lines (34 loc) 1.28 kB
--- 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 **Signature:** ```typescript export declare function composeInterceptors<C extends Context = Context>(...interceptors: GenericInterceptorOrKey<C>[]): GenericInterceptor<C>; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> interceptors </td><td markdown="1"> [GenericInterceptorOrKey](./context.genericinterceptororkey.md)<!-- -->&lt;C&gt;\[\] </td><td markdown="1"> A list of interceptor functions or binding keys </td></tr> </tbody></table> **Returns:** [GenericInterceptor](./context.genericinterceptor.md)<!-- -->&lt;C&gt;