typescript 4.6.0-dev.20211201 → 4.6.0-dev.20211202

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/tsc.js CHANGED
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  var ts;
70
70
  (function (ts) {
71
71
  ts.versionMajorMinor = "4.6";
72
- ts.version = ts.versionMajorMinor + ".0-dev.20211201";
72
+ ts.version = ts.versionMajorMinor + ".0-dev.20211202";
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  function tryGetNativeMap() {
@@ -30696,7 +30696,11 @@ var ts;
30696
30696
  })(ts || (ts = {}));
30697
30697
  var ts;
30698
30698
  (function (ts) {
30699
- ts.compileOnSaveCommandLineOption = { name: "compileOnSave", type: "boolean", defaultValueDescription: "false" };
30699
+ ts.compileOnSaveCommandLineOption = {
30700
+ name: "compileOnSave",
30701
+ type: "boolean",
30702
+ defaultValueDescription: false,
30703
+ };
30700
30704
  var jsxOptionMap = new ts.Map(ts.getEntries({
30701
30705
  "preserve": 1,
30702
30706
  "react-native": 3,
@@ -30789,6 +30793,7 @@ var ts;
30789
30793
  })),
30790
30794
  category: ts.Diagnostics.Watch_and_Build_Modes,
30791
30795
  description: ts.Diagnostics.Specify_how_the_TypeScript_watch_mode_works,
30796
+ defaultValueDescription: ts.WatchFileKind.UseFsEvents,
30792
30797
  },
30793
30798
  {
30794
30799
  name: "watchDirectory",
@@ -30800,6 +30805,7 @@ var ts;
30800
30805
  })),
30801
30806
  category: ts.Diagnostics.Watch_and_Build_Modes,
30802
30807
  description: ts.Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,
30808
+ defaultValueDescription: ts.WatchDirectoryKind.UseFsEvents,
30803
30809
  },
30804
30810
  {
30805
30811
  name: "fallbackPolling",
@@ -30811,13 +30817,14 @@ var ts;
30811
30817
  })),
30812
30818
  category: ts.Diagnostics.Watch_and_Build_Modes,
30813
30819
  description: ts.Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,
30820
+ defaultValueDescription: ts.PollingWatchKind.PriorityInterval,
30814
30821
  },
30815
30822
  {
30816
30823
  name: "synchronousWatchDirectory",
30817
30824
  type: "boolean",
30818
30825
  category: ts.Diagnostics.Watch_and_Build_Modes,
30819
30826
  description: ts.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,
30820
- defaultValueDescription: "false",
30827
+ defaultValueDescription: false,
30821
30828
  },
30822
30829
  {
30823
30830
  name: "excludeDirectories",
@@ -30852,13 +30859,13 @@ var ts;
30852
30859
  showInSimplifiedHelpView: true,
30853
30860
  category: ts.Diagnostics.Command_line_Options,
30854
30861
  description: ts.Diagnostics.Print_this_message,
30855
- defaultValueDescription: "false",
30862
+ defaultValueDescription: false,
30856
30863
  },
30857
30864
  {
30858
30865
  name: "help",
30859
30866
  shortName: "?",
30860
30867
  type: "boolean",
30861
- defaultValueDescription: "false",
30868
+ defaultValueDescription: false,
30862
30869
  },
30863
30870
  {
30864
30871
  name: "watch",
@@ -30868,7 +30875,7 @@ var ts;
30868
30875
  isCommandLineOnly: true,
30869
30876
  category: ts.Diagnostics.Command_line_Options,
30870
30877
  description: ts.Diagnostics.Watch_input_files,
30871
- defaultValueDescription: "false",
30878
+ defaultValueDescription: false,
30872
30879
  },
30873
30880
  {
30874
30881
  name: "preserveWatchOutput",
@@ -30876,28 +30883,28 @@ var ts;
30876
30883
  showInSimplifiedHelpView: false,
30877
30884
  category: ts.Diagnostics.Output_Formatting,
30878
30885
  description: ts.Diagnostics.Disable_wiping_the_console_in_watch_mode,
30879
- defaultValueDescription: "false",
30886
+ defaultValueDescription: false,
30880
30887
  },
30881
30888
  {
30882
30889
  name: "listFiles",
30883
30890
  type: "boolean",
30884
30891
  category: ts.Diagnostics.Compiler_Diagnostics,
30885
30892
  description: ts.Diagnostics.Print_all_of_the_files_read_during_the_compilation,
30886
- defaultValueDescription: "false"
30893
+ defaultValueDescription: false,
30887
30894
  },
30888
30895
  {
30889
30896
  name: "explainFiles",
30890
30897
  type: "boolean",
30891
30898
  category: ts.Diagnostics.Compiler_Diagnostics,
30892
30899
  description: ts.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included,
30893
- defaultValueDescription: "false",
30900
+ defaultValueDescription: false,
30894
30901
  },
