x/zod/types.ts

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

Type Parameters

optional
T extends ZodTypeAny = ZodTypeAny
[src]

Properties

innerType: T[src]
typeName: ZodFirstPartyTypeKind.ZodOptional[src]