Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno_books/deps.ts>z.ZodSchema#superRefine

Access OpenLibrary's API with Deno.
Go to Latest
method z.ZodSchema.prototype.superRefine
import { z } from "https://deno.land/x/deno_books@v1.1.0/deps.ts";
const { ZodSchema } = z;

Type Parameters

RefinedOutput extends Output

Parameters

refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput

Parameters

refinement: (arg: Output, ctx: RefinementCtx) => void

Returns

ZodEffects<this, Output, Input>

Parameters

refinement: (arg: Output, ctx: RefinementCtx) => Promise<void>

Returns

ZodEffects<this, Output, Input>