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 8bd6fd8 commit bb15df3Copy full SHA for bb15df3
src/compiler/checker.ts
@@ -14600,7 +14600,7 @@ namespace ts {
14600
* with no call or construct signatures.
14601
*/
14602
function isObjectTypeWithInferableIndex(type: Type) {
14603
- return type.symbol && (type.symbol.flags & (SymbolFlags.ObjectLiteral | SymbolFlags.TypeLiteral | SymbolFlags.Enum| SymbolFlags.ValueModule)) !== 0 &&
+ return type.symbol && (type.symbol.flags & (SymbolFlags.ObjectLiteral | SymbolFlags.TypeLiteral | SymbolFlags.Enum | SymbolFlags.ValueModule)) !== 0 &&
14604
!typeHasCallOrConstructSignatures(type);
14605
}
14606
0 commit comments