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

x/valibot/src/schemas/nullable/nullableAsync.ts>NullableSchemaAsync

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

Nullable schema async type.

Type Parameters

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