angular/packages/core/test/authoring
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 feat(core): make SimpleChanges generic (#64535) 2025-10-20 17:49:39 +00:00
input_signal_spec.ts refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00
linked_signal_signature_test.ts test(core): type tests for linkedSignal (#60857) 2025-04-14 09:30:36 -04:00
model_input_spec.ts refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00
signal_input_signature_test.ts refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00
signal_model_signature_test.ts refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00
signal_queries_signature_test.ts refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00
simple_changes_signature_test.ts feat(core): make SimpleChanges generic (#64535) 2025-10-20 17:49:39 +00:00
type_tester.ts feat(core): make SimpleChanges generic (#64535) 2025-10-20 17:49:39 +00:00
unwrap_writable_signal_signature_test.ts refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00