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

x/valibot/mod.ts>getDefaultAsync

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

Returns the default value of the schema.

Parameters

schema: TSchema

The schema to get the default value from.

Returns

The default value.