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

x/valibot/mod.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.28.1/mod.ts";

Default value type.

Type Parameters

TSchema extends SchemaWithMaybeDefault | SchemaWithMaybeDefaultAsync
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