Module

x/zod/mod.ts>Schema#isOptional

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

Returns

boolean