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

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

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

Default value type.

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