mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Wrap `@defer` trigger expressions (`when`, `prefetch when`, `hydrate when`) in a conditional context within the TCB to enable TypeScript's TS2774 diagnostic for detecting functions used without invocation. Previously, signals and functions passed to `when` triggers without parentheses would silently evaluate to truthy, causing unexpected behavior. Now the compiler reports an error when a function is used as a condition without being called. |
||
|---|---|---|
| .. | ||
| linker | ||
| private | ||
| src | ||
| test | ||
| BUILD.bazel | ||
| esbuild.config.js | ||
| index.ts | ||
| package.json | ||
| tsconfig-test.json | ||
| tsconfig.json | ||