Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.22.0/src/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