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

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

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

Fallback values type.

definition: TSchema extends ObjectSchema<infer TEntries extends ObjectEntries> ? [TKey in keyof TEntries]: FallbackValues<TEntries[TKey]> : TSchema extends ObjectSchemaAsync<infer TEntries extends ObjectEntriesAsync> ? [TKey in keyof TEntries]: FallbackValues<TEntries[TKey]> : TSchema extends TupleSchema<infer TItems> ? [TKey in keyof TItems]: FallbackValues<TItems[TKey]> : TSchema extends TupleSchemaAsync<infer TItems> ? [TKey in keyof TItems]: FallbackValues<TItems[TKey]> : FallbackValue<TSchema>