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

x/valibot/mod.ts>SchemaWithFallbackAsync

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
type alias SchemaWithFallbackAsync
import { type SchemaWithFallbackAsync } from "https://deno.land/x/valibot@v0.28.1/mod.ts";

Schema with fallback async type.

Type Parameters

optional
TSchema extends BaseSchemaAsync = BaseSchemaAsync
optional
TFallback extends Output<TSchema> | ((info?: FallbackInfo) => Output<TSchema> | Promise<Output<TSchema>>) = Output<TSchema>
definition: TSchema & { fallback: TFallback; }