Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno_class_validator/src/index.ts>ValidateIf

Decorator-based property validation for classes.
Latest
function ValidateIf
import { ValidateIf } from "https://deno.land/x/deno_class_validator@v1.0.0/src/index.ts";

Ignores the other validators on a property when the provided condition function returns false.

Parameters

condition: (object: any, value: any) => boolean
optional
validationOptions: ValidationOptions

Returns

PropertyDecorator