Interface: FieldError<E>
Defined in: validation/types.ts:104
Represents a validation error for a specific field.
Used when validating objects to track which field(s) failed validation.
Example
const fieldError: FieldError<string> = {
field: 'email',
errors: ['Invalid email format', 'Email already exists']
}
Type Parameters
E
E
The type of individual error messages
Properties
errors
readonlyerrors: readonlyE[]
Defined in: validation/types.ts:106
field
readonlyfield:string
Defined in: validation/types.ts:105