Module

x/fluentci/deps.ts>z.ZodSchema#refine

This is the command line interface for FluentCI.
Go to Latest
method z.ZodSchema.prototype.refine
import { z } from "https://dotland.deno.dev/x/fluentci@v0.13.0/deps.ts";
const { ZodSchema } = 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>