* Gets the first validation error of the given kind on this field. * * This method is reactive and will re-evaluate when the field's errors change if called * within a reactive context (e.g. `computed` or `effect`). * * @param kind The kind of error (e.g. 'required', 'min'). * @ret
(
kind: K,
)
| 546 | * @returns The first matching error, or `undefined` if none. |
| 547 | */ |
| 548 | getError<K extends NgValidationError['kind']>( |
| 549 | kind: K, |
| 550 | ): (Extract<NgValidationError, {kind: K}> & ValidationError.WithFieldTree) | undefined; |
| 551 | getError(kind: string): ValidationError.WithFieldTree | undefined; |
no outgoing calls
no test coverage detected