angular/packages/core
Paul Gschwendtner b78042f3a5 refactor(core): separate InputSignal and InputSignalWithTransform (#54053)
This commit separates `InputSignal` for input signals with transforms.
The reason being that most of the time, signal inputs are not using
transforms and the generics are rather confusing.

Especially for users with inferred types displayed in their IDEs, the
input signal types are seemingly complex, even if no transform is used.

For this reason, we are introducing a new type called
`InputSignalWithTransform`. This type will be used for inputs with
transforms, while non-transform inputs just use `InputSignal`.

A notable fact is that `InputSignal` extends `InputSignalWithTransform`,
with the "identity transform". i.e. there is no transform. This allows
us to share the code for input signals. In practice, we don't expect
users to pass around `InputSignal`'s anyway.

PR Close #54053
2024-01-26 19:10:56 +00:00
..
global build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
primitives/signals refactor(core): signals toString improvements (#54079) 2024-01-25 20:45:02 +00:00
reference-manifests build: add target to generate api manifest (#52472) 2023-11-02 11:00:59 -07:00
rxjs-interop build: configure cross-pkg resolution for api extraction (#52499) 2024-01-05 11:27:34 -08:00
schematics refactor: fix a number of typos throughout the codebase (#52826) 2024-01-25 22:54:59 +00:00
src refactor(core): separate InputSignal and InputSignalWithTransform (#54053) 2024-01-26 19:10:56 +00:00
test refactor(core): separate InputSignal and InputSignalWithTransform (#54053) 2024-01-26 19:10:56 +00:00
testing fix(core): change defer block fixture default behavior to playthrough (#54088) 2024-01-26 15:44:40 +00:00
BUILD.bazel build: configure cross-pkg resolution for api extraction (#52499) 2024-01-05 11:27:34 -08:00
index.ts refactor(core): made comment structure consistent in index.ts (#43684) 2021-10-21 18:39:58 +00:00
package.json build: update node.js engines version to be more explicate about v20 support (#52448) 2023-10-31 14:18:36 -07:00
PACKAGE.md
public_api.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00