Skip to content

Commit

Permalink
fix(typings): controls property on TypedFormArray
Browse files Browse the repository at this point in the history
controls should be an array of controls that have the single item as the value
  • Loading branch information
jayce.pulsipher committed Jun 22, 2020
1 parent 6a39e4a commit a73d691
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 a73d691

Please sign in to comment.