Revert "feat(forms): formControlName also accepts a number (#30606)" (#32088)

This reverts commit a647298412.

PR Close #32088
This commit is contained in:
Kara Erickson
2019-08-09 17:20:14 -07:00
parent 3df54be9e4
commit 9a37e827e2
4 changed files with 7 additions and 13 deletions

View File

@ -255,7 +255,7 @@ export declare class FormControlName extends NgControl implements OnChanges, OnD
readonly formDirective: any;
isDisabled: boolean;
/** @deprecated */ model: any;
name: string | number | null;
name: string;
readonly path: string[];
/** @deprecated */ update: EventEmitter<any>;
readonly validator: ValidatorFn | null;
@ -353,7 +353,7 @@ export declare const NG_VALUE_ACCESSOR: InjectionToken<ControlValueAccessor>;
export declare abstract class NgControl extends AbstractControlDirective {
readonly asyncValidator: AsyncValidatorFn | null;
name: string | number | null;
name: string | null;
readonly validator: ValidatorFn | null;
valueAccessor: ControlValueAccessor | null;
abstract viewToModelUpdate(newValue: any): void;