angular/tools
Matthieu Riegler 8bc31a515f feat(core): Allow other expression for exhaustive typechecking
When the switched expression is nested within a union, exhaustive typechecking needs to know which expression to check.
This change adds the possibility of specifying the expression to check:

```
@Component({
  selector: 'app-root',
  imports: [],
  template: `
    @switch (state.mode) {
      @case ('show') { {{ state.menu }}; }
      @case ('hide') {}
      @default never(state);
    }
  `,
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class App {
  state!: { mode: 'hide' } | { mode: 'show'; menu: number };;
}
```

fixes #67406
2026-03-24 14:42:28 -07:00
..
bazel build: update aspect_rules_js to 3.0.2 (#67518) 2026-03-11 13:37:33 -07:00
contributing-stats refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
gulp-tasks build(dev-infra): add release automation script for zone.js 2026-03-03 09:14:35 -08:00
legacy-saucelabs build: initial test of TypeScript 6 2026-01-15 13:41:01 -08:00
manual_api_docs feat(core): Allow other expression for exhaustive typechecking 2026-03-24 14:42:28 -07:00
saucelabs ci: remove circleci as we no longer rely on it (#58615) 2024-11-12 18:39:25 +00:00
saucelabs-daemon build: format md files 2025-11-06 10:03:05 -08:00
symbol-extractor refactor(common): update copyright to Google LLC 2026-02-09 07:51:36 -08:00
testing build: format md files 2025-11-06 10:03:05 -08:00
tslint docs: replace old https://angular.io/license with https://angular.dev/license 2026-01-12 13:41:30 -08:00
BUILD.bazel build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
defaults.bzl build: update aspect_rules_js to 3.0.2 (#67518) 2026-03-11 13:37:33 -07:00
jsconfig.json chore(vscode): add jsconfig.json and remove .settings dir 2015-10-29 13:53:21 +00:00
ng_benchmark.bzl build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
tsconfig-test.json build: migrate symbol-extractor to ts_project (#61156) 2025-05-07 11:28:59 -07:00
tsconfig.json build: initial test of TypeScript 6 2026-01-15 13:41:01 -08:00
types.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00