Module

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

This is the command line interface for FluentCI.
Go to Latest
method z.ZodType.prototype.refine
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
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>