Understanding Transforms in Zod: Converting from Schema A to Schema B
Coming from using zod, I'm not sure if I'm understanding how to do to transforms properly. If I have 2 schemas like
how do I create a transform to go from A to B? I've read about
how do I create a transform to go from A to B? I've read about
.transform but not sure how to encode it back for this. If I'm never going to encode can I just do something like 