@@ -1013,7 +1013,7 @@ namespace ts {
1013
1013
i ++ ;
1014
1014
break ;
1015
1015
case "list" :
1016
- const result = parseListTypeOption ( < CommandLineOptionOfListType > opt , args [ i ] , errors ) ;
1016
+ const result = parseListTypeOption ( opt , args [ i ] , errors ) ;
1017
1017
options [ opt . name ] = result || [ ] ;
1018
1018
if ( result ) {
1019
1019
i ++ ;
@@ -1667,7 +1667,7 @@ namespace ts {
1667
1667
return undefined ;
1668
1668
}
1669
1669
else if ( optionDefinition . type === "list" ) {
1670
- return getCustomTypeMapOfCommandLineOption ( ( < CommandLineOptionOfListType > optionDefinition ) . element ) ;
1670
+ return getCustomTypeMapOfCommandLineOption ( optionDefinition . element ) ;
1671
1671
}
1672
1672
else {
1673
1673
return ( < CommandLineOptionOfCustomType > optionDefinition ) . type ;
@@ -1731,7 +1731,7 @@ namespace ts {
1731
1731
case "object" :
1732
1732
return { } ;
1733
1733
default :
1734
- return ( option as CommandLineOptionOfCustomType ) . type . keys ( ) . next ( ) . value ;
1734
+ return option . type . keys ( ) . next ( ) . value ;
1735
1735
}
1736
1736
}
1737
1737
@@ -2338,7 +2338,7 @@ namespace ts {
2338
2338
function normalizeOptionValue ( option : CommandLineOption , basePath : string , value : any ) : CompilerOptionsValue {
2339
2339
if ( isNullOrUndefined ( value ) ) return undefined ;
2340
2340
if ( option . type === "list" ) {
2341
- const listOption = < CommandLineOptionOfListType > option ;
2341
+ const listOption = option ;
2342
2342
if ( listOption . element . isFilePath || ! isString ( listOption . element . type ) ) {
2343
2343
return < CompilerOptionsValue > filter ( map ( value , v => normalizeOptionValue ( listOption . element , basePath , v ) ) , v => ! ! v ) ;
2344
2344
}
@@ -2745,7 +2745,7 @@ namespace ts {
2745
2745
case "boolean" :
2746
2746
return typeof value === "boolean" ? value : "" ;
2747
2747
case "list" :
2748
- const elementType = ( option as CommandLineOptionOfListType ) . element ;
2748
+ const elementType = option . element ;
2749
2749
return isArray ( value ) ? value . map ( v => getOptionValueWithEmptyStrings ( v , elementType ) ) : "" ;
2750
2750
default :
2751
2751
return forEachEntry ( option . type , ( optionEnumValue , optionStringValue ) => {
0 commit comments