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

Properties

globalOptions

Private globalOptions: MaybeTsRestOptions

Defined in

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


reflector

Private reflector: Reflector

Defined in

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

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