Skip to main content
Module

x/valibot/mod.ts>NullishSchemaAsync

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
interface NullishSchemaAsync
implements BaseSchemaAsync<Input<TWrapped> | null | undefined, TOutput>
Re-export
import { type NullishSchemaAsync } from "https://deno.land/x/valibot@v0.30.0/mod.ts";

Nullish schema async type.

Type Parameters

TWrapped extends BaseSchema | BaseSchemaAsync
optional
TDefault extends DefaultAsync<TWrapped> = undefined
optional
TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped>>) ? Output<TWrapped> : Output<TWrapped> | null | undefined

Properties

type: "nullish"

The schema type.

wrapped: TWrapped

The wrapped schema.

default: TDefault

Retutns the default value.