Class: TsRestHandlerInterceptor
@ts-rest/nest.TsRestHandlerInterceptor
Implements
NestInterceptor
Constructors
constructor
• new TsRestHandlerInterceptor(reflector, globalOptions)
Parameters
| Name | Type |
|---|---|
reflector | Reflector |
globalOptions | MaybeTsRestOptions |
Defined in
libs/ts-rest/nest/src/lib/ts-rest-nest-handler.ts:210
Properties
globalOptions
• Private globalOptions: MaybeTsRestOptions
Defined in
libs/ts-rest/nest/src/lib/ts-rest-nest-handler.ts:214
reflector
• Private reflector: Reflector
Defined in
libs/ts-rest/nest/src/lib/ts-rest-nest-handler.ts:211
Methods
getAppRouteFromContext
▸ Private getAppRouteFromContext(ctx): { appRoute: AppRoute ; routeAlias: undefined = undefined; routeKey?: undefined } | { appRoute: AppRoute ; routeAlias?: undefined = undefined; routeKey: string }
Parameters
| Name | Type |
|---|---|
ctx | ExecutionContext |
Returns
{ appRoute: AppRoute ; routeAlias: undefined = undefined; routeKey?: undefined } | { appRoute: AppRoute ; routeAlias?: undefined = undefined; routeKey: string }
Defined in
libs/ts-rest/nest/src/lib/ts-rest-nest-handler.ts:217
intercept
▸ intercept(ctx, next): Observable<any>
Parameters
| Name | Type |
|---|---|
ctx | ExecutionContext |
next | CallHandler<any> |
Returns
Observable<any>
Implementation of
NestInterceptor.intercept
Defined in
libs/ts-rest/nest/src/lib/ts-rest-nest-handler.ts:263