Class: TsRestInterceptor
@ts-rest/nest.TsRestInterceptor
Implements
NestInterceptor
Constructors
constructor
• new TsRestInterceptor(reflector, globalOptions)
Parameters
| Name | Type |
|---|---|
reflector | Reflector |
globalOptions | MaybeTsRestOptions |
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
| Name | Type |
|---|---|
context | ExecutionContext |
next | CallHandler<any> |
Returns
Observable<any>
Implementation of
NestInterceptor.intercept
Defined in
libs/ts-rest/nest/src/lib/ts-rest.interceptor.ts:31