Skip to main content
Module

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

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

Parameters

def: util.noUndefined<Input>

Parameters

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