feat(forms): Added emitEvent to AbstractControl methods (#11949)
* feat(forms): Added emitEvent to AbstractControl methods * style(forms): unified named parameter
This commit is contained in:

committed by
Alex Rickabaugh

parent
592f40aa9c
commit
b9fc090143
21
tools/public_api_guard/forms/index.d.ts
vendored
21
tools/public_api_guard/forms/index.d.ts
vendored
@ -161,17 +161,20 @@ export declare class FormArray extends AbstractControl {
|
||||
at(index: number): AbstractControl;
|
||||
getRawValue(): any[];
|
||||
insert(index: number, control: AbstractControl): void;
|
||||
patchValue(value: any[], {onlySelf}?: {
|
||||
patchValue(value: any[], {onlySelf, emitEvent}?: {
|
||||
onlySelf?: boolean;
|
||||
emitEvent?: boolean;
|
||||
}): void;
|
||||
push(control: AbstractControl): void;
|
||||
removeAt(index: number): void;
|
||||
reset(value?: any, {onlySelf}?: {
|
||||
reset(value?: any, {onlySelf, emitEvent}?: {
|
||||
onlySelf?: boolean;
|
||||
emitEvent?: boolean;
|
||||
}): void;
|
||||
setControl(index: number, control: AbstractControl): void;
|
||||
setValue(value: any[], {onlySelf}?: {
|
||||
setValue(value: any[], {onlySelf, emitEvent}?: {
|
||||
onlySelf?: boolean;
|
||||
emitEvent?: boolean;
|
||||
}): void;
|
||||
}
|
||||
|
||||
@ -210,8 +213,9 @@ export declare class FormControl extends AbstractControl {
|
||||
}): void;
|
||||
registerOnChange(fn: Function): void;
|
||||
registerOnDisabledChange(fn: (isDisabled: boolean) => void): void;
|
||||
reset(formState?: any, {onlySelf}?: {
|
||||
reset(formState?: any, {onlySelf, emitEvent}?: {
|
||||
onlySelf?: boolean;
|
||||
emitEvent?: boolean;
|
||||
}): void;
|
||||
setValue(value: any, {onlySelf, emitEvent, emitModelToViewChange, emitViewToModelChange}?: {
|
||||
onlySelf?: boolean;
|
||||
@ -267,19 +271,22 @@ export declare class FormGroup extends AbstractControl {
|
||||
getRawValue(): Object;
|
||||
patchValue(value: {
|
||||
[key: string]: any;
|
||||
}, {onlySelf}?: {
|
||||
}, {onlySelf, emitEvent}?: {
|
||||
onlySelf?: boolean;
|
||||
emitEvent?: boolean;
|
||||
}): void;
|
||||
registerControl(name: string, control: AbstractControl): AbstractControl;
|
||||
removeControl(name: string): void;
|
||||
reset(value?: any, {onlySelf}?: {
|
||||
reset(value?: any, {onlySelf, emitEvent}?: {
|
||||
onlySelf?: boolean;
|
||||
emitEvent?: boolean;
|
||||
}): void;
|
||||
setControl(name: string, control: AbstractControl): void;
|
||||
setValue(value: {
|
||||
[key: string]: any;
|
||||
}, {onlySelf}?: {
|
||||
}, {onlySelf, emitEvent}?: {
|
||||
onlySelf?: boolean;
|
||||
emitEvent?: boolean;
|
||||
}): void;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user