Angular, Web Development, JavaScript, Typescript.
type narrowing is no longer working: @if (analysisState().status === "pending") { <p>Analysis is pending</p> } @else { <!-- Property 'result' does not exist on type 'AnalysisState'. --> <p>Analysis completed with result: {{ analysisState().result }}</p> } There are two workarounds: use getter with