From 186b52449af703c6bcb756b23932530366febdfd Mon Sep 17 00:00:00 2001 From: Matthieu Riegler Date: Sat, 5 Oct 2024 17:21:07 +0200 Subject: [PATCH] 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 --- packages/forms/src/model/abstract_model.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/forms/src/model/abstract_model.ts b/packages/forms/src/model/abstract_model.ts index 30ef800aa5f..c7d4360c133 100644 --- a/packages/forms/src/model/abstract_model.ts +++ b/packages/forms/src/model/abstract_model.ts @@ -92,6 +92,8 @@ export type FormControlStatus = 'VALID' | 'INVALID' | 'PENDING' | 'DISABLED'; export abstract class ControlEvent { /** * 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; }