Preview:```ts
interface A {
test?: string
}
type DefaultTest = "test"
function test<T extends A>(a: T) {
type ActualTest = T["test"] extends undefined
? DefaultTest
: T["test"]
return "" as ActualTest
}
// Should be "test". But it's string | undefined.
type ResultA = ReturnType<typeof test>
...```
You can choose specific lines to embed by selecting them before copying the link.