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:
Matthieu Riegler
2024-10-05 17:21:07 +02:00
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>;
}