Skip to main content
Module

x/zod/types.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.16.0/types.ts";

Type Parameters

T extends ZodTypeAny

Methods

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

Static Properties

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