I have a simple problem. When I'm using async pipe in template IDE don't know what type has the object from the async pipe.
Here is a short example:
<ng-container *ngIf="(state$ | async).foo as foo">
Actually foo is of type Foo: {id:string, name:string, value: number}
The problem is, when I want to use foo in template IDE don't know that foo has id, or name, or value.
Is there any clean solution to "cast" foo to Foo?