30895
30902
  {
30896
30903
  name: "listEmittedFiles",
30897
30904
  type: "boolean",
30898
30905
  category: ts.Diagnostics.Compiler_Diagnostics,
30899
30906
  description: ts.Diagnostics.Print_the_names_of_emitted_files_after_a_compilation,
30900
- defaultValueDescription: "false"
30907
+ defaultValueDescription: false,
30901
30908
  },
30902
30909
  {
30903
30910
  name: "pretty",
@@ -30905,28 +30912,28 @@ var ts;
30905
30912
  showInSimplifiedHelpView: true,
30906
30913
  category: ts.Diagnostics.Output_Formatting,
30907
30914
  description: ts.Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,
30908
- defaultValueDescription: "true"
30915
+ defaultValueDescription: true,
30909
30916
  },
30910
30917
  {
30911
30918
  name: "traceResolution",
30912
30919
  type: "boolean",
30913
30920
  category: ts.Diagnostics.Compiler_Diagnostics,
30914
30921
  description: ts.Diagnostics.Log_paths_used_during_the_moduleResolution_process,
30915
- defaultValueDescription: "false"
30922
+ defaultValueDescription: false,
30916
30923
  },
30917
30924
  {
30918
30925
  name: "diagnostics",
30919
30926
  type: "boolean",
30920
30927
  category: ts.Diagnostics.Compiler_Diagnostics,
30921
30928
  description: ts.Diagnostics.Output_compiler_performance_information_after_building,
30922
- defaultValueDescription: "false"
30929
+ defaultValueDescription: false,
30923
30930
  },
30924
30931
  {
30925
30932
  name: "extendedDiagnostics",
30926
30933
  type: "boolean",
30927
30934
  category: ts.Diagnostics.Compiler_Diagnostics,
30928
30935
  description: ts.Diagnostics.Output_more_detailed_compiler_performance_information_after_building,
30929
- defaultValueDescription: "false"
30936
+ defaultValueDescription: false,
30930
30937
  },
30931
30938
  {
30932
30939
  name: "generateCpuProfile",
@@ -30962,7 +30969,7 @@ var ts;
30962
30969
  affectsEmit: true,
30963
30970
  category: ts.Diagnostics.Watch_and_Build_Modes,
30964
30971
  description: ts.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,
30965
- defaultValueDescription: "false",
30972
+ defaultValueDescription: false,
30966
30973
  },
30967
30974
  {
30968
30975
  name: "locale",
@@ -30997,7 +31004,7 @@ var ts;
30997
31004
  showInSimplifiedHelpView: true,
30998
31005
  category: ts.Diagnostics.Language_and_Environment,
30999
31006
  description: ts.Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,
31000
- defaultValueDescription: "ES3"
31007
+ defaultValueDescription: 0,
31001
31008
  };
