From 1472ab01ccd2203a2e3b5a638a5c2239dbb99e88 Mon Sep 17 00:00:00 2001 From: ntziolis Date: Wed, 26 Feb 2020 08:26:32 +0100 Subject: [PATCH] fix(typed-form-array): set/patchValue now use TValue directly as it extends any[] --- projects/ngx-sub-form/src/lib/ngx-sub-form-utils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/ngx-sub-form/src/lib/ngx-sub-form-utils.ts b/projects/ngx-sub-form/src/lib/ngx-sub-form-utils.ts index 7b35aa35..8d5c116c 100644 --- a/projects/ngx-sub-form/src/lib/ngx-sub-form-utils.ts +++ b/projects/ngx-sub-form/src/lib/ngx-sub-form-utils.ts @@ -52,12 +52,12 @@ export interface TypedFormGroup extends FormGroup { patchValue(value: Partial, options?: Parameters[1]): void; } -export interface TypedFormArray extends FormArray { +export interface TypedFormArray extends FormArray { value: TValue; valueChanges: Observable; controls: TypedAbstractControl[]; - setValue(value: TValue[], options?: Parameters[1]): void; - patchValue(value: Partial, options?: Parameters[1]): void; + setValue(value: TValue, options?: Parameters[1]): void; + patchValue(value: TValue, options?: Parameters[1]): void; } export interface TypedFormControl extends FormGroup {