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

x/valibot/mod.ts>NonOptionalSchema

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

Non optional schema type.

Type Parameters

TWrapped extends BaseSchema
optional
TOutput = NonOptionalOutput<TWrapped>
definition: BaseSchema<NonOptionalInput<TWrapped>, TOutput> & { type: "non_optional"; wrapped: TWrapped; message: ErrorMessage | undefined; }