We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c11cf4 commit 5b45f42Copy full SHA for 5b45f42
tests/cases/compiler/recursiveConditionalTypes.ts
@@ -9,7 +9,7 @@ type Awaited<T> =
9
T;
10
11
type MyPromise<T> = {
12
- then<U>(f: ((value: T) => U | MyPromise<U>) | null | undefined): MyPromise<U>;
+ then<U>(f: ((value: T) => U | PromiseLike<U>) | null | undefined): MyPromise<U>;
13
}
14
15
type InfinitePromise<T> = Promise<InfinitePromise<T>>;
@@ -66,7 +66,7 @@ declare function foo<T>(x: Box1<Box1<T>>): T;
66
67
declare let z: Box2<Box2<string>>;
68
69
-foo(z); // string
+foo(z); // unknown, but ideally would be string (requires unique recursion ID for each type reference)
70
71
// Intersect tuple element types
72
0 commit comments