@angular/forms 19.0.0 → 19.1.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0
2
+ * @license Angular v19.1.0-next.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1975,9 +1975,7 @@ export declare class FormBuilder {
1975
1975
  * * `updateOn`: The event upon which the control should be updated (options: 'change' | 'blur'
1976
1976
  * | submit').
1977
1977
  */
1978
- group<T extends {}>(controls: T, options?: AbstractControlOptions | null): FormGroup<{
1979
- [K in keyof T]: ɵElement<T[K], null>;
1980
- }>;
1978
+ group<T extends {}>(controls: T, options?: AbstractControlOptions | null): FormGroup<ɵNullableFormControls<T>>;
1981
1979
  /**
1982
1980
  * @description
1983
1981
  * Constructs a new `FormGroup` instance.
@@ -4256,9 +4254,7 @@ export declare abstract class NonNullableFormBuilder {
4256
4254
  * will be non-nullable (i.e. it will have `nonNullable` set to true). Note
4257
4255
  * that already-constructed controls will not be altered.
4258
4256
  */
4259
- abstract group<T extends {}>(controls: T, options?: AbstractControlOptions | null): FormGroup<{
4260
- [K in keyof T]: ɵElement<T[K], never>;
4261
- }>;
4257
+ abstract group<T extends {}>(controls: T, options?: AbstractControlOptions | null): FormGroup<ɵNonNullableFormControls<T>>;
4262
4258
  /**
4263
4259
  * Similar to `FormBuilder#record`, except any implicitly constructed `FormControl`
4264
4260
  * will be non-nullable (i.e. it will have `nonNullable` set to true). Note
@@ -5439,6 +5435,16 @@ export declare class ɵNgSelectMultipleOption implements OnDestroy {
5439
5435
  static ɵdir: i0.ɵɵDirectiveDeclaration<ɵNgSelectMultipleOption, "option", never, { "ngValue": { "alias": "ngValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
5440
5436
  }
5441
5437
 
5438
+ /** A map of non-nullable form controls. */
5439
+ declare type ɵNonNullableFormControls<T> = {
5440
+ [K in keyof T]: ɵElement<T[K], never>;
5441
+ };
5442
+
5443
+ /** A map of nullable form controls. */
5444
+ declare type ɵNullableFormControls<T> = {
5445
+ [K in keyof T]: ɵElement<T[K], null>;
5446
+ };
5447
+
5442
5448
  /**
5443
5449
  * OptionalKeys returns the union of all optional keys in the object.
5444
5450
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/forms",
3
- "version": "19.0.0",
3
+ "version": "19.1.0-next.0",
4
4
  "description": "Angular - directives and services for creating forms",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -11,9 +11,9 @@
11
11
  "tslib": "^2.3.0"
12
12
  },
13
13
  "peerDependencies": {
14
- "@angular/core": "19.0.0",
15
- "@angular/common": "19.0.0",
16
- "@angular/platform-browser": "19.0.0",
14
+ "@angular/core": "19.1.0-next.0",
15
+ "@angular/common": "19.1.0-next.0",
16
+ "@angular/platform-browser": "19.1.0-next.0",
17
17
  "rxjs": "^6.5.3 || ^7.4.0"
18
18
  },
19
19
  "repository": {