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

x/valibot/src/schemas/nullish/index.ts>NullishSchemaAsync

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

Nullish schema async type.

Type Parameters

TWrapped extends BaseSchema | BaseSchemaAsync
optional
TDefault extends Input<TWrapped> | undefined | Promise<Input<TWrapped> | undefined> = undefined
optional
TOutput = Awaited<TDefault> extends undefined ? Output<TWrapped> | null | undefined : Output<TWrapped>
definition: BaseSchemaAsync<Input<TWrapped> | null | undefined, TOutput> & { schema: "nullish"; wrapped: TWrapped; get default(): TDefault; }