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

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

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