UNPKG

nestjs-typebox

Version:

This library provides helper utilities for writing and validating NestJS APIs using [TypeBox](https://github.com/sinclairzx81/typebox) as an alternative to class-validator/class-transformer. Can be configured to patch @nestjs/swagger allowing OpenAPI gene

9 lines (8 loc) 382 B
import { CallHandler, ExecutionContext, NestInterceptor } from '@nestjs/common'; import { Reflector } from '@nestjs/core'; import { Observable } from 'rxjs'; export declare class TypeboxTransformInterceptor implements NestInterceptor { private reflector; constructor(reflector: Reflector); intercept(context: ExecutionContext, next: CallHandler): Observable<unknown>; }