@@ -56,11 +56,11 @@ interface PermissiveAbstractControlOptions extends Omit<AbstractControlOptions,
5656// Note: these two types have been extracted into type aliases to work around a .d.ts generation
5757// issue in TypeScript 5.7. See: https://github.com/Microsoft/TypeScript/issues/60506. The types
5858// have to be exported for the workaround to work.
59- /** Group of nullable form controls. */
60- export type ɵNullableFormGroup < T > = FormGroup < { [ K in keyof T ] : ɵElement < T [ K ] , null > } > ;
59+ /** A map of nullable form controls. */
60+ export type ɵNullableFormControls < T > = { [ K in keyof T ] : ɵElement < T [ K ] , null > } ;
6161
62- /** Group of non-nullable form controls. */
63- export type ɵNonNullableFormGroup < T > = FormGroup < { [ K in keyof T ] : ɵElement < T [ K ] , never > } > ;
62+ /** A map of non-nullable form controls. */
63+ export type ɵNonNullableFormControls < T > = { [ K in keyof T ] : ɵElement < T [ K ] , never > } ;
6464
6565/**
6666 * ControlConfig<T> is a tuple containing a value of type T, plus optional validators and async
@@ -203,7 +203,10 @@ export class FormBuilder {
203203 * * `updateOn`: The event upon which the control should be updated (options: 'change' | 'blur'
204204 * | submit').
205205 */
206- group < T extends { } > ( controls : T , options ?: AbstractControlOptions | null ) : ɵNullableFormGroup < T > ;
206+ group < T extends { } > (
207+ controls : T ,
208+ options ?: AbstractControlOptions | null ,
209+ ) : FormGroup < ɵNullableFormControls < T > > ;
207210
208211 /**
209212 * @description
@@ -424,7 +427,7 @@ export abstract class NonNullableFormBuilder {
424427 abstract group < T extends { } > (
425428 controls : T ,
426429 options ?: AbstractControlOptions | null ,
427- ) : ɵNonNullableFormGroup < T > ;
430+ ) : FormGroup < ɵNonNullableFormControls < T > > ;
428431
429432 /**
430433 * Similar to `FormBuilder#record`, except any implicitly constructed `FormControl`
0 commit comments