Skip to content

Function: UseInterceptors()

ts
function UseInterceptors(...interceptors): MethodDecorator & ClassDecorator;

Defined in: packages/core/src/interceptors/use-interceptors.decorator.ts:12

Decorator that binds interceptors to the scope of the controller or method, depending on its context.

Parameters

ParameterTypeDescription
...interceptors(object | ((...args) => any))[]A single interceptor instance or class, or an array of interceptor instances or classes.

Returns

MethodDecorator & ClassDecorator

Released under the MIT License.