Skip to content

Commit 6a39e4a

Browse files
authored
Merge pull request #150 from ntziolis/master
fix(typings): added typings for getRawValue (TypedFormGroup, TypedFormArray)
2 parents 3e5aae9 + f36bde7 commit 6a39e4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

projects/ngx-sub-form/src/lib/ngx-sub-form-utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export interface TypedFormGroup<TValue> extends FormGroup {
5050
controls: ControlsType<TValue>;
5151
setValue(value: TValue, options?: Parameters<FormGroup['setValue']>[1]): void;
5252
patchValue(value: Partial<TValue>, options?: Parameters<FormGroup['patchValue']>[1]): void;
53+
getRawValue(): TValue;
5354
}
5455

5556
export interface TypedFormArray<TValue extends any[]> extends FormArray {
@@ -58,6 +59,7 @@ export interface TypedFormArray<TValue extends any[]> extends FormArray {
5859
controls: TypedAbstractControl<TValue>[];
5960
setValue(value: TValue, options?: Parameters<FormArray['setValue']>[1]): void;
6061
patchValue(value: TValue, options?: Parameters<FormArray['patchValue']>[1]): void;
62+
getRawValue(): TValue;
6163
}
6264

6365
export interface TypedFormControl<TValue> extends FormGroup {

0 commit comments

Comments
 (0)