Module

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

This is the command line interface for FluentCI.
Go to Latest
method z.ZodSchema.prototype.refinement
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
refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)

Parameters

check: (arg: Output) => boolean
refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)

Returns

ZodEffects<this, Output, Input>