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

x/valibot/src/methods/getDefault/index.ts>SchemaWithMaybeDefault

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

Schema with maybe default type.

Type Parameters

optional
TSchema extends BaseSchema = BaseSchema
definition: TSchema & { default?: Output<TSchema> | (() => Output<TSchema> | undefined); }