Skip to content

Commit

Permalink
Merge pull request #177 from jaycetde/fix/typed-array-controls-typing
Browse files Browse the repository at this point in the history
Fix TypedFormArray controls as array of arrays
  • Loading branch information
maxime1992 authored Jun 23, 2020
2 parents 6a39e4a + a73d691 commit 75e2d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngx-sub-form/src/lib/ngx-sub-form-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface TypedFormGroup<TValue> extends FormGroup {
export interface TypedFormArray<TValue extends any[]> extends FormArray {
value: TValue;
valueChanges: Observable<TValue>;
controls: TypedAbstractControl<TValue>[];
controls: TypedAbstractControl<TValue[0]>[];
setValue(value: TValue, options?: Parameters<FormArray['setValue']>[1]): void;
patchValue(value: TValue, options?: Parameters<FormArray['patchValue']>[1]): void;
getRawValue(): TValue;
Expand Down

0 comments on commit 75e2d60

Please sign in to comment.