[TypeScript] Passing field.state.meta.errors to child component
Trying to figure out what the type is for field.state.meta.errors to properly type a child component. It appears to be
StandardSchemaV1Issue[]
when you inspect the individual objects but when passing it to the child, I get a TypeScript error like this:
2 Replies
sensitive-blueOP•6mo ago
Thank you. That "works" but there's no type information. I feel like I should be able to pass a type as an argument to FieldMeta.
Or I guess the real issue is that when you do that, I try to access an element of the errors array and they're typed as
any
. Shouldn't it be a StandardSchemaV1Issue?