Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/zod/index.ts>z.ZodSchema#default

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

Parameters

def: util.noUndefined<Input>

Parameters

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