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

x/valibot/src/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.22.0/src/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