mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Adds tests that allow us to ensure that the `input` API works as expected and that resulting return types match our expectations- without silently regressing in the future, or missing potential edge-cases. Testing signatures is hard because of covariance and contravariance, especially when it comes to the different semantics of `ReadT` and `WriteT` of input signals. We enable reliable testing by validating the `d.ts` of the "fake directive class". This ensures clear results, compared to relying on e.g. type assertions that might accidentally/silently pass due to covariance/contravariance or biavariance in the type system. PR Close #53571 |
||
|---|---|---|
| .. | ||
| BUILD.bazel | ||
| signal_input_signature_test.ts | ||
| type_tester.ts | ||