Skip to content

Commit

Permalink
fix(typings): correctly extract nested form group array
Browse files Browse the repository at this point in the history
  • Loading branch information
ntziolis authored Aug 11, 2023
1 parent b774fe8 commit 5292743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/reactive-forms/src/lib/types.ts
Original file line number Diff line number Diff line change
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

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 5292743

Please sign in to comment.