Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/zod/index.ts>ZodSchema#default

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
method ZodSchema.prototype.default
import { ZodSchema } from "https://deno.land/x/zod@v3.22.2/index.ts";

Parameters

def: util.noUndefined<Input>

Returns

ZodDefault<this>

Parameters

def: () => util.noUndefined<Input>

Returns

ZodDefault<this>