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

x/valibot/mod.ts>DefaultValues

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

Default values inference 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>