Module

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

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

Parameters

def: util.noUndefined<Input>

Parameters

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