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

x/valibot/src/index.ts>DefaultValue

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

Default value inference type.

definition: TSchema["default"] extends Input<TSchema> | undefined ? TSchema["default"] : TSchema["default"] extends () => Input<TSchema> | undefined ? ReturnType<TSchema["default"]> : TSchema["default"] extends () => Promise<Input<TSchema> | undefined> ? Awaited<ReturnType<TSchema["default"]>> : undefined