angular/packages/core/src/change_detection
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
..
differs refactor(core): replace Optional/SkipSelf deps with inject() flags (#63386) 2025-08-28 08:43:17 -07:00
scheduling fix(core): Drop special-case disables automatic change detection scheduling (#63846) 2025-09-16 20:43:17 +00:00
change_detection.ts refactor(core): move interfaces around (#64535) 2025-10-20 17:49:39 +00:00
change_detector_ref.ts refactor(core): replace internal usages of InjectFlags (#60318) 2025-03-11 11:33:09 -07:00
constants.ts docs: fix all brokens links on the API pages (#59162) 2025-03-04 20:07:23 +00:00
lifecycle_hooks.ts refactor(core): move interfaces around (#64535) 2025-10-20 17:49:39 +00:00
pipe_transform.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
provide_check_no_changes_config.ts docs(docs-infra): Add version of introduction for APIs (#60814) 2025-05-02 07:51:33 -07:00
simple_change.ts feat(core): make SimpleChanges generic (#64535) 2025-10-20 17:49:39 +00:00
use_exhaustive_check_no_changes.ts refactor(core): protect InjectionToken usage of ngDevMode (#63875) 2025-09-19 21:27:45 +00:00