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

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

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

Fallback value inference 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