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

x/zod/index.ts>ZodNullable

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
class ZodNullable
extends ZodType<T["_output"] | null, ZodNullableDef<T>, T["_input"] | null>
import { ZodNullable } from "https://deno.land/x/zod@v3.9.8/index.ts";

Type Parameters

T extends ZodTypeAny

Methods

_parse(
ctx: ParseContext,
data: any,
parsedType: ZodParsedType,
): ParseReturnType<T["_output"] | null>

Static Properties

create: <T extends ZodTypeAny>(type: T, params?: RawCreateParams) => ZodNullable<T>