File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -9645,7 +9645,8 @@ namespace ts {
9645
9645
}
9646
9646
else {
9647
9647
stringIndexInfo = baseConstructorIndexInfo;
9648
- if (symbol.flags & SymbolFlags.Enum && (getDeclaredTypeOfSymbol(symbol).flags & TypeFlags.Enum || some(type.properties, prop => !!(getTypeOfSymbol(prop).flags & TypeFlags.NumberLike))) ) {
9648
+ if (symbol.flags & SymbolFlags.Enum && (getDeclaredTypeOfSymbol(symbol).flags & TypeFlags.Enum ||
9649
+ some(type.properties, prop => !!(getTypeOfSymbol(prop).flags & TypeFlags.NumberLike)))) {
9649
9650
numberIndexInfo = enumNumberIndexInfo;
9650
9651
}
9651
9652
}
@@ -9680,7 +9681,7 @@ namespace ts {
9680
9681
const declaration = getIndexDeclarationOfIndexSymbol(indexSymbol, indexKind);
9681
9682
if (!declaration) return undefined;
9682
9683
return createIndexInfo(declaration.type ? getTypeFromTypeNode(declaration.type) : anyType,
9683
- hasModifier(declaration, ModifierFlags.Readonly), declaration);
9684
+ hasModifier(declaration, ModifierFlags.Readonly), declaration);
9684
9685
}
9685
9686
9686
9687
function resolveReverseMappedTypeMembers(type: ReverseMappedType) {
Original file line number Diff line number Diff line change @@ -2824,7 +2824,7 @@ namespace ts {
2824
2824
}
2825
2825
2826
2826
function isIndexSignature ( ) : boolean {
2827
- return token ( ) === SyntaxKind . StaticKeyword ? lookAhead ( isNonStaticIndexSignature ) : isNonStaticIndexSignature ( )
2827
+ return token ( ) === SyntaxKind . StaticKeyword ? lookAhead ( isNonStaticIndexSignature ) : isNonStaticIndexSignature ( ) ;
2828
2828
}
2829
2829
2830
2830
function isNonStaticIndexSignature ( ) : boolean {
You can’t perform that action at this time.
0 commit comments