From 7c0733968d64c7d7aebc1ae54ca90aadcb2bffc3 Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Sat, 4 Mar 2023 02:30:19 -0800 Subject: [PATCH] Fix brand --- deno/lib/types.ts | 6 +----- src/types.ts | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/deno/lib/types.ts b/deno/lib/types.ts index 53d408108..6f5ac4ee0 100644 --- a/deno/lib/types.ts +++ b/deno/lib/types.ts @@ -4639,11 +4639,7 @@ export type BRAND = { export class ZodBranded< T extends ZodTypeAny, B extends string | number | symbol -> extends ZodType< - T["_output"] & BRAND, - ZodBrandedDef, - T["_input"] & BRAND -> { +> extends ZodType, ZodBrandedDef, T["_input"]> { _parse(input: ParseInput): ParseReturnType { const { ctx } = this._processInputParams(input); const data = ctx.data; diff --git a/src/types.ts b/src/types.ts index f3aae4a05..514a1586c 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4639,11 +4639,7 @@ export type BRAND = { export class ZodBranded< T extends ZodTypeAny, B extends string | number | symbol -> extends ZodType< - T["_output"] & BRAND, - ZodBrandedDef, - T["_input"] & BRAND -> { +> extends ZodType, ZodBrandedDef, T["_input"]> { _parse(input: ParseInput): ParseReturnType { const { ctx } = this._processInputParams(input); const data = ctx.data;