Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ZodBranded

import { ZodBranded } from "https://esm.sh/zod@3.25.76/index.d.cts";
class ZodBranded<T extends ZodTypeAny, B extends string | number | symbol> extends ZodType<T["_output"] & BRAND<B>, ZodBrandedDef<T>, T["_input"]> {
_parse(input: ParseInput): ParseReturnType<any>;
unwrap(): T;
}

§Type Parameters

§
B extends string | number | symbol
[src]

§Extends

§
ZodType<T["_output"] & BRAND<B>, ZodBrandedDef<T>, T["_input"]>
[src]

§Methods

§
_parse(input: ParseInput): ParseReturnType<any>
[src]
§
unwrap(): T
[src]