Skip to main content

Class: TsRestInterceptor

@ts-rest/nest.TsRestInterceptor

Implements

  • NestInterceptor

Constructors

constructor

new TsRestInterceptor(reflector)

Parameters

NameType
reflectorReflector

Defined in

libs/ts-rest/nest/src/lib/ts-rest.interceptor.ts:23

Properties

reflector

Private reflector: Reflector

Defined in

libs/ts-rest/nest/src/lib/ts-rest.interceptor.ts:23

Methods

intercept

intercept(context, next): Observable<any>

Parameters

NameType
contextExecutionContext
nextCallHandler<any>

Returns

Observable<any>

Implementation of

NestInterceptor.intercept

Defined in

libs/ts-rest/nest/src/lib/ts-rest.interceptor.ts:25