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

x/deno_class_validator/src/register-decorator.ts>ValidationDecoratorOptions

Decorator-based property validation for classes.
Latest
interface ValidationDecoratorOptions
import { type ValidationDecoratorOptions } from "https://deno.land/x/deno_class_validator@v1.0.0/src/register-decorator.ts";

Properties

target: Function

Target object to be validated.

propertyName: string

Target object's property name to be validated.

optional
name: string

Name of the validation that is being registered.

optional
async: boolean

Indicates if this decorator will perform async validation.

optional
options: ValidationOptions

Validator options.

optional
constraints: any[]

Array of validation constraints.

validator: ValidatorConstraintInterface | Function

Validator that performs validation.