angular/packages/forms/test
Kristiyan Kostadinov c2d376b85a feat(core): make SimpleChanges generic (#64535)
Currently it's easy to make a mistake when accessing properties on `SimpleChanges`, because the keys aren't typed. These changes add an optional generic to the interface so that users can get a compilation error if they make a typo.

A few things to note:
1. The generic argument is optional and we revert to the old behavior if one isn't passed for backwards compatibility.
2. All of the keys are optional, because they aren't guaranteed to be present for any `ngOnChanges` invocation.
3. We unwrap the values of input signals to match the behavior at runtime.

Fixes #17560.

PR Close #64535
2025-10-20 17:49:39 +00:00
..
BUILD.bazel build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
directives_spec.ts feat(core): make SimpleChanges generic (#64535) 2025-10-20 17:49:39 +00:00
form_array_spec.ts feat(forms): add support for pushing an array of controls to formarray (#57102) 2025-08-06 11:20:18 +02:00
form_builder_spec.ts refactor: clean up explicit standalone flags from tests (#63963) 2025-09-22 14:27:34 +00:00
form_control_spec.ts build: migrate vscode extension into repo (#63924) (#64049) 2025-10-15 10:37:02 -07:00
form_group_spec.ts build: migrate vscode extension into repo (#63924) (#64049) 2025-10-15 10:37:02 -07:00
ng_control_status_spec.ts refactor: clean up explicit standalone flags from tests (#63963) 2025-09-22 14:27:34 +00:00
reactive_integration_spec.ts fix(forms): Emit FormResetEvent when resetting control (#64024) 2025-09-24 16:48:32 +00:00
template_integration_spec.ts refactor(core): Update tests for zoneless by default (#63668) 2025-09-09 14:41:56 -07:00
typed_integration_spec.ts build: migrate vscode extension into repo (#63924) (#64049) 2025-10-15 10:37:02 -07:00
util.ts refactor(forms): convert scripts within packages/forms to relative imports (#60624) 2025-03-31 19:22:09 +00:00
validators_spec.ts refactor(forms): convert scripts within packages/forms to relative imports (#60624) 2025-03-31 19:22:09 +00:00
value_accessor_integration_spec.ts refactor(core): Update tests for zoneless by default (#63668) 2025-09-09 14:41:56 -07:00