Revert the type change to ts.Map (#39366)

This commit is contained in:
Ron Buckton
2020-07-01 17:00:26 -07:00
committed by GitHub
parent 852800bb98
commit 7b942b4fa8
71 changed files with 443 additions and 405 deletions

View File

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