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

x/valibot/src/index.ts>getFallbackAsync

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

Returns the fallback value of the schema.

Parameters

schema: TSchema

The schema to get the fallback value from.

optional
info: FallbackInfo

The fallback info.

Returns

The fallback value.