Module

x/zod/mod.ts>z.ZodType#isOptional

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
method z.ZodType.prototype.isOptional
import { z } from "https://dotland.deno.dev/x/zod@v3.21.4/mod.ts";
const { ZodType } = z;

Returns

boolean