File tree 1 file changed +1
-3
lines changed
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -21455,7 +21455,6 @@ namespace ts {
21455
21455
* with no call or construct signatures.
21456
21456
*/
21457
21457
function isObjectTypeWithInferableIndex(type: Type): boolean {
21458
- const objectFlags = getObjectFlags(type);
21459
21458
return type.flags & TypeFlags.Intersection
21460
21459
? every((type as IntersectionType).types, isObjectTypeWithInferableIndex)
21461
21460
: !!(
@@ -21464,8 +21463,7 @@ namespace ts {
21464
21463
&& !(type.symbol.flags & SymbolFlags.Class)
21465
21464
&& !typeHasCallOrConstructSignatures(type)
21466
21465
) || !!(
21467
- objectFlags
21468
- && objectFlags & ObjectFlags.ObjectRestType
21466
+ getObjectFlags(type) & ObjectFlags.ObjectRestType
21469
21467
) || !!(getObjectFlags(type) & ObjectFlags.ReverseMapped && isObjectTypeWithInferableIndex((type as ReverseMappedType).source));
21470
21468
}
21471
21469
You can’t perform that action at this time.
0 commit comments