Page Contents

Home > @loopback/context > GenericInterceptorChain > (constructor)

GenericInterceptorChain.(constructor)

Create an invocation chain with a list of interceptor functions or binding keys

Signature:

constructor(context: C, interceptors: GenericInterceptorOrKey<C>[]);

Parameters

Parameter Type Description
context C Context object
interceptors [GenericInterceptorOrKey](/doc/en/lb4/apidocs.context.genericinterceptororkey.html)<C>\[\] An array of interceptor functions or binding keys