• Overview
@angular/forms/signals

ValidationErrorWithOptionalField

interface

Validation error with optional field.

API

    
      interface ValidationErrorWithOptionalField extends ValidationError {}
    
    

field

(() => FieldState<unknown, string | number>) | undefined

The field associated with this error.

kind

string

Identifies the kind of error.

message

string | undefined

Human readable error message.

Description

Validation error with optional field.

This is generally used in places where the result might have a field. e.g., as a result of a validateTree, or when handling form submission.

Jump to details