File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -7987,7 +7987,8 @@ namespace ts {
79877987 }
79887988
79897989 function getIndexType(type: Type): Type {
7990- return maybeTypeOfKind(type, TypeFlags.InstantiableNonPrimitive) ? getIndexTypeForGenericType(<InstantiableType | UnionOrIntersectionType>type) :
7990+ return type.flags & TypeFlags.Intersection ? getUnionType(map((<IntersectionType>type).types, t => getIndexType(t))) :
7991+ maybeTypeOfKind(type, TypeFlags.InstantiableNonPrimitive) ? getIndexTypeForGenericType(<InstantiableType | UnionOrIntersectionType>type) :
79917992 getObjectFlags(type) & ObjectFlags.Mapped ? getConstraintTypeFromMappedType(<MappedType>type) :
79927993 type === wildcardType ? wildcardType :
79937994 type.flags & TypeFlags.Any || getIndexInfoOfType(type, IndexKind.String) ? stringType :
You can’t perform that action at this time.
0 commit comments