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

x/deno_class_validator/src/metadata/ConstraintMetadata.ts>ConstraintMetadata

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

This metadata interface contains information for custom validators.

Constructors

new
ConstraintMetadata(
target: Function,
name?: string,
async?: boolean,
)

Properties

async: boolean

Indicates if this validation is asynchronous or not.

Instance of the target custom validation class which performs validation.

optional
name: string

Custom validation's name, that will be used as validation error type.

target: Function

Target class which performs validation.