Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method z.ZodSchema.prototype.superRefine
import { z } from "https://deno.land/x/frugal@0.9.6/dep/zod.ts";
const { ZodSchema } = z;

Type Parameters

RefinedOutput extends Output

Parameters

refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput

Parameters

refinement: (arg: Output, ctx: RefinementCtx) => void

Returns

ZodEffects<this, Output, Input>