Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 367 Bytes

File metadata and controls

21 lines (13 loc) · 367 Bytes

Nestjs class validators

A set of class validators based on the class-validator package (https://www.npmjs.com/package/@nestjs/class-validator/v/0.13.1).

Installation

npm install --save @algoan/nestjs-class-validators

IsEnum

A class validator that validates the enum type.

Usage

 @IsEnum(UserType)
 public userType: UserType;