Skip to content

Commit

Permalink
Merge pull request #150 from ntziolis/master
Browse files Browse the repository at this point in the history
fix(typings): added typings for getRawValue (TypedFormGroup, TypedFormArray)
  • Loading branch information
maxime1992 authored Feb 29, 2020
2 parents 3e5aae9 + f36bde7 commit 6a39e4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions projects/ngx-sub-form/src/lib/ngx-sub-form-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export interface TypedFormGroup<TValue> extends FormGroup {
controls: ControlsType<TValue>;
setValue(value: TValue, options?: Parameters<FormGroup['setValue']>[1]): void;
patchValue(value: Partial<TValue>, options?: Parameters<FormGroup['patchValue']>[1]): void;
getRawValue(): TValue;
}

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

export interface TypedFormControl<TValue> extends FormGroup {
Expand Down

0 comments on commit 6a39e4a

Please sign in to comment.