Fix incorrect name of index signature flag in implementation (#40541)

This commit is contained in:
Ryan Cavanaugh
2020-09-14 09:32:22 -07:00
committed by GitHub
parent 8d6aecbdde
commit 21d781fa54
8 changed files with 149 additions and 34 deletions

View File

@@ -13643,7 +13643,7 @@ namespace ts {
return undefined;
}
const shouldIncludeUndefined =
compilerOptions.noUncheckedIndexSignatures &&
compilerOptions.noUncheckedIndexedAccess &&
(accessFlags & (AccessFlags.Writing | AccessFlags.ExpressionPosition)) === AccessFlags.ExpressionPosition;
if (accessNode && !isTypeAssignableToKind(indexType, TypeFlags.String | TypeFlags.Number)) {
const indexNode = getIndexNodeForAccessExpression(accessNode);

View File

@@ -5783,7 +5783,7 @@ namespace ts {
assumeChangesOnlyAffectDirectDependencies?: boolean;
noLib?: boolean;
noResolve?: boolean;
noUncheckedIndexSignatures?: boolean;
noUncheckedIndexedAccess?: boolean;
out?: string;
outDir?: string;
outFile?: string;