Skip to main content
Module

x/valibot/mod.ts>NullishSchema

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

Nullish schema type.

Type Parameters

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