Skip to content

Commit

Permalink
Fix brand
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhacks committed Mar 4, 2023
1 parent 6a0545a commit 7c07339
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions deno/lib/types.ts
Expand Up @@ -4639,11 +4639,7 @@ export type BRAND<T extends string | number | symbol> = {
export class ZodBranded<
T extends ZodTypeAny,
B extends string | number | symbol
> extends ZodType<
T["_output"] & BRAND<B>,
ZodBrandedDef<T>,
T["_input"] & BRAND<B>
> {
> extends ZodType<T["_output"] & BRAND<B>, ZodBrandedDef<T>, T["_input"]> {
_parse(input: ParseInput): ParseReturnType<any> {
const { ctx } = this._processInputParams(input);
const data = ctx.data;
Expand Down
6 changes: 1 addition & 5 deletions src/types.ts
Expand Up @@ -4639,11 +4639,7 @@ export type BRAND<T extends string | number | symbol> = {
export class ZodBranded<
T extends ZodTypeAny,
B extends string | number | symbol
> extends ZodType<
T["_output"] & BRAND<B>,
ZodBrandedDef<T>,
T["_input"] & BRAND<B>
> {
> extends ZodType<T["_output"] & BRAND<B>, ZodBrandedDef<T>, T["_input"]> {
_parse(input: ParseInput): ParseReturnType<any> {
const { ctx } = this._processInputParams(input);
const data = ctx.data;
Expand Down

0 comments on commit 7c07339

Please sign in to comment.