@@ -379,14 +379,11 @@ export interface ɵFormControlCtor {
379
379
/**
380
380
* Creates a new `FormControl` instance.
381
381
*
382
- * @param formState Initializes the control with an initial value,
382
+ * @param value Initializes the control with an initial value,
383
383
* or an object that defines the initial value and disabled state.
384
384
*
385
- * @param validatorOrOpts A synchronous validator function, or an array of
386
- * such functions, or a `FormControlOptions` object that contains validation functions
387
- * and a validation trigger.
388
- *
389
- * @param asyncValidator A single async validator or array of async validator functions
385
+ * @param opts A `FormControlOptions` object that contains validation functions and a
386
+ * validation trigger. `nonNullable` have to be `true`
390
387
*/
391
388
new < T = any > (
392
389
value : FormControlState < T > | T ,
@@ -412,6 +409,18 @@ export interface ɵFormControlCtor {
412
409
asyncValidator : AsyncValidatorFn | AsyncValidatorFn [ ] ,
413
410
) : FormControl < T | null > ;
414
411
412
+ /**
413
+ * Creates a new `FormControl` instance.
414
+ *
415
+ * @param value Initializes the control with an initial value,
416
+ * or an object that defines the initial value and disabled state.
417
+ *
418
+ * @param validatorOrOpts A synchronous validator function, or an array of
419
+ * such functions, or a `FormControlOptions` object that contains validation functions
420
+ * and a validation trigger.
421
+ *
422
+ * @param asyncValidator A single async validator or array of async validator functions
423
+ */
415
424
new < T = any > (
416
425
value : FormControlState < T > | T ,
417
426
validatorOrOpts ?: ValidatorFn | ValidatorFn [ ] | FormControlOptions | null ,
0 commit comments