Skip to content

Commit 75ba734

Browse files
Use string literal types in the command line parser.
1 parent 9c1796f commit 75ba734

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/compiler/types.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2179,17 +2179,17 @@ namespace ts {
21792179
/* @internal */
21802180
export interface CommandLineOptionBase {
21812181
name: string;
2182-
type: string | Map<number>; // "string", "number", "boolean", or an object literal mapping named values to actual values
2183-
isFilePath?: boolean; // True if option value is a path or fileName
2184-
shortName?: string; // A short mnemonic for convenience - for instance, 'h' can be used in place of 'help'
2185-
description?: DiagnosticMessage; // The message describing what the command line switch does
2186-
paramType?: DiagnosticMessage; // The name to be used for a non-boolean option's parameter
2182+
type: "string" | "number" | "boolean" | Map<number>; // a value of a primitive type, or an object literal mapping named values to actual values
2183+
isFilePath?: boolean; // True if option value is a path or fileName
2184+
shortName?: string; // A short mnemonic for convenience - for instance, 'h' can be used in place of 'help'
2185+
description?: DiagnosticMessage; // The message describing what the command line switch does
2186+
paramType?: DiagnosticMessage; // The name to be used for a non-boolean option's parameter
21872187
experimental?: boolean;
21882188
}
21892189

21902190
/* @internal */
21912191
export interface CommandLineOptionOfPrimitiveType extends CommandLineOptionBase {
2192-
type: string; // "string" | "number" | "boolean"
2192+
type: "string" | "number" | "boolean";
21932193
}
21942194

21952195
/* @internal */

0 commit comments

Comments
 (0)