Module

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

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