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

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

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

Default values type.

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