Skip to main content
Module

x/valibot/mod.ts>getDefault

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

Returns the default value of the schema.

Type Parameters

TSchema extends SchemaWithMaybeDefault

Parameters

schema: TSchema

The schema to get the default value from.

Returns

DefaultValue<TSchema>

The default value.