Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

A command line tool which dumps events stored in Nostr relays
Go to Latest
method z.ZodType.prototype.refine
Re-export
import { z } from "https://deno.land/x/nosdump@0.4.4/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>