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

7 lines (6 loc) 312 B
import { BadRequestException } from '@nestjs/common'; import { ValueErrorIterator } from '@sinclair/typebox/errors'; import type { ValidatorType } from './types.js'; export declare class TypeboxValidationException extends BadRequestException { constructor(type: ValidatorType, errors: ValueErrorIterator); }