fix(forms): allow FormBuilder to create controls with any formState type (#20917)
Align formState type in FormBuilder#control with FormControl#constructor Fixes #20368 PR Close #20917
This commit is contained in:

committed by
Misko Hevery

parent
5713faa667
commit
170885c51b
@ -54,7 +54,7 @@ export class FormBuilder {
|
||||
*
|
||||
*/
|
||||
control(
|
||||
formState: Object, validator?: ValidatorFn|ValidatorFn[]|null,
|
||||
formState: any, validator?: ValidatorFn|ValidatorFn[]|null,
|
||||
asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): FormControl {
|
||||
return new FormControl(formState, validator, asyncValidator);
|
||||
}
|
||||
|
Reference in New Issue
Block a user