UNPKG

nestjs-custom-class-validators

Version:

This package contains a few custom validator I have found to be repetitive, So I made templates that handles both class-validator checks and Swagger configuration

3 lines (2 loc) 200 B
import { ICustomEnumValidatorOptions } from "../dto/customValidatorOptions.dto"; export declare function CustomEnumValidator(details: ICustomEnumValidatorOptions): (target: any, key: string) => void;