Replies: 1 comment
-
A broad question like this is really hard to answer. If you are able to ask a more specific question or say what part you are wanting to improve, then it's much easier for someone else to answer. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I want to convert an existing schema (
ZodObject
) to use different schemas for the keys to realize using the same base schema for the config and the implementation (resolve some kind of references), here is an example:I tried to implement a convert function because I will have a lot of those and I want to avoid doing it manually, here is the function I came up with but I am losing the types:
Any Ideas how I could improve this?
Beta Was this translation helpful? Give feedback.
All reactions