x/zod/types.ts

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

Type Parameters

T extends ZodTypeAny[src]

Methods

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

Static Properties

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