x/zod/index.ts

TypeScript-first schema validation with static type inference
Very Popular
Go to Latest
class ZodDefault
extends ZodType<util.noUndefined<T["_output"]>, ZodDefaultDef<T>, T["_input"] | undefined>
import { ZodDefault } from "https://deno.land/x/zod@v3.17.3/index.ts?s=ZodDefault";

Type Parameters

T extends ZodTypeAny[src]

Methods

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

Static Properties

create: <T extends ZodTypeAny>(type: T, params?: RawCreateParams) => ZodOptional<T>[src]