x/zod/mod.ts

TypeScript-first schema validation with static type inference
Very 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.17.3/mod.ts?s=ZodNullable";

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) => ZodNullable<T>[src]