Skip to content

Commit 0df2883

Browse files
authored
docs(angular-query): type narrowing (#8297)
1 parent 118b152 commit 0df2883

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/framework/angular/typescript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class MyComponent {
7171
```
7272

7373
[//]: # 'TypeInference3'
74-
[//]: # 'TypeInference4'
74+
[//]: # 'TypeNarrowing'
7575

7676
```angular-ts
7777
@Component({
@@ -93,7 +93,7 @@ class MyComponent {
9393

9494
> 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'`.
9595
96-
[//]: # 'TypeInference4'
96+
[//]: # 'TypeNarrowing'
9797
[//]: # 'TypingError'
9898

9999
```angular-ts

0 commit comments

Comments
 (0)