Skip to main content
Module

x/leaves/mod.ts>validator.ValidationDecoratorOptions

A Web framework For Deno with Decorator and middleware
Latest
interface validator.ValidationDecoratorOptions
import { type validator } from "https://deno.land/x/leaves@v0.1.5/mod.ts";
const { ValidationDecoratorOptions } = validator;

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.