Skip to main content
Module

x/valibot/mod.ts>getFallback

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

Returns the fallback value of the schema.

Type Parameters

TSchema extends SchemaWithMaybeFallback

Parameters

schema: TSchema

The schema to get the fallback value from.

optional
info: FallbackInfo

The fallback info.

Returns

FallbackValue<TSchema>

The fallback value.