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<C>[]

A list of interceptor functions or binding keys

Returns:

GenericInterceptor<C>