Skip to main content
Module

x/zod/index.ts>Schema#default

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

Parameters

def: util.noUndefined<Input>

Returns

ZodDefault<this>

Parameters

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

Returns

ZodDefault<this>