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
Improved handling of union types when generating classes
Prevents accessing a property which is declared in one type but not the other:
```
type A = { p: string; }; type B = { k: number; };
const foo = {} as A | B;
foo.p = "bar";
//>Property 'p' does not exist on type 'A | B'.
//> Property 'p' does not exist on type 'B'.
```
Signed-off-by: Jean-Baptiste Bianchi <[email protected]>
0 commit comments