We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8120094 commit 2fd4aaeCopy full SHA for 2fd4aae
tests/cases/conformance/types/keyof/keyofAndIndexedAccess2.ts
@@ -147,3 +147,13 @@ export class c {
147
this["a"] = "b";
148
}
149
150
+
151
+// Repro from #31385
152
153
+type Foo<T> = { [key: string]: { [K in keyof T]: K }[keyof T] };
154
155
+type Bar<T> = { [key: string]: { [K in keyof T]: [K] }[keyof T] };
156
157
+type Baz<T, Q extends Foo<T>> = { [K in keyof Q]: T[Q[K]] };
158
159
+type Qux<T, Q extends Bar<T>> = { [K in keyof Q]: T[Q[K]["0"]] };
0 commit comments