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

8 lines (7 loc) 249 B
import type { TSchema } from '@sinclair/typebox'; export interface SchemaAnalysis { hasTransform: boolean; hasDefault: boolean; references: Map<string, TSchema>; } export declare const analyzeSchema: (schema: TSchema) => SchemaAnalysis;