ngneat / reactive-forms

(Angular Reactive) Forms with Benefits 😉

Home Page:https://www.netbasal.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for Angular 14

undsoft opened this issue · comments

Is this a regression?

No

Description

Using library in Angular 14 results in:

Error: node_modules/@ngneat/reactive-forms/lib/form-builder.d.ts:8:5 - error TS2416: Property 'array' in type 'FormBuilder' is not assignable to the same property in base type 'FormBuilder'.
  Type '<T, Control extends AbstractControl<any, any> = T extends Record<any, any> ? FormGroup<ControlsOf<T>> : FormControl<T>>(controlsConfig: Control[], validatorOrOpts?: ValidatorFn | ... 1 more ... | AbstractControlOptions, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[]) => FormArray<...>' is not assignable to type '<T>(controls: T[], validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[]) => FormArray<...>'.
    Types of parameters 'controlsConfig' and 'controls' are incompatible.
      Type 'T[]' is not assignable to type 'AbstractControl<any, any>[]'.
        Type 'T' is not assignable to type 'AbstractControl<any, any>'.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in

No response

Anything else?

No response

Do you want to create a pull request?

Yes

@NetanelBasal Will you release it?