Visitar URL original
Validator • Angular
The Wayback Machine - https://web.archive.org/web/20260422170220/https://angular.dev/api/forms/signals/Validator
    • Overview
@angular/forms/signals

Validator

Type Alias

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>
    
    
Jump to details