Page Contents
Home > @loopback/context > composeInterceptors
composeInterceptors() function
Compose a list of interceptors as a single interceptor
Signature:
export declare function composeInterceptors<C extends Context = Context>(...interceptors: GenericInterceptorOrKey<C>[]): GenericInterceptor<C>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| interceptors | [GenericInterceptorOrKey](/doc/en/lb4/apidocs.context.genericinterceptororkey.html)<C>\[\] | A list of interceptor functions or binding keys |
Returns: