mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 01:33:15 -05:00
Fix index signatures on unions of intersections (#38278)
* Add missing getApparentType call * Add regression tests
This commit is contained in:
@@ -9701,7 +9701,7 @@ namespace ts {
|
||||
const indexTypes: Type[] = [];
|
||||
let isAnyReadonly = false;
|
||||
for (const type of types) {
|
||||
const indexInfo = getIndexInfoOfType(type, kind);
|
||||
const indexInfo = getIndexInfoOfType(getApparentType(type), kind);
|
||||
if (!indexInfo) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user