mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
3854174ec4
Store the trigger kind before each switch and assign the value to `never` in the fallback branch.
This removes the `any` casts and makes the switches exhaustive. Adding a new `DeferTriggerKind` without handling it in either phase now produces a TypeScript compilation error.
Runtime behavior and error messages remain unchanged.
(cherry picked from commit 8201cebc49)