Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/valibot/src/index.ts>NullishSchemaAsync

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

Nullish 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 = Awaited<TDefault> extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | null | undefined
definition: BaseSchemaAsync<Input<TWrapped> | null | undefined, TOutput> & { type: "nullish"; wrapped: TWrapped; default: TDefault; }