mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(forms): add jsdoc for ReadonlyFieldState
(cherry picked from commit d93e922517)
This commit is contained in:
committed by
leonsenft
parent
2aa8e68685
commit
ad3693f44f
@@ -589,7 +589,6 @@ export interface ReadonlyFieldState<TValue, TKey extends string | number = strin
|
||||
readonly disabled: Signal<boolean>;
|
||||
// (undocumented)
|
||||
readonly disabledReasons: Signal<readonly DisabledReason[]>;
|
||||
// (undocumented)
|
||||
readonly errors: Signal<ValidationError.WithFieldTree[]>;
|
||||
readonly errorSummary: Signal<ValidationError.WithFieldTree[]>;
|
||||
readonly fieldTree: ReadonlyFieldTree<unknown, TKey>;
|
||||
|
||||
@@ -430,6 +430,10 @@ export interface ReadonlyFieldState<TValue, TKey extends string | number = strin
|
||||
*/
|
||||
readonly hidden: Signal<boolean>;
|
||||
readonly disabledReasons: Signal<readonly DisabledReason[]>;
|
||||
|
||||
/**
|
||||
* A signal containing the {@link errors} of the field itself, excluding its descendants.
|
||||
*/
|
||||
readonly errors: Signal<ValidationError.WithFieldTree[]>;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user