We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac2f151 commit c816cf2Copy full SHA for c816cf2
tests/cases/conformance/types/typeRelationships/typeInference/unionTypeInference.ts
@@ -69,3 +69,12 @@ async function fun<T>(deepPromised: DeepPromised<T>) {
69
await fun(awaitedValue);
70
}
71
72
+
73
+// Repro from #32752
74
75
+type Deep<T> = { [K in keyof T]: T[K] | Deep<T[K]> };
76
77
+declare function baz<T>(dp: Deep<T>): T;
78
+declare let xx: { a: string | undefined };
79
80
+baz(xx);
0 commit comments