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

x/valibot/mod.ts>BaseSchema

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

Base schema type.

Type Parameters

TInput
TOutput
TIssue extends BaseIssue<unknown>

Properties

readonly
kind: "schema"

The object kind.

readonly
type: string

The schema type.

readonly
reference: FunctionReference<any[], BaseSchema<unknown, unknown, BaseIssue<unknown>>>

The schema reference.

readonly
expects: string

The expected property.

readonly
async: false

Whether it's async.

readonly
optional
_types: { readonly input: TInput; readonly output: TOutput; readonly issue: TIssue; }

Input, output and issue type.

Methods

_run(dataset: Dataset<unknown, never>, config: Config<TIssue>): Dataset<TOutput, TIssue>

Parses unknown input.