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) • 467 B
TypeScript
export declare const emailFormat: (value: string) => boolean;
export declare const uuidFormat: (value: string) => boolean;
export declare const urlFormat: (value: string) => boolean;
export declare const dateFormat: (value: string) => boolean;
export declare const timeFormat: (value: string, strictTimeZone?: boolean) => boolean;
export declare const dateTimeFormat: (value: string, strictTimeZone?: boolean) => boolean;
export declare const setFormats: () => void;