type ContactMethodForm = {
email: string;
phone: string;
};
type PersonForm = {
name: string;
age: number;
contactMethods: ContactMethodForm[];
};
const errs: FormSubmissionErrors<PersonForm> = {
_: [""],
name: {
_: [""],
},
age: {
_: [""],
},
contactMethods: {
_: [""],
subErrors: [
{
_: [""],
email: {
_: [""],
},
phone: {
_: [""],
},
},
],
},
};
Errors received from a submission attempt.