Module

x/zod/mod.ts>z.ZodError.assert

TypeScript-first schema validation with static type inference
Extremely Popular
Latest
method z.ZodError.assert
import { z } from "https://dotland.deno.dev/x/zod@v3.23.8/mod.ts";
const { ZodError } = z;

Parameters

value: unknown

Returns

asserts value is ZodError