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

x/valibot/mod.ts>NullishSchema

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

Nullish schema type.

Type Parameters

TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TDefault extends Default<TWrapped, null | undefined>

Properties

readonly
type: "nullish"

The schema type.

readonly
reference: nullish

The schema reference.

readonly
expects: `${TWrapped["expects"]} | null | undefined`

The expected property.

readonly
wrapped: TWrapped

The wrapped schema.

readonly
default: TDefault

The default value.