We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8825292 + 26e2fc2 commit b774fe8Copy full SHA for b774fe8
libs/reactive-forms/src/lib/types.ts
@@ -19,7 +19,11 @@ export type ValuesOf<T extends ControlsOf<any>> = {
19
? R
20
: NonUndefined<T[K]> extends FormGroup<infer R>
21
? ValuesOf<R>
22
- : NonUndefined<T[K]> extends FormArray<infer R, infer C> ? R[] : NonUndefined<T[K]>;
+ : NonUndefined<T[K]> extends FormArray<infer R, infer C>
23
+ ? R extends Record<any, any>
24
+ ? ValuesOf<R>[]
25
+ : R[]
26
+ : NonUndefined<T[K]>;
27
};
28
29
export type DeepPartial<T> = {
0 commit comments