Skip to main content
Module

x/valibot/mod.ts>BaseSchemaAsync

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

Base schema async type.

Type Parameters

optional
TInput = any
optional
TOutput = TInput

Properties

type: string

The schema type.

expects: string

The expected property.

async: true

Whether it's async.

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

Input and output type.

Methods

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

Parses unknown input based on its schema.