Skip to main content
Module

x/zod/types.ts>ZodOptionalDef

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
interface ZodOptionalDef
implements ZodTypeDef
import { type ZodOptionalDef } from "https://deno.land/x/zod@v3.20.4/types.ts";

Type Parameters

optional
T extends ZodTypeAny = ZodTypeAny

Properties

innerType: T
typeName: ZodFirstPartyTypeKind.ZodOptional