Optional union value?
Hey guys, if I have an object with a key that can either be a number or a string or can be missing. How can I validate it? Thank you
3 Replies
Did you see these docs?
https://arktype.io/docs/objects#properties-optional
I am not sure how I didn't see that. Thank you - that's what I needed
Glad that was helpful! Good luck 😊