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<C>[] An array of interceptor functions or binding keys