Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/cav/test/deps.ts>zod.z.ZodSchema#refine

A server framework for Deno
Go to Latest
method zod.z.ZodSchema.prototype.refine
import { zod } from "https://deno.land/x/cav@0.2.0-alpha.7/test/deps.ts";
const { ZodSchema } = zod.z;

Type Parameters

RefinedOutput extends Output

Parameters

check: (arg: Output) => arg is RefinedOutput
optional
message: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)

Parameters

check: (arg: Output) => unknown | Promise<unknown>
optional
message: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)

Returns

ZodEffects<this, Output, Input>