Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/zod/index.ts>z.ZodOptional#_parse

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
method z.ZodOptional.prototype._parse
import { z } from "https://deno.land/x/zod@v3.9.8/index.ts";
const { ZodOptional } = z;

Parameters

data: any
parsedType: ZodParsedType

Returns

ParseReturnType<T["_output"] | undefined>