Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 186b524

Browse files
JeanMecheAndrewKushnir
authored andcommitted
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
1 parent 656b5d3 commit 186b524

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎packages/forms/src/model/abstract_model.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ export type FormControlStatus = 'VALID' | 'INVALID' | 'PENDING' | 'DISABLED';
9292
export abstract class ControlEvent<T = any> {
9393
/**
9494
* Form control from which this event is originated.
95+
*
96+
* Note: the type of the control can't be infered from T as the event can be emitted by any of child controls
9597
*/
9698
public abstract readonly source: AbstractControl<unknown>;
9799
}

0 commit comments

Comments
 (0)