31002
31009
  var commandOptionsWithoutBuild = [
31003
31010
  {
@@ -31006,7 +31013,7 @@ var ts;
31006
31013
  showInSimplifiedHelpView: true,
31007
31014
  category: ts.Diagnostics.Command_line_Options,
31008
31015
  description: ts.Diagnostics.Show_all_compiler_options,
31009
- defaultValueDescription: "false",
31016
+ defaultValueDescription: false,
31010
31017
  },
31011
31018
  {
31012
31019
  name: "version",
@@ -31015,7 +31022,7 @@ var ts;
31015
31022
  showInSimplifiedHelpView: true,
31016
31023
  category: ts.Diagnostics.Command_line_Options,
31017
31024
  description: ts.Diagnostics.Print_the_compiler_s_version,
31018
- defaultValueDescription: "false",
31025
+ defaultValueDescription: false,
31019
31026
  },
31020
31027
  {
31021
31028
  name: "init",
@@ -31023,7 +31030,7 @@ var ts;
31023
31030
  showInSimplifiedHelpView: true,
31024
31031
  category: ts.Diagnostics.Command_line_Options,
31025
31032
  description: ts.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,
31026
- defaultValueDescription: "false",
31033
+ defaultValueDescription: false,
31027
31034
  },
31028
31035
  {
31029
31036
  name: "project",
@@ -31042,7 +31049,7 @@ var ts;
31042
31049
  showInSimplifiedHelpView: true,
31043
31050
  category: ts.Diagnostics.Command_line_Options,
31044
31051
  description: ts.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,
31045
- defaultValueDescription: "false",
31052
+ defaultValueDescription: false,
31046
31053
  },
31047
31054
  {
31048
31055
  name: "showConfig",
@@ -31051,7 +31058,7 @@ var ts;
31051
31058
  category: ts.Diagnostics.Command_line_Options,
31052
31059
  isCommandLineOnly: true,
31053
31060
  description: ts.Diagnostics.Print_the_final_configuration_instead_of_building,
31054
- defaultValueDescription: "false",
31061
+ defaultValueDescription: false,
31055
31062
  },
31056
31063
  {
31057
31064
  name: "listFilesOnly",
@@ -31061,7 +31068,7 @@ var ts;
31061
31068
  affectsEmit: true,
31062
31069
  isCommandLineOnly: true,
31063
31070
  description: ts.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,
31064
- defaultValueDescription: "false",
31071
+ defaultValueDescription: false,
31065
31072
  },
31066
31073
  ts.targetOptionDeclaration,
31067
31074
  {
@@ -31087,13 +31094,15 @@ var ts;
31087
31094
  showInSimplifiedHelpView: true,
31088
31095
  category: ts.Diagnostics.Modules,
31089
31096
  description: ts.Diagnostics.Specify_what_module_code_is_generated,
31097
+ defaultValueDescription: undefined,
31090
31098
  },
31091
31099
  {
31092
31100
  name: "lib",
31093
31101
  type: "list",
31094
31102
  element: {
31095
31103
  name: "lib",
31096
- type: ts.libMap
31104
+ type: ts.libMap,
31105
+ defaultValueDescription: undefined,
31097
31106
  },
31098
31107
  affectsProgramStructure: true,
31099
31108
  showInSimplifiedHelpView: true,
@@ -31108,7 +31117,7 @@ var ts;
31108
31117
  showInSimplifiedHelpView: true,
31109
31118
  category: ts.Diagnostics.JavaScript_Support,
31110
31119
  description: ts.Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,
31111
- defaultValueDescription: "false"
31120
+ defaultValueDescription: false,
31112
31121
  },
31113
31122
  {
31114
31123
  name: "checkJs",
@@ -31116,7 +31125,7 @@ var ts;
31116
31125
  showInSimplifiedHelpView: true,
31117
31126
  category: ts.Diagnostics.JavaScript_Support,
31118
31127
  description: ts.Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,
31119
- defaultValueDescription: "false"
31128
+ defaultValueDescription: false,
31120
31129
  },
31121
31130
  {
31122
31131
  name: "jsx",
@@ -31128,7 +31137,7 @@ var ts;
31128
31137
  showInSimplifiedHelpView: true,
31129
31138
  category: ts.Diagnostics.Language_and_Environment,
31130
31139
  description: ts.Diagnostics.Specify_what_JSX_code_is_generated,
31131
- defaultValueDescription: "undefined"
31140
+ defaultValueDescription: undefined,
31132
31141
  },
31133
31142
  {
31134
31143
  name: "declaration",
@@ -31148,7 +31157,7 @@ var ts;
31148
31157
  showInSimplifiedHelpView: true,
31149
31158
  category: ts.Diagnostics.Emit,
31150
31159
  transpileOptionValue: undefined,
31151
- defaultValueDescription: "false",
31160
+ defaultValueDescription: false,
31152
31161
  description: ts.Diagnostics.Create_sourcemaps_for_d_ts_files
31153
31162
  },
31154
31163
  {
@@ -31159,7 +31168,7 @@ var ts;
31159
31168
  category: ts.Diagnostics.Emit,
31160
31169
  description: ts.Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,
31161
31170
  transpileOptionValue: undefined,
31162
- defaultValueDescription: "false",
31171
+ defaultValueDescription: false,
31163
31172
  },
31164
31173
  {
31165
31174
  name: "sourceMap",
@@ -31167,7 +31176,7 @@ var ts;
31167
31176
  affectsEmit: true,
31168
31177
  showInSimplifiedHelpView: true,
31169
31178
  category: ts.Diagnostics.Emit,
31170
- defaultValueDescription: "false",
31179
+ defaultValueDescription: false,
31171
31180
  description: ts.Diagnostics.Create_source_map_files_for_emitted_JavaScript_files,
31172
31181
  },
31173
31182
  {
@@ -31208,7 +31217,7 @@ var ts;
31208
31217
  isTSConfigOnly: true,
31209
31218
  category: ts.Diagnostics.Projects,
31210
31219
  transpileOptionValue: undefined,
31211
- defaultValueDescription: "false",
31220
+ defaultValueDescription: false,
31212
31221
  description: ts.Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references,
31213
31222
  },
31214
31223
  {
@@ -31228,7 +31237,7 @@ var ts;
31228
31237
  affectsEmit: true,
31229
31238
  showInSimplifiedHelpView: true,
31230
31239
  category: ts.Diagnostics.Emit,
31231
- defaultValueDescription: "false",
31240
+ defaultValueDescription: false,
31232
31241
  description: ts.Diagnostics.Disable_emitting_comments,
31233
31242
  },
31234
31243
  {
@@ -31238,7 +31247,7 @@ var ts;
31238
31247
  category: ts.Diagnostics.Emit,
31239
31248
  description: ts.Diagnostics.Disable_emitting_files_from_a_compilation,
31240
31249
  transpileOptionValue: undefined,
31241
- defaultValueDescription: "false"
31250
+ defaultValueDescription: false,
31242
31251
  },
31243
31252
  {
31244
31253
  name: "importHelpers",
@@ -31246,7 +31255,7 @@ var ts;
31246
31255
  affectsEmit: true,
31247
31256
  category: ts.Diagnostics.Emit,
31248
31257
  description: ts.Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,
31249
- defaultValueDescription: "false"
31258
+ defaultValueDescription: false,
31250
31259
  },
31251
31260
  {
31252
31261
  name: "importsNotUsedAsValues",
@@ -31258,7 +31267,8 @@ var ts;
31258
31267
  affectsEmit: true,
31259
31268
  affectsSemanticDiagnostics: true,
31260
31269
  category: ts.Diagnostics.Emit,
31261
- description: ts.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types
31270
+ description: ts.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,
31271
+ defaultValueDescription: 0,
31262
31272
  },
31263
31273
  {
31264
31274
  name: "downlevelIteration",
@@ -31266,7 +31276,7 @@ var ts;
31266
31276
  affectsEmit: true,
31267
31277
  category: ts.Diagnostics.Emit,
31268
31278
  description: ts.Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,
31269
- defaultValueDescription: "false"
31279
+ defaultValueDescription: false,
31270
31280
  },
31271
31281
  {
31272
31282
  name: "isolatedModules",
@@ -31274,7 +31284,7 @@ var ts;
31274
31284
  category: ts.Diagnostics.Interop_Constraints,
31275
31285
  description: ts.Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,
31276
31286
  transpileOptionValue: true,
31277
- defaultValueDescription: "false"
31287
+ defaultValueDescription: false,
31278
31288
  },
31279
31289
  {
31280
31290
  name: "strict",
@@ -31282,7 +31292,7 @@ var ts;
31282
31292
  showInSimplifiedHelpView: true,
31283
31293
  category: ts.Diagnostics.Type_Checking,
31284
31294
  description: ts.Diagnostics.Enable_all_strict_type_checking_options,
31285
- defaultValueDescription: "false"
31295
+ defaultValueDescription: false,
31286
31296
  },
31287
31297
  {
31288
31298
  name: "noImplicitAny",
@@ -31343,7 +31353,7 @@ var ts;
31343
31353
  strictFlag: true,
31344
31354
  category: ts.Diagnostics.Type_Checking,
31345
31355
  description: ts.Diagnostics.Type_catch_clause_variables_as_unknown_instead_of_any,
31346
- defaultValueDescription: "false",
31356
+ defaultValueDescription: false,
31347
31357
  },
31348
31358
  {
31349
31359
  name: "alwaysStrict",
@@ -31360,7 +31370,7 @@ var ts;
31360
31370
  affectsSemanticDiagnostics: true,
31361
31371
  category: ts.Diagnostics.Type_Checking,
31362
31372
  description: ts.Diagnostics.Enable_error_reporting_when_a_local_variables_aren_t_read,
31363
- defaultValueDescription: "false"
31373
+ defaultValueDescription: false,
31364
31374
  },
31365
31375
  {
31366
31376
  name: "noUnusedParameters",
@@ -31368,7 +31378,7 @@ var ts;
31368
31378
  affectsSemanticDiagnostics: true,
31369
31379
  category: ts.Diagnostics.Type_Checking,
31370
31380
  description: ts.Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read,
31371
- defaultValueDescription: "false"
31381
+ defaultValueDescription: false,
31372
31382
  },
31373
31383
  {
31374
31384
  name: "exactOptionalPropertyTypes",
@@ -31376,7 +31386,7 @@ var ts;
31376
31386
  affectsSemanticDiagnostics: true,
31377
31387
  category: ts.Diagnostics.Type_Checking,
31378
31388
  description: ts.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined,
31379
- defaultValueDescription: "false",
31389
+ defaultValueDescription: false,
31380
31390
  },
31381
31391
  {
31382
31392
  name: "noImplicitReturns",
@@ -31384,7 +31394,7 @@ var ts;
31384
31394
  affectsSemanticDiagnostics: true,
31385
31395
  category: ts.Diagnostics.Type_Checking,
31386
31396
  description: ts.Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,
31387
- defaultValueDescription: "false"
31397
+ defaultValueDescription: false,
31388
31398
  },
31389
31399
  {
31390
31400
  name: "noFallthroughCasesInSwitch",
@@ -31393,7 +31403,7 @@ var ts;
31393
31403
  affectsSemanticDiagnostics: true,
31394
31404
  category: ts.Diagnostics.Type_Checking,
31395
31405
  description: ts.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,
31396
- defaultValueDescription: "false",
31406
+ defaultValueDescription: false,
31397
31407
  },
31398
31408
  {
31399
31409
  name: "noUncheckedIndexedAccess",
@@ -31401,7 +31411,7 @@ var ts;
31401
31411
  affectsSemanticDiagnostics: true,
31402
31412
  category: ts.Diagnostics.Type_Checking,
31403
31413
  description: ts.Diagnostics.Include_undefined_in_index_signature_results,
31404
- defaultValueDescription: "false",
31414
+ defaultValueDescription: false,
31405
31415
  },
31406
31416
  {
31407
31417
  name: "noImplicitOverride",
@@ -31409,7 +31419,7 @@ var ts;
31409
31419
  affectsSemanticDiagnostics: true,
31410
31420
  category: ts.Diagnostics.Type_Checking,
31411
31421
  description: ts.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,
31412
- defaultValueDescription: "false",
31422
+ defaultValueDescription: false,
31413
31423
  },
31414
31424
  {
31415
31425
  name: "noPropertyAccessFromIndexSignature",
@@ -31417,7 +31427,7 @@ var ts;
31417
31427
  showInSimplifiedHelpView: false,
31418
31428
  category: ts.Diagnostics.Type_Checking,
31419
31429
  description: ts.Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,
31420
- defaultValueDescription: "false"
31430
+ defaultValueDescription: false,
31421
31431
  },
31422
31432
  {
31423
31433
  name: "moduleResolution",
@@ -31506,14 +31516,14 @@ var ts;
31506
31516
  showInSimplifiedHelpView: true,
31507
31517
  category: ts.Diagnostics.Interop_Constraints,
31508
31518
  description: ts.Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,
31509
- defaultValueDescription: "false"
31519
+ defaultValueDescription: false,
31510
31520
  },
31511
31521
  {
31512
31522
  name: "preserveSymlinks",
31513
31523
  type: "boolean",
31514
31524
  category: ts.Diagnostics.Interop_Constraints,
31515
31525
  description: ts.Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,
31516
- defaultValueDescription: "false",
31526
+ defaultValueDescription: false,
31517
31527
  },
31518
31528
  {
31519
31529
  name: "allowUmdGlobalAccess",
@@ -31521,7 +31531,7 @@ var ts;
31521
31531
  affectsSemanticDiagnostics: true,
31522
31532
  category: ts.Diagnostics.Modules,
31523
31533
  description: ts.Diagnostics.Allow_accessing_UMD_globals_from_modules,
31524
- defaultValueDescription: "false"
31534
+ defaultValueDescription: false,
31525
31535
  },
31526
31536
  {
31527
31537
  name: "sourceRoot",
@@ -31545,7 +31555,7 @@ var ts;
31545
31555
  affectsEmit: true,
31546
31556
  category: ts.Diagnostics.Emit,
31547
31557
  description: ts.Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,
31548
- defaultValueDescription: "false"
31558
+ defaultValueDescription: false,
31549
31559
  },
31550
31560
  {
31551
31561
  name: "inlineSources",
@@ -31553,7 +31563,7 @@ var ts;
31553
31563
  affectsEmit: true,
31554
31564
  category: ts.Diagnostics.Emit,
31555
31565
  description: ts.Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,
31556
- defaultValueDescription: "false"
31566
+ defaultValueDescription: false,
31557
31567
  },
31558
31568
  {
31559
31569
  name: "experimentalDecorators",
@@ -31561,7 +31571,7 @@ var ts;
31561
31571
  affectsSemanticDiagnostics: true,
31562
31572
  category: ts.Diagnostics.Language_and_Environment,
31563
31573
  description: ts.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators,
31564
- defaultValueDescription: "false",
31574
+ defaultValueDescription: false,
31565
31575
  },
31566
31576
  {
31567
31577
  name: "emitDecoratorMetadata",
@@ -31570,7 +31580,7 @@ var ts;
31570
31580
  affectsEmit: true,
31571
31581
  category: ts.Diagnostics.Language_and_Environment,
31572
31582
  description: ts.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files,
31573
- defaultValueDescription: "false",
31583
+ defaultValueDescription: false,
31574
31584
  },
31575
31585
  {
31576
31586
  name: "jsxFactory",
@@ -31601,7 +31611,7 @@ var ts;
31601
31611
  affectsModuleResolution: true,
31602
31612
  category: ts.Diagnostics.Modules,
31603
31613
  description: ts.Diagnostics.Enable_importing_json_files,
31604
- defaultValueDescription: "false"
31614
+ defaultValueDescription: false,
31605
31615
  },
31606
31616
  {
31607
31617
  name: "out",
@@ -31626,7 +31636,7 @@ var ts;
31626
31636
  type: "boolean",
31627
31637
  category: ts.Diagnostics.Completeness,
31628
31638
  description: ts.Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,
31629
- defaultValueDescription: "false",
31639
+ defaultValueDescription: false,
31630
31640
  },
31631
31641
  {
31632
31642
  name: "charset",
@@ -31641,7 +31651,7 @@ var ts;
31641
31651
  affectsEmit: true,
31642
31652
  category: ts.Diagnostics.Emit,
31643
31653
  description: ts.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,
31644
- defaultValueDescription: "false"
31654
+ defaultValueDescription: false,
31645
31655
  },
31646
31656
  {
31647
31657
  name: "newLine",
@@ -31661,7 +31671,7 @@ var ts;
31661
31671
  affectsSemanticDiagnostics: true,
31662
31672
  category: ts.Diagnostics.Output_Formatting,
31663
31673
  description: ts.Diagnostics.Disable_truncating_types_in_error_messages,
31664
- defaultValueDescription: "false"
31674
+ defaultValueDescription: false,
31665
31675
  },
31666
31676
  {
31667
31677
  name: "noLib",
@@ -31670,7 +31680,7 @@ var ts;
31670
31680
  affectsProgramStructure: true,
31671
31681
  description: ts.Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts,
31672
31682
  transpileOptionValue: true,
31673
- defaultValueDescription: "false"
31683
+ defaultValueDescription: false,
31674
31684
  },
31675
31685
  {
31676
31686
  name: "noResolve",
@@ -31679,7 +31689,7 @@ var ts;
31679
31689
  category: ts.Diagnostics.Modules,
31680
31690
  description: ts.Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,
31681
31691
  transpileOptionValue: true,
31682
- defaultValueDescription: "false"
31692
+ defaultValueDescription: false,
31683
31693
  },
31684
31694
  {
31685
31695
  name: "stripInternal",
@@ -31687,7 +31697,7 @@ var ts;
31687
31697
  affectsEmit: true,
31688
31698
  category: ts.Diagnostics.Emit,
31689
31699
  description: ts.Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,
31690
- defaultValueDescription: "false",
31700
+ defaultValueDescription: false,
31691
31701
  },
31692
31702
  {
31693
31703
  name: "disableSizeLimit",
@@ -31695,7 +31705,7 @@ var ts;
31695
31705
  affectsProgramStructure: true,
31696
31706
  category: ts.Diagnostics.Editor_Support,
31697
31707
  description: ts.Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,
31698
- defaultValueDescription: "false"
31708
+ defaultValueDescription: false,
31699
31709
  },
31700
31710
  {
31701
31711
  name: "disableSourceOfProjectReferenceRedirect",
@@ -31703,7 +31713,7 @@ var ts;
31703
31713
  isTSConfigOnly: true,
31704
31714
  category: ts.Diagnostics.Projects,
31705
31715
  description: ts.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,
31706
- defaultValueDescription: "false",
31716
+ defaultValueDescription: false,
31707
31717
  },
31708
31718
  {
31709
31719
  name: "disableSolutionSearching",
@@ -31711,7 +31721,7 @@ var ts;
31711
31721
  isTSConfigOnly: true,
31712
31722
  category: ts.Diagnostics.Projects,
31713
31723
  description: ts.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing,
31714
- defaultValueDescription: "false",
31724
+ defaultValueDescription: false,
31715
31725
  },
31716
31726
  {
31717
31727
  name: "disableReferencedProjectLoad",
@@ -31719,7 +31729,7 @@ var ts;
31719
31729
  isTSConfigOnly: true,
31720
31730
  category: ts.Diagnostics.Projects,
31721
31731
  description: ts.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,
31722
- defaultValueDescription: "false",
31732
+ defaultValueDescription: false,
31723
31733
  },
31724
31734
  {
31725
31735
  name: "noImplicitUseStrict",
@@ -31727,7 +31737,7 @@ var ts;
31727
31737
  affectsSemanticDiagnostics: true,
31728
31738
  category: ts.Diagnostics.Backwards_Compatibility,
31729
31739
  description: ts.Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,
31730
- defaultValueDescription: "false"
31740
+ defaultValueDescription: false,
31731
31741
  },
31732
31742
  {
31733
31743
  name: "noEmitHelpers",
@@ -31735,7 +31745,7 @@ var ts;
31735
31745
  affectsEmit: true,
31736
31746
  category: ts.Diagnostics.Emit,
31737
31747
  description: ts.Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,
31738
- defaultValueDescription: "false"
31748
+ defaultValueDescription: false,
31739
31749
  },
31740
31750
  {
31741
31751
  name: "noEmitOnError",
@@ -31744,7 +31754,7 @@ var ts;
31744
31754
  category: ts.Diagnostics.Emit,
31745
31755
  transpileOptionValue: undefined,
31746
31756
  description: ts.Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported,
31747
- defaultValueDescription: "false"
31757
+ defaultValueDescription: false,
31748
31758
  },
31749
31759
  {
31750
31760
  name: "preserveConstEnums",
@@ -31752,7 +31762,7 @@ var ts;
31752
31762
  affectsEmit: true,
31753
31763
  category: ts.Diagnostics.Emit,
31754
31764
  description: ts.Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,
31755
- defaultValueDescription: "false",
31765
+ defaultValueDescription: false,
31756
31766
  },
31757
31767
  {
31758
31768
  name: "declarationDir",
@@ -31769,7 +31779,7 @@ var ts;
31769
31779
  type: "boolean",
31770
31780
  category: ts.Diagnostics.Completeness,
31771
31781
  description: ts.Diagnostics.Skip_type_checking_all_d_ts_files,
31772
- defaultValueDescription: "false"
31782
+ defaultValueDescription: false,
31773
31783
  },
31774
31784
  {
31775
31785
  name: "allowUnusedLabels",
@@ -31778,7 +31788,7 @@ var ts;
31778
31788
  affectsSemanticDiagnostics: true,
31779
31789
  category: ts.Diagnostics.Type_Checking,
31780
31790
  description: ts.Diagnostics.Disable_error_reporting_for_unused_labels,
31781
- defaultValueDescription: "undefined"
31791
+ defaultValueDescription: undefined,
31782
31792
  },
31783
31793
  {
31784
31794
  name: "allowUnreachableCode",
@@ -31787,7 +31797,7 @@ var ts;
31787
31797
  affectsSemanticDiagnostics: true,
31788
31798
  category: ts.Diagnostics.Type_Checking,
31789
31799
  description: ts.Diagnostics.Disable_error_reporting_for_unreachable_code,
31790
- defaultValueDescription: "undefined"
31800
+ defaultValueDescription: undefined,
31791
31801
  },
31792
31802
  {
31793
31803
  name: "suppressExcessPropertyErrors",
@@ -31795,7 +31805,7 @@ var ts;
31795
31805
  affectsSemanticDiagnostics: true,
31796
31806
  category: ts.Diagnostics.Backwards_Compatibility,
31797
31807
  description: ts.Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,
31798
- defaultValueDescription: "false"
31808
+ defaultValueDescription: false,
31799
31809
  },
31800
31810
  {
31801
31811
  name: "suppressImplicitAnyIndexErrors",
@@ -31803,7 +31813,7 @@ var ts;
31803
31813
  affectsSemanticDiagnostics: true,
31804
31814
  category: ts.Diagnostics.Backwards_Compatibility,
31805
31815
  description: ts.Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,
31806
- defaultValueDescription: "false"
31816
+ defaultValueDescription: false,
31807
31817
  },
31808
31818
  {
31809
31819
  name: "forceConsistentCasingInFileNames",
@@ -31811,7 +31821,7 @@ var ts;
31811
31821
  affectsModuleResolution: true,
31812
31822
  category: ts.Diagnostics.Interop_Constraints,
31813
31823
  description: ts.Diagnostics.Ensure_that_casing_is_correct_in_imports,
31814
- defaultValueDescription: "false"
31824
+ defaultValueDescription: false,
31815
31825
  },
31816
31826
  {
31817
31827
  name: "maxNodeModuleJsDepth",
@@ -31819,7 +31829,7 @@ var ts;
31819
31829
  affectsModuleResolution: true,
31820
31830
  category: ts.Diagnostics.JavaScript_Support,
31821
31831
  description: ts.Diagnostics.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,
31822
- defaultValueDescription: "0"
31832
+ defaultValueDescription: 0,
31823
31833
  },
31824
31834
  {
31825
31835
  name: "noStrictGenericChecks",
@@ -31827,7 +31837,7 @@ var ts;
31827
31837
  affectsSemanticDiagnostics: true,
31828
31838
  category: ts.Diagnostics.Backwards_Compatibility,
31829
31839
  description: ts.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,
31830
- defaultValueDescription: "false"
31840
+ defaultValueDescription: false,
31831
31841
  },
31832
31842
  {
31833
31843
  name: "useDefineForClassFields",
@@ -31844,14 +31854,14 @@ var ts;
31844
31854
  affectsEmit: true,
31845
31855
  category: ts.Diagnostics.Emit,
31846
31856
  description: ts.Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,
31847
- defaultValueDescription: "false",
31857
+ defaultValueDescription: false,
31848
31858
  },
31849
31859
  {
31850
31860
  name: "keyofStringsOnly",
31851
31861
  type: "boolean",
31852
31862
  category: ts.Diagnostics.Backwards_Compatibility,
31853
31863
  description: ts.Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,
31854
- defaultValueDescription: "false"
31864
+ defaultValueDescription: false,
31855
31865
  },
31856
31866
  {
31857
31867
  name: "plugins",
@@ -31883,7 +31893,7 @@ var ts;
31883
31893
  category: ts.Diagnostics.Command_line_Options,
31884
31894
  description: ts.Diagnostics.Enable_verbose_logging,
31885
31895
  type: "boolean",
31886
- defaultValueDescription: "false",
31896
+ defaultValueDescription: false,
31887
31897
  },
31888
31898
  {
31889
31899
  name: "dry",
@@ -31891,7 +31901,7 @@ var ts;
31891
31901
  category: ts.Diagnostics.Command_line_Options,
31892
31902
  description: ts.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,
31893
31903
  type: "boolean",
31894
- defaultValueDescription: "false",
31904
+ defaultValueDescription: false,
31895
31905
  },
31896
31906
  {
31897
31907
  name: "force",
@@ -31899,14 +31909,14 @@ var ts;
31899
31909
  category: ts.Diagnostics.Command_line_Options,
31900
31910
  description: ts.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,
31901
31911
  type: "boolean",
31902
- defaultValueDescription: "false",
31912
+ defaultValueDescription: false,
31903
31913
  },
31904
31914
  {
31905
31915
  name: "clean",
31906
31916
  category: ts.Diagnostics.Command_line_Options,
31907
31917
  description: ts.Diagnostics.Delete_the_outputs_of_all_projects,
31908
31918
  type: "boolean",
31909
- defaultValueDescription: "false",
31919
+ defaultValueDescription: false,
31910
31920
  }
31911
31921
  ];
