Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class z.ZodDefault
extends ZodType<util.noUndefined<T["_output"]>, ZodDefaultDef<T>, T["_input"] | undefined>
import { z } from "https://deno.land/x/netzo@0.3.66/deps/zod/mod.ts";
const { ZodDefault } = z;

Type Parameters

T extends ZodTypeAny

Methods

_parse(input: ParseInput): ParseReturnType<this["_output"]>

Static Properties

create: <T extends ZodTypeAny>(type: T, params: RawCreateParams & { default: T["_input"] | (() => util.noUndefined<T["_input"]>); }) => ZodDefault<T>