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

x/valibot/src/methods/index.ts>getFallback

The modular and type safe schema library for validating structural data 🤖
Go to Latest
function getFallback
Re-export
import { getFallback } from "https://deno.land/x/valibot@v0.24.0/src/methods/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.