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

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

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

Fallback value type.

definition: TSchema["fallback"] extends Output<TSchema> ? TSchema["fallback"] : TSchema["fallback"] extends () => Output<TSchema> ? ReturnType<TSchema["fallback"]> : TSchema["fallback"] extends () => Promise<Output<TSchema>> ? Awaited<ReturnType<TSchema["fallback"]>> : undefined