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