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

x/valibot/src/schemas/nonNullish/nonNullish.ts>NonNullishSchema

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

Non nullish schema type.

Type Parameters

TWrapped extends BaseSchema
optional
TOutput = NonNullish<Output<TWrapped>>
definition: BaseSchema<NonNullish<Input<TWrapped>>, TOutput> & { type: "non_nullish"; wrapped: TWrapped; message: ErrorMessage; }