• 개요
@angular/forms/signals

Validator

타입 별칭
안정화v22.0부터

A function that takes the FieldContext for the field being validated and returns a ValidationResult indicating errors for the field and its sub-fields. In a Validator all errors must explicitly define their target field.

API

    
      type Validator<TValue, TPathKind extends PathKind = PathKind.Root> = LogicFn<  TValue,  ValidationResult,  TPathKind>
    
    
상세 내용으로 이동