31912
31922
  ts.buildOpts = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), ts.optionsForBuild, true);
@@ -31914,12 +31924,12 @@ var ts;
31914
31924
  {
31915
31925
  name: "enableAutoDiscovery",
31916
31926
  type: "boolean",
31917
- defaultValueDescription: "false",
31927
+ defaultValueDescription: false,
31918
31928
  },
31919
31929
  {
31920
31930
  name: "enable",
31921
31931
  type: "boolean",
31922
- defaultValueDescription: "false",
31932
+ defaultValueDescription: false,
31923
31933
  },
31924
31934
  {
31925
31935
  name: "include",
@@ -31940,7 +31950,7 @@ var ts;
31940
31950
  {
31941
31951
  name: "disableFilenameBasedTypeAcquisition",
31942
31952
  type: "boolean",
31943
- defaultValueDescription: "false",
31953
+ defaultValueDescription: false,
31944
31954
  },
31945
31955
  ];
31946
31956
  function createOptionNameMap(optionDeclarations) {
@@ -101625,7 +101635,9 @@ var ts;
101625
101635
  var colors = createColors(sys);
101626
101636
  var name = getDisplayNameTextOfOption(option);
101627
101637
  var valueCandidates = getValueCandidate(option);
101628
- var defaultValueDescription = typeof option.defaultValueDescription === "object" ? ts.getDiagnosticText(option.defaultValueDescription) : option.defaultValueDescription;
101638
+ var defaultValueDescription = typeof option.defaultValueDescription === "object"
101639
+ ? ts.getDiagnosticText(option.defaultValueDescription)
101640
+ : formatDefaultValue(option.defaultValueDescription, option.type === "list" ? option.element.type : option.type);
101629
101641
  var terminalWidth = (_b = (_a = sys.getWidthOfTerminal) === null || _a === void 0 ? void 0 : _a.call(sys)) !== null && _b !== void 0 ? _b : 0;
101630
101642
  if (terminalWidth >= 80) {
101631
101643
  var description = "";
@@ -101665,6 +101677,20 @@ var ts;
101665
101677
  text.push(sys.newLine);
101666
101678
  }
101667
101679
  return text;
101680
+ function formatDefaultValue(defaultValue, type) {
101681
+ return defaultValue !== undefined && typeof type === "object"
101682
+ ? ts.arrayFrom(type.entries())
101683
+ .filter(function (_a) {
101684
+ var value = _a[1];
101685
+ return value === defaultValue;
101686
+ })
101687
+ .map(function (_a) {
101688
+ var name = _a[0];
101689
+ return name;
101690
+ })
101691
+ .join("/")
101692
+ : String(defaultValue);
101693
+ }
101668
101694
  function showAdditionalInfoOutput(valueCandidates, option) {
101669
101695
  var ignoreValues = ["string"];
101670
101696
  var ignoredDescriptions = [undefined, "false", "n/a"];
@@ -101733,8 +101759,16 @@ var ts;
101733
101759
  possibleValues = "";
101734
101760
  break;
101735
101761
  default:
101736
- var keys = ts.arrayFrom(option.type.keys());
101737
- possibleValues = keys.join(", ");
101762
+ var inverted_1 = {};
101763
+ option.type.forEach(function (value, name) {
101764
+ (inverted_1[value] || (inverted_1[value] = [])).push(name);
101765
+ });
101766
+ return ts.getEntries(inverted_1)
101767
+ .map(function (_a) {
101768
+ var synonyms = _a[1];
101769
+ return synonyms.join("/");
101770
+ })
101771
+ .join(", ");
101738
101772
  }
101739
101773
  return possibleValues;
101740
101774
  }