Skip to content

Commit cc5e740

Browse files
authored
CommandLineOption type <-> defaultValueDescription
1 parent 9719974 commit cc5e740

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

src/compiler/types.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff 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}` | DiagnosticMessage;
6349+
}
6350+
6351+
/* @internal */
6352+
export interface CommandLineOptionOfBooleanType extends CommandLineOptionBase {
6353+
type: "boolean";
6354+
defaultValueDescription?: "true" | "false" | "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 {

0 commit comments

Comments
 (0)