Skip to main content

Class: TsRestInterceptor

@ts-rest/nest.TsRestInterceptor

Implements

  • NestInterceptor

Constructors

constructor

new TsRestInterceptor(reflector, globalOptions)

Parameters

NameType
reflectorReflector
globalOptionsMaybeTsRestOptions

Defined in

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

Properties

globalOptions

Private globalOptions: MaybeTsRestOptions

Defined in

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


reflector

Private reflector: Reflector

Defined in

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

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:33