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

x/valibot/src/schemas/index.ts>NullableSchema

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

Nullable schema type.

Type Parameters

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