fix(forms): getRawValue returns any instead of Object (#12599)
This commit is contained in:
parent
778e6ad3b4
commit
09092ac3c2
|
@ -1016,7 +1016,7 @@ export class FormGroup extends AbstractControl {
|
||||||
* If you'd like to include all values regardless of disabled status, use this method.
|
* If you'd like to include all values regardless of disabled status, use this method.
|
||||||
* Otherwise, the `value` property is the best way to get the value of the group.
|
* Otherwise, the `value` property is the best way to get the value of the group.
|
||||||
*/
|
*/
|
||||||
getRawValue(): Object {
|
getRawValue(): any {
|
||||||
return this._reduceChildren(
|
return this._reduceChildren(
|
||||||
{}, (acc: {[k: string]: AbstractControl}, control: AbstractControl, name: string) => {
|
{}, (acc: {[k: string]: AbstractControl}, control: AbstractControl, name: string) => {
|
||||||
acc[name] = control.value;
|
acc[name] = control.value;
|
||||||
|
|
|
@ -269,7 +269,7 @@ export declare class FormGroup extends AbstractControl {
|
||||||
}, validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn);
|
}, validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn);
|
||||||
addControl(name: string, control: AbstractControl): void;
|
addControl(name: string, control: AbstractControl): void;
|
||||||
contains(controlName: string): boolean;
|
contains(controlName: string): boolean;
|
||||||
getRawValue(): Object;
|
getRawValue(): any;
|
||||||
patchValue(value: {
|
patchValue(value: {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}, {onlySelf, emitEvent}?: {
|
}, {onlySelf, emitEvent}?: {
|
||||||
|
|
Loading…
Reference in New Issue