Skip to main content
Module

x/leaves/mod.ts>validator.ValidationArguments

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

Arguments being sent to message builders - user can create message either by simply returning a string, either by returning a function that accepts MessageArguments and returns a message string built based on these arguments.

Properties

value: any

Validating value.

constraints: any[]

Constraints set by this validation type.

targetName: string

Name of the target that is being validated.

object: Object

Object that is being validated.

property: string

Name of the object's property being validated.