Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/entropy/src/validator/interfaces/validator_rule.interface.ts>ValidatorRule

The core module of Entropy framework for Deno.
Latest
interface ValidatorRule
import { type ValidatorRule } from "https://deno.land/x/entropy@1.0.0-beta.17/src/validator/interfaces/validator_rule.interface.ts";

Properties

name: string
errorMessage: string
validate: (input: [string | null, ...unknown[]], fieldName: string) => FalsyValue | TruthyValue | Promise<FalsyValue | TruthyValue>