Preview:```ts
type Base = {
id: string
}
type CaseA = Base & {
foo: string
bar: never
}
type CaseB = Base & {
foo: never
bar: number
}
type U = CaseA | CaseB
function test(u: U) {
if (u.foo) {
u.bar += 1
}
}```
You can choose specific lines to embed by selecting them before copying the link.