Generic type function converting property with a default value to optional
I have written a helper function that allows me to validate FormData objects using Zod. Since this can be used for various schemas, I have used a generic type.
I have written a helper function that allows me to validate FormData objects using Zod. Since this can be used for various schemas, I have used a generic type.