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

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

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

Returns the default value of the schema.

Parameters

schema: TSchema

The schema to get the default value from.

Returns

The default value.