#Validation error type safety when using form composition
5 messages · Page 1 of 1 (latest)
when using field context, the error can actually be anything.
If you want to pass it in a type safe way, pass it as prop from the field callback from <form.AppField>
I get what you're saying; I'll be sacrificing type safety instead, because I don't want to pass it in for every field
I'm just going to use as in my custom components, I just thought maybe one of the generics was it and I just didn't know how to pass it in ha
unless you need zod-specific properties, you can narrow it with a small function just fine