You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/framework/angular/typescript.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ class MyComponent {
71
71
```
72
72
73
73
[//]: #'TypeInference3'
74
-
[//]: #'TypeInference4'
74
+
[//]: #'TypeNarrowing'
75
75
76
76
```angular-ts
77
77
@Component({
@@ -93,7 +93,7 @@ class MyComponent {
93
93
94
94
> TypeScript currently does not support discriminated unions on object methods. Narrowing on signal fields on objects such as query results only works on signals returning a boolean. Prefer using `isSuccess()` and similar boolean status signals over `status() === 'success'`.
0 commit comments