Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(angular-query): type narrowing
Browse files Browse the repository at this point in the history
arnoud-dv committed Nov 15, 2024
1 parent 118b152 commit 6e067d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/framework/angular/typescript.md
Original file line number Diff line number Diff line change
@@ -71,7 +71,7 @@ class MyComponent {
```

[//]: # 'TypeInference3'
[//]: # 'TypeInference4'
[//]: # 'TypeNarrowing'

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

> 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'`.
[//]: # 'TypeInference4'
[//]: # 'TypeNarrowing'
[//]: # 'TypingError'

```angular-ts

0 comments on commit 6e067d4

Please sign in to comment.