Skip to main content
Module

x/zod/external.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.22.4/external.ts";

Type Parameters

optional
T extends ZodTypeAny = ZodTypeAny

Properties

innerType: T
typeName: ZodFirstPartyTypeKind.ZodOptional