1
1
namespace ts {
2
2
/* @internal */
3
- export const compileOnSaveCommandLineOption : CommandLineOption = { name : "compileOnSave" , type : "boolean" } ;
3
+ export const compileOnSaveCommandLineOption : CommandLineOption = { name : "compileOnSave" , type : "boolean" , defaultValueDescription : "false" } ;
4
4
5
5
const jsxOptionMap = new Map ( getEntries ( {
6
6
"preserve" : JsxEmit . Preserve ,
@@ -140,6 +140,7 @@ namespace ts {
140
140
type : "boolean" ,
141
141
category : Diagnostics . Watch_and_Build_Modes ,
142
142
description : Diagnostics . Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively ,
143
+ defaultValueDescription : "false" ,
143
144
} ,
144
145
{
145
146
name : "excludeDirectories" ,
@@ -176,11 +177,13 @@ namespace ts {
176
177
showInSimplifiedHelpView : true ,
177
178
category : Diagnostics . Command_line_Options ,
178
179
description : Diagnostics . Print_this_message ,
180
+ defaultValueDescription : "false" ,
179
181
} ,
180
182
{
181
183
name : "help" ,
182
184
shortName : "?" ,
183
- type : "boolean"
185
+ type : "boolean" ,
186
+ defaultValueDescription : "false" ,
184
187
} ,
185
188
{
186
189
name : "watch" ,
@@ -190,14 +193,15 @@ namespace ts {
190
193
isCommandLineOnly : true ,
191
194
category : Diagnostics . Command_line_Options ,
192
195
description : Diagnostics . Watch_input_files ,
196
+ defaultValueDescription : "false" ,
193
197
} ,
194
198
{
195
199
name : "preserveWatchOutput" ,
196
200
type : "boolean" ,
197
201
showInSimplifiedHelpView : false ,
198
202
category : Diagnostics . Output_Formatting ,
199
203
description : Diagnostics . Disable_wiping_the_console_in_watch_mode ,
200
- defaultValueDescription : "n/a"
204
+ defaultValueDescription : "false" ,
201
205
} ,
202
206
{
203
207
name : "listFiles" ,
@@ -210,7 +214,8 @@ namespace ts {
210
214
name : "explainFiles" ,
211
215
type : "boolean" ,
212
216
category : Diagnostics . Compiler_Diagnostics ,
213
- description : Diagnostics . Print_files_read_during_the_compilation_including_why_it_was_included
217
+ description : Diagnostics . Print_files_read_during_the_compilation_including_why_it_was_included ,
218
+ defaultValueDescription : "false" ,
214
219
} ,
215
220
{
216
221
name : "listEmittedFiles" ,
@@ -281,7 +286,8 @@ namespace ts {
281
286
affectsSemanticDiagnostics : true ,
282
287
affectsEmit : true ,
283
288
category : Diagnostics . Watch_and_Build_Modes ,
284
- description : Diagnostics . Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it
289
+ description : Diagnostics . Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it ,
290
+ defaultValueDescription : "false" ,
285
291
} ,
286
292
{
287
293
name : "locale" ,
@@ -328,6 +334,7 @@ namespace ts {
328
334
showInSimplifiedHelpView : true ,
329
335
category : Diagnostics . Command_line_Options ,
330
336
description : Diagnostics . Show_all_compiler_options ,
337
+ defaultValueDescription : "false" ,
331
338
} ,
332
339
{
333
340
name : "version" ,
@@ -336,13 +343,15 @@ namespace ts {
336
343
showInSimplifiedHelpView : true ,
337
344
category : Diagnostics . Command_line_Options ,
338
345
description : Diagnostics . Print_the_compiler_s_version ,
346
+ defaultValueDescription : "false" ,
339
347
} ,
340
348
{
341
349
name : "init" ,
342
350
type : "boolean" ,
343
351
showInSimplifiedHelpView : true ,
344
352
category : Diagnostics . Command_line_Options ,
345
353
description : Diagnostics . Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file ,
354
+ defaultValueDescription : "false" ,
346
355
} ,
347
356
{
348
357
name : "project" ,
@@ -360,15 +369,17 @@ namespace ts {
360
369
shortName : "b" ,
361
370
showInSimplifiedHelpView : true ,
362
371
category : Diagnostics . Command_line_Options ,
363
- description : Diagnostics . Build_one_or_more_projects_and_their_dependencies_if_out_of_date
372
+ description : Diagnostics . Build_one_or_more_projects_and_their_dependencies_if_out_of_date ,
373
+ defaultValueDescription : "false" ,
364
374
} ,
365
375
{
366
376
name : "showConfig" ,
367
377
type : "boolean" ,
368
378
showInSimplifiedHelpView : true ,
369
379
category : Diagnostics . Command_line_Options ,
370
380
isCommandLineOnly : true ,
371
- description : Diagnostics . Print_the_final_configuration_instead_of_building
381
+ description : Diagnostics . Print_the_final_configuration_instead_of_building ,
382
+ defaultValueDescription : "false" ,
372
383
} ,
373
384
{
374
385
name : "listFilesOnly" ,
@@ -377,7 +388,8 @@ namespace ts {
377
388
affectsSemanticDiagnostics : true ,
378
389
affectsEmit : true ,
379
390
isCommandLineOnly : true ,
380
- description : Diagnostics . Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing
391
+ description : Diagnostics . Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing ,
392
+ defaultValueDescription : "false" ,
381
393
} ,
382
394
383
395
// Basic
@@ -499,7 +511,6 @@ namespace ts {
499
511
category : Diagnostics . Emit ,
500
512
description : Diagnostics . Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output ,
501
513
transpileOptionValue : undefined ,
502
- defaultValueDescription : "n/a"
503
514
} ,
504
515
{
505
516
name : "outDir" ,
@@ -510,7 +521,6 @@ namespace ts {
510
521
showInSimplifiedHelpView : true ,
511
522
category : Diagnostics . Emit ,
512
523
description : Diagnostics . Specify_an_output_folder_for_all_emitted_files ,
513
- defaultValueDescription : "n/a"
514
524
} ,
515
525
{
516
526
name : "rootDir" ,
@@ -668,6 +678,7 @@ namespace ts {
668
678
strictFlag : true ,
669
679
category : Diagnostics . Type_Checking ,
670
680
description : Diagnostics . Type_catch_clause_variables_as_unknown_instead_of_any ,
681
+ defaultValueDescription : "false" ,
671
682
} ,
672
683
{
673
684
name : "alwaysStrict" ,
@@ -701,7 +712,8 @@ namespace ts {
701
712
type : "boolean" ,
702
713
affectsSemanticDiagnostics : true ,
703
714
category : Diagnostics . Type_Checking ,
704
- description : Diagnostics . Interpret_optional_property_types_as_written_rather_than_adding_undefined
715
+ description : Diagnostics . Interpret_optional_property_types_as_written_rather_than_adding_undefined ,
716
+ defaultValueDescription : "false" ,
705
717
} ,
706
718
{
707
719
name : "noImplicitReturns" ,
@@ -717,21 +729,24 @@ namespace ts {
717
729
affectsBindDiagnostics : true ,
718
730
affectsSemanticDiagnostics : true ,
719
731
category : Diagnostics . Type_Checking ,
720
- description : Diagnostics . Enable_error_reporting_for_fallthrough_cases_in_switch_statements
732
+ description : Diagnostics . Enable_error_reporting_for_fallthrough_cases_in_switch_statements ,
733
+ defaultValueDescription : "false" ,
721
734
} ,
722
735
{
723
736
name : "noUncheckedIndexedAccess" ,
724
737
type : "boolean" ,
725
738
affectsSemanticDiagnostics : true ,
726
739
category : Diagnostics . Type_Checking ,
727
- description : Diagnostics . Include_undefined_in_index_signature_results
740
+ description : Diagnostics . Include_undefined_in_index_signature_results ,
741
+ defaultValueDescription : "false" ,
728
742
} ,
729
743
{
730
744
name : "noImplicitOverride" ,
731
745
type : "boolean" ,
732
746
affectsSemanticDiagnostics : true ,
733
747
category : Diagnostics . Type_Checking ,
734
- description : Diagnostics . Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier
748
+ description : Diagnostics . Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier ,
749
+ defaultValueDescription : "false" ,
735
750
} ,
736
751
{
737
752
name : "noPropertyAccessFromIndexSignature" ,
@@ -841,7 +856,7 @@ namespace ts {
841
856
type : "boolean" ,
842
857
category : Diagnostics . Interop_Constraints ,
843
858
description : Diagnostics . Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node ,
844
- defaultValueDescription : "n/a"
859
+ defaultValueDescription : "false" ,
845
860
} ,
846
861
{
847
862
name : "allowUmdGlobalAccess" ,
@@ -892,15 +907,17 @@ namespace ts {
892
907
type : "boolean" ,
893
908
affectsSemanticDiagnostics : true ,
894
909
category : Diagnostics . Language_and_Environment ,
895
- description : Diagnostics . Enable_experimental_support_for_TC39_stage_2_draft_decorators
910
+ description : Diagnostics . Enable_experimental_support_for_TC39_stage_2_draft_decorators ,
911
+ defaultValueDescription : "false" ,
896
912
} ,
897
913
{
898
914
name : "emitDecoratorMetadata" ,
899
915
type : "boolean" ,
900
916
affectsSemanticDiagnostics : true ,
901
917
affectsEmit : true ,
902
918
category : Diagnostics . Language_and_Environment ,
903
- description : Diagnostics . Emit_design_type_metadata_for_decorated_declarations_in_source_files
919
+ description : Diagnostics . Emit_design_type_metadata_for_decorated_declarations_in_source_files ,
920
+ defaultValueDescription : "false" ,
904
921
} ,
905
922
906
923
// Advanced
@@ -945,7 +962,6 @@ namespace ts {
945
962
category : Diagnostics . Backwards_Compatibility ,
946
963
paramType : Diagnostics . FILE ,
947
964
transpileOptionValue : undefined ,
948
- defaultValueDescription : "n/a" ,
949
965
description : Diagnostics . Deprecated_setting_Use_outFile_instead ,
950
966
} ,
951
967
{
@@ -1026,6 +1042,7 @@ namespace ts {
1026
1042
affectsEmit : true ,
1027
1043
category : Diagnostics . Emit ,
1028
1044
description : Diagnostics . Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments ,
1045
+ defaultValueDescription : "false" ,
1029
1046
} ,
1030
1047
{
1031
1048
name : "disableSizeLimit" ,
@@ -1040,21 +1057,24 @@ namespace ts {
1040
1057
type : "boolean" ,
1041
1058
isTSConfigOnly : true ,
1042
1059
category : Diagnostics . Projects ,
1043
- description : Diagnostics . Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects
1060
+ description : Diagnostics . Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects ,
1061
+ defaultValueDescription : "false" ,
1044
1062
} ,
1045
1063
{
1046
1064
name : "disableSolutionSearching" ,
1047
1065
type : "boolean" ,
1048
1066
isTSConfigOnly : true ,
1049
1067
category : Diagnostics . Projects ,
1050
- description : Diagnostics . Opt_a_project_out_of_multi_project_reference_checking_when_editing
1068
+ description : Diagnostics . Opt_a_project_out_of_multi_project_reference_checking_when_editing ,
1069
+ defaultValueDescription : "false" ,
1051
1070
} ,
1052
1071
{
1053
1072
name : "disableReferencedProjectLoad" ,
1054
1073
type : "boolean" ,
1055
1074
isTSConfigOnly : true ,
1056
1075
category : Diagnostics . Projects ,
1057
- description : Diagnostics . Reduce_the_number_of_projects_loaded_automatically_by_TypeScript
1076
+ description : Diagnostics . Reduce_the_number_of_projects_loaded_automatically_by_TypeScript ,
1077
+ defaultValueDescription : "false" ,
1058
1078
} ,
1059
1079
{
1060
1080
name : "noImplicitUseStrict" ,
@@ -1087,7 +1107,7 @@ namespace ts {
1087
1107
affectsEmit : true ,
1088
1108
category : Diagnostics . Emit ,
1089
1109
description : Diagnostics . Disable_erasing_const_enum_declarations_in_generated_code ,
1090
- defaultValueDescription : "n/a"
1110
+ defaultValueDescription : "false" ,
1091
1111
} ,
1092
1112
{
1093
1113
name : "declarationDir" ,
@@ -1098,7 +1118,6 @@ namespace ts {
1098
1118
category : Diagnostics . Emit ,
1099
1119
transpileOptionValue : undefined ,
1100
1120
description : Diagnostics . Specify_the_output_directory_for_generated_declaration_files ,
1101
- defaultValueDescription : "n/a"
1102
1121
} ,
1103
1122
{
1104
1123
name : "skipLibCheck" ,
@@ -1180,6 +1199,7 @@ namespace ts {
1180
1199
affectsEmit : true ,
1181
1200
category : Diagnostics . Emit ,
1182
1201
description : Diagnostics . Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed ,
1202
+ defaultValueDescription : "false" ,
1183
1203
} ,
1184
1204
1185
1205
{
@@ -1242,27 +1262,31 @@ namespace ts {
1242
1262
shortName : "v" ,
1243
1263
category : Diagnostics . Command_line_Options ,
1244
1264
description : Diagnostics . Enable_verbose_logging ,
1245
- type : "boolean"
1265
+ type : "boolean" ,
1266
+ defaultValueDescription : "false" ,
1246
1267
} ,
1247
1268
{
1248
1269
name : "dry" ,
1249
1270
shortName : "d" ,
1250
1271
category : Diagnostics . Command_line_Options ,
1251
1272
description : Diagnostics . Show_what_would_be_built_or_deleted_if_specified_with_clean ,
1252
- type : "boolean"
1273
+ type : "boolean" ,
1274
+ defaultValueDescription : "false" ,
1253
1275
} ,
1254
1276
{
1255
1277
name : "force" ,
1256
1278
shortName : "f" ,
1257
1279
category : Diagnostics . Command_line_Options ,
1258
1280
description : Diagnostics . Build_all_projects_including_those_that_appear_to_be_up_to_date ,
1259
- type : "boolean"
1281
+ type : "boolean" ,
1282
+ defaultValueDescription : "false" ,
1260
1283
} ,
1261
1284
{
1262
1285
name : "clean" ,
1263
1286
category : Diagnostics . Command_line_Options ,
1264
1287
description : Diagnostics . Delete_the_outputs_of_all_projects ,
1265
- type : "boolean"
1288
+ type : "boolean" ,
1289
+ defaultValueDescription : "false" ,
1266
1290
}
1267
1291
] ;
1268
1292
@@ -1280,10 +1304,12 @@ namespace ts {
1280
1304
*/
1281
1305
name : "enableAutoDiscovery" ,
1282
1306
type : "boolean" ,
1307
+ defaultValueDescription : "false" ,
1283
1308
} ,
1284
1309
{
1285
1310
name : "enable" ,
1286
1311
type : "boolean" ,
1312
+ defaultValueDescription : "false" ,
1287
1313
} ,
1288
1314
{
1289
1315
name : "include" ,
@@ -1304,6 +1330,7 @@ namespace ts {
1304
1330
{
1305
1331
name : "disableFilenameBasedTypeAcquisition" ,
1306
1332
type : "boolean" ,
1333
+ defaultValueDescription : "false" ,
1307
1334
} ,
1308
1335
] ;
1309
1336
@@ -2285,7 +2312,7 @@ namespace ts {
2285
2312
return getCustomTypeMapOfCommandLineOption ( optionDefinition . element ) ;
2286
2313
}
2287
2314
else {
2288
- return ( optionDefinition as CommandLineOptionOfCustomType ) . type ;
2315
+ return optionDefinition . type ;
2289
2316
}
2290
2317
}
2291
2318
0 commit comments