Skip to content

Commit f4f354c

Browse files
committed
make lint happy
1 parent 0a9b34b commit f4f354c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/compiler/checker.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -9645,7 +9645,8 @@ namespace ts {
96459645
}
96469646
else {
96479647
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)))) {
96499650
numberIndexInfo = enumNumberIndexInfo;
96509651
}
96519652
}
@@ -9680,7 +9681,7 @@ namespace ts {
96809681
const declaration = getIndexDeclarationOfIndexSymbol(indexSymbol, indexKind);
96819682
if (!declaration) return undefined;
96829683
return createIndexInfo(declaration.type ? getTypeFromTypeNode(declaration.type) : anyType,
9683-
hasModifier(declaration, ModifierFlags.Readonly), declaration);
9684+
hasModifier(declaration, ModifierFlags.Readonly), declaration);
96849685
}
96859686

96869687
function resolveReverseMappedTypeMembers(type: ReverseMappedType) {

src/compiler/parser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2824,7 +2824,7 @@ namespace ts {
28242824
}
28252825

28262826
function isIndexSignature(): boolean {
2827-
return token() === SyntaxKind.StaticKeyword ? lookAhead(isNonStaticIndexSignature) : isNonStaticIndexSignature()
2827+
return token() === SyntaxKind.StaticKeyword ? lookAhead(isNonStaticIndexSignature) : isNonStaticIndexSignature();
28282828
}
28292829

28302830
function isNonStaticIndexSignature(): boolean {

0 commit comments

Comments
 (0)