Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/mod.ts>BaseSchema

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

Base schema type.

Type Parameters

optional
TInput = any
optional
TOutput = TInput

Properties

type: string

The schema type.

expects: string

The expected property.

async: false

Whether it's async.

optional
_types: { input: TInput; output: TOutput; }

Input and output type.

Methods

_parse(input: unknown, config?: SchemaConfig): SchemaResult<TOutput>

Parses unknown input based on its schema.