import { type FallbackValues } from "https://deno.land/x/valibot@v0.24.0/src/methods/index.ts";
Fallback values type.
Type Parameters
TSchema extends SchemaWithMaybeFallback<BaseSchema | ObjectSchema<ObjectEntries, any> | TupleSchema<TupleItems, any>> | SchemaWithMaybeFallbackAsync<BaseSchemaAsync | ObjectSchemaAsync<ObjectEntriesAsync, any> | TupleSchemaAsync<TupleItemsAsync, any>>
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>