mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: add info on AbstractControl.source type. (#58094)
The source can be of any type and can't be inferred from `T` fixes #58076 PR Close #58094
This commit is contained in:
committed by
Andrew Kushnir
parent
656b5d3e78
commit
186b52449a
@@ -92,6 +92,8 @@ export type FormControlStatus = 'VALID' | 'INVALID' | 'PENDING' | 'DISABLED';
|
||||
export abstract class ControlEvent<T = any> {
|
||||
/**
|
||||
* Form control from which this event is originated.
|
||||
*
|
||||
* Note: the type of the control can't be infered from T as the event can be emitted by any of child controls
|
||||
*/
|
||||
public abstract readonly source: AbstractControl<unknown>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user