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,13 +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 ,
204
+ defaultValueDescription : "false" ,
200
205
} ,
201
206
{
202
207
name : "listFiles" ,
@@ -209,7 +214,8 @@ namespace ts {
209
214
name : "explainFiles" ,
210
215
type : "boolean" ,
211
216
category : Diagnostics . Compiler_Diagnostics ,
212
- 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" ,
213
219
} ,
214
220
{
215
221
name : "listEmittedFiles" ,
@@ -280,7 +286,8 @@ namespace ts {
280
286
affectsSemanticDiagnostics : true ,
281
287
affectsEmit : true ,
282
288
category : Diagnostics . Watch_and_Build_Modes ,
283
- 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" ,
284
291
} ,
285
292
{
286
293
name : "locale" ,
@@ -327,6 +334,7 @@ namespace ts {
327
334
showInSimplifiedHelpView : true ,
328
335
category : Diagnostics . Command_line_Options ,
329
336
description : Diagnostics . Show_all_compiler_options ,
337
+ defaultValueDescription : "false" ,
330
338
} ,
331
339
{
332
340
name : "version" ,
@@ -335,13 +343,15 @@ namespace ts {
335
343
showInSimplifiedHelpView : true ,
336
344
category : Diagnostics . Command_line_Options ,
337
345
description : Diagnostics . Print_the_compiler_s_version ,
346
+ defaultValueDescription : "false" ,
338
347
} ,
339
348
{
340
349
name : "init" ,
341
350
type : "boolean" ,
342
351
showInSimplifiedHelpView : true ,
343
352
category : Diagnostics . Command_line_Options ,
344
353
description : Diagnostics . Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file ,
354
+ defaultValueDescription : "false" ,
345
355
} ,
346
356
{
347
357
name : "project" ,
@@ -359,15 +369,17 @@ namespace ts {
359
369
shortName : "b" ,
360
370
showInSimplifiedHelpView : true ,
361
371
category : Diagnostics . Command_line_Options ,
362
- 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" ,
363
374
} ,
364
375
{
365
376
name : "showConfig" ,
366
377
type : "boolean" ,
367
378
showInSimplifiedHelpView : true ,
368
379
category : Diagnostics . Command_line_Options ,
369
380
isCommandLineOnly : true ,
370
- description : Diagnostics . Print_the_final_configuration_instead_of_building
381
+ description : Diagnostics . Print_the_final_configuration_instead_of_building ,
382
+ defaultValueDescription : "false" ,
371
383
} ,
372
384
{
373
385
name : "listFilesOnly" ,
@@ -376,7 +388,8 @@ namespace ts {
376
388
affectsSemanticDiagnostics : true ,
377
389
affectsEmit : true ,
378
390
isCommandLineOnly : true ,
379
- 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" ,
380
393
} ,
381
394
382
395
// Basic
@@ -665,6 +678,7 @@ namespace ts {
665
678
strictFlag : true ,
666
679
category : Diagnostics . Type_Checking ,
667
680
description : Diagnostics . Type_catch_clause_variables_as_unknown_instead_of_any ,
681
+ defaultValueDescription : "false" ,
668
682
} ,
669
683
{
670
684
name : "alwaysStrict" ,
@@ -698,7 +712,8 @@ namespace ts {
698
712
type : "boolean" ,
699
713
affectsSemanticDiagnostics : true ,
700
714
category : Diagnostics . Type_Checking ,
701
- 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" ,
702
717
} ,
703
718
{
704
719
name : "noImplicitReturns" ,
@@ -714,21 +729,24 @@ namespace ts {
714
729
affectsBindDiagnostics : true ,
715
730
affectsSemanticDiagnostics : true ,
716
731
category : Diagnostics . Type_Checking ,
717
- 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" ,
718
734
} ,
719
735
{
720
736
name : "noUncheckedIndexedAccess" ,
721
737
type : "boolean" ,
722
738
affectsSemanticDiagnostics : true ,
723
739
category : Diagnostics . Type_Checking ,
724
- description : Diagnostics . Include_undefined_in_index_signature_results
740
+ description : Diagnostics . Include_undefined_in_index_signature_results ,
741
+ defaultValueDescription : "false" ,
725
742
} ,
726
743
{
727
744
name : "noImplicitOverride" ,
728
745
type : "boolean" ,
729
746
affectsSemanticDiagnostics : true ,
730
747
category : Diagnostics . Type_Checking ,
731
- 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" ,
732
750
} ,
733
751
{
734
752
name : "noPropertyAccessFromIndexSignature" ,
@@ -838,6 +856,7 @@ namespace ts {
838
856
type : "boolean" ,
839
857
category : Diagnostics . Interop_Constraints ,
840
858
description : Diagnostics . Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node ,
859
+ defaultValueDescription : "false" ,
841
860
} ,
842
861
{
843
862
name : "allowUmdGlobalAccess" ,
@@ -888,15 +907,17 @@ namespace ts {
888
907
type : "boolean" ,
889
908
affectsSemanticDiagnostics : true ,
890
909
category : Diagnostics . Language_and_Environment ,
891
- 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" ,
892
912
} ,
893
913
{
894
914
name : "emitDecoratorMetadata" ,
895
915
type : "boolean" ,
896
916
affectsSemanticDiagnostics : true ,
897
917
affectsEmit : true ,
898
918
category : Diagnostics . Language_and_Environment ,
899
- 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" ,
900
921
} ,
901
922
902
923
// Advanced
@@ -1021,6 +1042,7 @@ namespace ts {
1021
1042
affectsEmit : true ,
1022
1043
category : Diagnostics . Emit ,
1023
1044
description : Diagnostics . Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments ,
1045
+ defaultValueDescription : "false" ,
1024
1046
} ,
1025
1047
{
1026
1048
name : "disableSizeLimit" ,
@@ -1035,21 +1057,24 @@ namespace ts {
1035
1057
type : "boolean" ,
1036
1058
isTSConfigOnly : true ,
1037
1059
category : Diagnostics . Projects ,
1038
- 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" ,
1039
1062
} ,
1040
1063
{
1041
1064
name : "disableSolutionSearching" ,
1042
1065
type : "boolean" ,
1043
1066
isTSConfigOnly : true ,
1044
1067
category : Diagnostics . Projects ,
1045
- 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" ,
1046
1070
} ,
1047
1071
{
1048
1072
name : "disableReferencedProjectLoad" ,
1049
1073
type : "boolean" ,
1050
1074
isTSConfigOnly : true ,
1051
1075
category : Diagnostics . Projects ,
1052
- 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" ,
1053
1078
} ,
1054
1079
{
1055
1080
name : "noImplicitUseStrict" ,
@@ -1082,6 +1107,7 @@ namespace ts {
1082
1107
affectsEmit : true ,
1083
1108
category : Diagnostics . Emit ,
1084
1109
description : Diagnostics . Disable_erasing_const_enum_declarations_in_generated_code ,
1110
+ defaultValueDescription : "false" ,
1085
1111
} ,
1086
1112
{
1087
1113
name : "declarationDir" ,
@@ -1173,6 +1199,7 @@ namespace ts {
1173
1199
affectsEmit : true ,
1174
1200
category : Diagnostics . Emit ,
1175
1201
description : Diagnostics . Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed ,
1202
+ defaultValueDescription : "false" ,
1176
1203
} ,
1177
1204
1178
1205
{
@@ -1235,27 +1262,31 @@ namespace ts {
1235
1262
shortName : "v" ,
1236
1263
category : Diagnostics . Command_line_Options ,
1237
1264
description : Diagnostics . Enable_verbose_logging ,
1238
- type : "boolean"
1265
+ type : "boolean" ,
1266
+ defaultValueDescription : "false" ,
1239
1267
} ,
1240
1268
{
1241
1269
name : "dry" ,
1242
1270
shortName : "d" ,
1243
1271
category : Diagnostics . Command_line_Options ,
1244
1272
description : Diagnostics . Show_what_would_be_built_or_deleted_if_specified_with_clean ,
1245
- type : "boolean"
1273
+ type : "boolean" ,
1274
+ defaultValueDescription : "false" ,
1246
1275
} ,
1247
1276
{
1248
1277
name : "force" ,
1249
1278
shortName : "f" ,
1250
1279
category : Diagnostics . Command_line_Options ,
1251
1280
description : Diagnostics . Build_all_projects_including_those_that_appear_to_be_up_to_date ,
1252
- type : "boolean"
1281
+ type : "boolean" ,
1282
+ defaultValueDescription : "false" ,
1253
1283
} ,
1254
1284
{
1255
1285
name : "clean" ,
1256
1286
category : Diagnostics . Command_line_Options ,
1257
1287
description : Diagnostics . Delete_the_outputs_of_all_projects ,
1258
- type : "boolean"
1288
+ type : "boolean" ,
1289
+ defaultValueDescription : "false" ,
1259
1290
}
1260
1291
] ;
1261
1292
@@ -1273,10 +1304,12 @@ namespace ts {
1273
1304
*/
1274
1305
name : "enableAutoDiscovery" ,
1275
1306
type : "boolean" ,
1307
+ defaultValueDescription : "false" ,
1276
1308
} ,
1277
1309
{
1278
1310
name : "enable" ,
1279
1311
type : "boolean" ,
1312
+ defaultValueDescription : "false" ,
1280
1313
} ,
1281
1314
{
1282
1315
name : "include" ,
@@ -1297,6 +1330,7 @@ namespace ts {
1297
1330
{
1298
1331
name : "disableFilenameBasedTypeAcquisition" ,
1299
1332
type : "boolean" ,
1333
+ defaultValueDescription : "false" ,
1300
1334
} ,
1301
1335
] ;
1302
1336
0 commit comments