feat(eslint): consistent-type-assertions (#43556)

This commit is contained in:
Oleksandr T
2021-05-18 16:20:57 +03:00
committed by GitHub
parent fc07ee2ad7
commit db01e84700
115 changed files with 2680 additions and 2679 deletions

View File

@@ -144,8 +144,8 @@ namespace ts {
if (option.name === "lib") {
description = getDiagnosticText(option.description);
const element = (<CommandLineOptionOfListType>option).element;
const typeMap = <ESMap<string, number | string>>element.type;
const element = (option as CommandLineOptionOfListType).element;
const typeMap = element.type as ESMap<string, number | string>;
optionsDescriptionMap.set(description, arrayFrom(typeMap.keys()).map(key => `'${key}'`));
}
else {