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

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

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

Nullable 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
definition: BaseSchema<Input<TWrapped> | null, TOutput> & { type: "nullable"; wrapped: TWrapped; default: TDefault; }