Skip to main content
Module

x/valibot/mod.ts>BaseValidation

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
interface BaseValidation
Re-export
import { type BaseValidation } from "https://deno.land/x/valibot@v0.30.0/mod.ts";

Base validation type.

Type Parameters

optional
TInput = any

Properties

type: string

The validation type.

expects: string | null

The expected property.

message: ErrorMessage | undefined

The error message.

async: false

Whether it's async.

requirement: unknown

The validation requirement.

Methods

_parse(input: TInput): PipeActionResult<TInput>

Parses unknown input based on its requirement.