* Will validate that none of the controls has a key with a dot * Throws other wise
(controls: {
[K in keyof TControl]: AbstractControl<any, any>;
})
| 676 | * Throws other wise |
| 677 | */ |
| 678 | function validateFormGroupControls<TControl>(controls: { |
| 679 | [K in keyof TControl]: AbstractControl<any, any>; |
| 680 | }) { |
| 681 | const invalidKeys = Object.keys(controls).filter((key) => key.includes('.')); |
| 682 | if (invalidKeys.length > 0) { |
| 683 | // TODO: make this an error once there are no more uses in G3 |
| 684 | console.warn( |
| 685 | `FormGroup keys cannot include \`.\`, please replace the keys for: ${invalidKeys.join(',')}.`, |
| 686 | ); |
| 687 | } |
| 688 | } |
| 689 | |
| 690 | interface UntypedFormGroupCtor { |
| 691 | new ( |
no test coverage detected
searching dependent graphs…