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

x/valibot/src/methods/fallback/index.ts>SchemaWithFallbackAsync

The modular and type safe schema library for validating structural data 🤖
Go to Latest
type alias SchemaWithFallbackAsync
import { type SchemaWithFallbackAsync } from "https://deno.land/x/valibot@v0.41.0/src/methods/fallback/index.ts";

Schema with fallback async type.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>
TFallback extends FallbackAsync<TSchema>
definition: Omit<TSchema, "async" | "_run"> & { readonly fallback: TFallback; readonly async: true; readonly _run: (dataset: Dataset<unknown, never>, config: Config<InferIssue<TSchema>>) => Promise<Dataset<InferOutput<TSchema>, InferIssue<TSchema>>>; }