deepPartial is deprecated. What to use instead? #2527
Replies: 3 comments 2 replies
-
|
Any news about this? |
Beta Was this translation helpful? Give feedback.
-
|
There's an open issue #2854 with potential solutions/alternatives |
Beta Was this translation helpful? Give feedback.
-
|
🚀 Solution Available: I've put together a solution to address the current issue: a fully type-safe utility that deeply makes any Zod schema ✅ Features
Get it on npm: https://www.npmjs.com/package/zod-deep-partial Source Code: https://github.com/amirfarzamnia/zod-deep-partial Documentation: https://amirfarzamnia.github.io/zod-deep-partial/ It's simple to use: just import the function and apply it to your Zod schema. Contributions and feedback are welcome! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
According to VS Code, we should no longer use deepPartial because it has been deprecated.
https://www.codepilot.com/dropshare/Screen-Shot-2023-06-22-13-45-37.61.png
So if I need to partially validate a schema with a nested object, what should I use instead?
Beta Was this translation helpful? Give feedback.
All reactions