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

x/valibot/src/methods/getDefault/getDefault.ts>getDefault

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

Returns the default value of the schema.

Parameters

schema: TSchema

The schema to get the default value from.

Returns

The default value.