Skip to content

Commit

Permalink
Deprecate deepPartial
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhacks committed Feb 28, 2023
1 parent 867a921 commit edc3a67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deno/lib/types.ts
Expand Up @@ -2545,6 +2545,9 @@ export class ZodObject<
}) as any;
}

/**
* @deprecated
*/
deepPartial(): partialUtil.DeepPartial<this> {
return deepPartialify(this) as any;
}
Expand Down
3 changes: 3 additions & 0 deletions src/types.ts
Expand Up @@ -2545,6 +2545,9 @@ export class ZodObject<
}) as any;
}

/**
* @deprecated
*/
deepPartial(): partialUtil.DeepPartial<this> {
return deepPartialify(this) as any;
}
Expand Down

2 comments on commit edc3a67

@PetukhovArt
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hello, what we can use now instead of it ?

@JoshStrobl
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also maybe worth updating the docs so this isn't listed as a supported function, otherwise it will give the wrong impression unless you use an editor that supports those tags.

What are the alternatives, as asked by @PetukhovArt

@colinhacks

Thanks!

Please sign in to comment.