Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/zod/index.ts>z.ZodSchema#_refinement

TypeScript-first schema validation with static type inference
Extremely Popular
Latest
method z.ZodSchema.prototype._refinement
import { z } from "https://deno.land/x/zod@v3.23.8/index.ts";
const { ZodSchema } = z;

Parameters

refinement: RefinementEffect<Output>["refinement"]

Returns

ZodEffects<this, Output, Input>