Skip to content

Commit

Permalink
Merge pull request #181 from ntziolis/master
Browse files Browse the repository at this point in the history
fix(typings): correctly extract nested oprional form group array typing
  • Loading branch information
NetanelBasal committed Aug 15, 2023
2 parents b774fe8 + 5292743 commit d60d618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/reactive-forms/src/lib/types.ts
Expand Up @@ -21,7 +21,7 @@ export type ValuesOf<T extends ControlsOf<any>> = {
? ValuesOf<R>
: NonUndefined<T[K]> extends FormArray<infer R, infer C>

Check warning on line 22 in libs/reactive-forms/src/lib/types.ts

View workflow job for this annotation

GitHub Actions / build

'C' is defined but never used
? R extends Record<any, any>
? ValuesOf<R>[]
? ValuesOf<ControlsOf<R>>[]
: R[]
: NonUndefined<T[K]>;
};
Expand Down

0 comments on commit d60d618

Please sign in to comment.