Skip to content

API reference > @kontsedal/olas-core > FieldArrayItemErrors

FieldArrayItemErrors type ​

The errors of one field-array item: string[] for a field, FormErrors<S> for a form.

Signature:

typescript
type FieldArrayItemErrors<I> = I extends Field<any> ? string[] : I extends Form<infer S> ? FormErrors<S> : never;

References: Field, Form, FormErrors

Released under the MIT License.