File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -2278,7 +2278,7 @@ namespace ts {
22782278 return getCustomTypeMapOfCommandLineOption ( optionDefinition . element ) ;
22792279 }
22802280 else {
2281- return ( optionDefinition as CommandLineOptionOfCustomType ) . type ;
2281+ return optionDefinition . type ;
22822282 }
22832283 }
22842284
Original file line number Diff line number Diff line change @@ -6338,8 +6338,20 @@ namespace ts {
63386338 }
63396339
63406340 /* @internal */
6341- export interface CommandLineOptionOfPrimitiveType extends CommandLineOptionBase {
6342- type : "string" | "number" | "boolean" ;
6341+ export interface CommandLineOptionOfStringType extends CommandLineOptionBase {
6342+ type : "string" ;
6343+ }
6344+
6345+ /* @internal */
6346+ export interface CommandLineOptionOfNumberType extends CommandLineOptionBase {
6347+ type : "number" ;
6348+ defaultValueDescription ?: `${number | undefined } ` | DiagnosticMessage ;
6349+ }
6350+
6351+ /* @internal */
6352+ export interface CommandLineOptionOfBooleanType extends CommandLineOptionBase {
6353+ type : "boolean" ;
6354+ defaultValueDescription ?: `${boolean | undefined } ` | DiagnosticMessage ;
63436355 }
63446356
63456357 /* @internal */
@@ -6371,11 +6383,11 @@ namespace ts {
63716383 /* @internal */
63726384 export interface CommandLineOptionOfListType extends CommandLineOptionBase {
63736385 type : "list" ;
6374- element : CommandLineOptionOfCustomType | CommandLineOptionOfPrimitiveType | TsConfigOnlyOption ;
6386+ element : CommandLineOptionOfCustomType | CommandLineOptionOfStringType | CommandLineOptionOfNumberType | CommandLineOptionOfBooleanType | TsConfigOnlyOption ;
63756387 }
63766388
63776389 /* @internal */
6378- export type CommandLineOption = CommandLineOptionOfCustomType | CommandLineOptionOfPrimitiveType | TsConfigOnlyOption | CommandLineOptionOfListType ;
6390+ export type CommandLineOption = CommandLineOptionOfCustomType | CommandLineOptionOfStringType | CommandLineOptionOfNumberType | CommandLineOptionOfBooleanType | TsConfigOnlyOption | CommandLineOptionOfListType ;
63796391
63806392 /* @internal */
63816393 export const enum CharacterCodes {
You can’t perform that action at this time.
0 commit comments