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

x/valibot/src/types/schema.ts>BaseSchemaAsync

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
interface BaseSchemaAsync
import { type BaseSchemaAsync } from "https://deno.land/x/valibot@v0.30.0/src/types/schema.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.