Commit 973bb40
committed
fix(compiler-cli): remove classes in .d.ts files from provider checks (#40118)
This commit temporarily excludes classes declared in .d.ts files from checks
regarding whether providers are actually injectable.
Such classes used to be ignored (on accident) because the
`TypeScriptReflectionHost.getConstructorParameters()` method did not return
constructor parameters from d.ts files, mostly as an oversight. This was
recently fixed, but caused more providers to be exposed to this check, which
created a breakage in g3.
This commit temporarily fixes the breakage by continuing to exclude such
providers from the check, until g3 can be patched.
PR Close #401181 parent 2a74431 commit 973bb40
File tree
2 files changed
+21
-11
lines changed- packages/compiler-cli
- src/ngtsc/annotations/src
- test/ngtsc
2 files changed
+21
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
520 | 526 | | |
521 | 527 | | |
522 | 528 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7493 | 7493 | | |
7494 | 7494 | | |
7495 | 7495 | | |
7496 | | - | |
7497 | | - | |
7498 | | - | |
| 7496 | + | |
| 7497 | + | |
| 7498 | + | |
| 7499 | + | |
| 7500 | + | |
| 7501 | + | |
| 7502 | + | |
7499 | 7503 | | |
7500 | 7504 | | |
7501 | 7505 | | |
7502 | | - | |
| 7506 | + | |
7503 | 7507 | | |
7504 | 7508 | | |
7505 | | - | |
| 7509 | + | |
7506 | 7510 | | |
7507 | 7511 | | |
7508 | 7512 | | |
| |||
7515 | 7519 | | |
7516 | 7520 | | |
7517 | 7521 | | |
7518 | | - | |
7519 | | - | |
7520 | | - | |
7521 | | - | |
| 7522 | + | |
| 7523 | + | |
| 7524 | + | |
| 7525 | + | |
7522 | 7526 | | |
7523 | 7527 | | |
7524 | 7528 | | |
| |||
7529 | 7533 | | |
7530 | 7534 | | |
7531 | 7535 | | |
7532 | | - | |
| 7536 | + | |
7533 | 7537 | | |
7534 | 7538 | | |
7535 | 7539 | | |
| |||
0 commit comments