@@ -1013,7 +1013,7 @@ namespace ts {
10131013 i ++ ;
10141014 break ;
10151015 case "list" :
1016- const result = parseListTypeOption ( < CommandLineOptionOfListType > opt , args [ i ] , errors ) ;
1016+ const result = parseListTypeOption ( opt , args [ i ] , errors ) ;
10171017 options [ opt . name ] = result || [ ] ;
10181018 if ( result ) {
10191019 i ++ ;
@@ -1667,7 +1667,7 @@ namespace ts {
16671667 return undefined ;
16681668 }
16691669 else if ( optionDefinition . type === "list" ) {
1670- return getCustomTypeMapOfCommandLineOption ( ( < CommandLineOptionOfListType > optionDefinition ) . element ) ;
1670+ return getCustomTypeMapOfCommandLineOption ( optionDefinition . element ) ;
16711671 }
16721672 else {
16731673 return ( < CommandLineOptionOfCustomType > optionDefinition ) . type ;
@@ -1731,7 +1731,7 @@ namespace ts {
17311731 case "object" :
17321732 return { } ;
17331733 default :
1734- return ( option as CommandLineOptionOfCustomType ) . type . keys ( ) . next ( ) . value ;
1734+ return option . type . keys ( ) . next ( ) . value ;
17351735 }
17361736 }
17371737
@@ -2338,7 +2338,7 @@ namespace ts {
23382338 function normalizeOptionValue ( option : CommandLineOption , basePath : string , value : any ) : CompilerOptionsValue {
23392339 if ( isNullOrUndefined ( value ) ) return undefined ;
23402340 if ( option . type === "list" ) {
2341- const listOption = < CommandLineOptionOfListType > option ;
2341+ const listOption = option ;
23422342 if ( listOption . element . isFilePath || ! isString ( listOption . element . type ) ) {
23432343 return < CompilerOptionsValue > filter ( map ( value , v => normalizeOptionValue ( listOption . element , basePath , v ) ) , v => ! ! v ) ;
23442344 }
@@ -2745,7 +2745,7 @@ namespace ts {
27452745 case "boolean" :
27462746 return typeof value === "boolean" ? value : "" ;
27472747 case "list" :
2748- const elementType = ( option as CommandLineOptionOfListType ) . element ;
2748+ const elementType = option . element ;
27492749 return isArray ( value ) ? value . map ( v => getOptionValueWithEmptyStrings ( v , elementType ) ) : "" ;
27502750 default :
27512751 return forEachEntry ( option . type , ( optionEnumValue , optionStringValue ) => {
0 commit comments