typescript 4.5.0-dev.20211019 → 4.5.0-dev.20211023

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.5";
72
- ts.version = ts.versionMajorMinor + ".0-dev.20211019";
72
+ ts.version = ts.versionMajorMinor + ".0-dev.20211023";
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  function tryGetNativeMap() {
@@ -5363,6 +5363,7 @@ var ts;
5363
5363
  Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type: diag(1387, ts.DiagnosticCategory.Error, "Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387", "Function type notation must be parenthesized when used in an intersection type."),
5364
5364
  Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type: diag(1388, ts.DiagnosticCategory.Error, "Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388", "Constructor type notation must be parenthesized when used in an intersection type."),
5365
5365
  _0_is_not_allowed_as_a_variable_declaration_name: diag(1389, ts.DiagnosticCategory.Error, "_0_is_not_allowed_as_a_variable_declaration_name_1389", "'{0}' is not allowed as a variable declaration name."),
5366
+ _0_is_not_allowed_as_a_parameter_name: diag(1390, ts.DiagnosticCategory.Error, "_0_is_not_allowed_as_a_parameter_name_1390", "'{0}' is not allowed as a parameter name."),
5366
5367
  An_import_alias_cannot_use_import_type: diag(1392, ts.DiagnosticCategory.Error, "An_import_alias_cannot_use_import_type_1392", "An import alias cannot use 'import type'"),
5367
5368
  Imported_via_0_from_file_1: diag(1393, ts.DiagnosticCategory.Message, "Imported_via_0_from_file_1_1393", "Imported via {0} from file '{1}'"),
5368
5369
  Imported_via_0_from_file_1_with_packageId_2: diag(1394, ts.DiagnosticCategory.Message, "Imported_via_0_from_file_1_with_packageId_2_1394", "Imported via {0} from file '{1}' with packageId '{2}'"),
@@ -15846,7 +15847,7 @@ var ts;
15846
15847
  includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"),
15847
15848
  includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"),
15848
15849
  excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"),
15849
- basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames)
15850
+ basePaths: getBasePaths(absolutePath, includes, useCaseSensitiveFileNames)
15850
15851
  };
15851
15852
  }
15852
15853
  ts.getFileMatcherPatterns = getFileMatcherPatterns;
@@ -15865,20 +15866,20 @@ var ts;
15865
15866
  var visited = new ts.Map();
15866
15867
  var toCanonical = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
15867
15868
  for (var _i = 0, _a = patterns.basePaths; _i < _a.length; _i++) {
15868
- var basePath = _a[_i];
15869
- if (directoryExists(basePath)) {
15870
- visitDirectory(basePath, ts.combinePaths(currentDirectory, basePath), depth);
15869
+ var absoluteBasePath = _a[_i];
15870
+ if (directoryExists(absoluteBasePath)) {
15871
+ visitDirectory(absoluteBasePath, depth);
15871
15872
  }
15872
15873
  }
15873
15874
  return ts.flatten(results);
15874
- function visitDirectory(path, absolutePath, depth) {
15875
+ function visitDirectory(absolutePath, depth) {
15875
15876
  var canonicalPath = toCanonical(realpath(absolutePath));
15876
15877
  if (visited.has(canonicalPath))
15877
15878
  return;
15878
15879
  visited.set(canonicalPath, true);
15879
- var _a = getFileSystemEntries(path), files = _a.files, directories = _a.directories;
15880
+ var _a = getFileSystemEntries(absolutePath), files = _a.files, directories = _a.directories;
15880
15881
  var _loop_1 = function (current) {
15881
- var name = ts.combinePaths(path, current);
15882
+ var name = ts.combinePaths(absolutePath, current);
15882
15883
  var absoluteName = ts.combinePaths(absolutePath, current);
15883
15884
  if (extensions && !ts.fileExtensionIsOneOf(name, extensions))
15884
15885
  return "continue";
@@ -15906,28 +15907,27 @@ var ts;
15906
15907
  }
15907
15908
  for (var _c = 0, _d = ts.sort(directories, ts.compareStringsCaseSensitive); _c < _d.length; _c++) {
15908
15909
  var current = _d[_c];
15909
- var name = ts.combinePaths(path, current);
15910
15910
  var absoluteName = ts.combinePaths(absolutePath, current);
15911
15911
  if ((!includeDirectoryRegex || includeDirectoryRegex.test(absoluteName)) &&
15912
15912
  (!excludeRegex || !excludeRegex.test(absoluteName))) {
15913
- visitDirectory(name, absoluteName, depth);
15913
+ visitDirectory(absoluteName, depth);
15914
15914
  }
15915
15915
  }
15916
15916
  }
15917
15917
  }
15918
15918
  ts.matchFiles = matchFiles;
15919
- function getBasePaths(path, includes, useCaseSensitiveFileNames) {
15920
- var basePaths = [path];
15919
+ function getBasePaths(absoluteTsconfigPath, includes, useCaseSensitiveFileNames) {
15920
+ var basePaths = [absoluteTsconfigPath];
15921
15921
  if (includes) {
15922
15922
  var includeBasePaths = [];
15923
15923
  for (var _i = 0, includes_1 = includes; _i < includes_1.length; _i++) {
15924
15924
  var include = includes_1[_i];
15925
- var absolute = ts.isRootedDiskPath(include) ? include : ts.normalizePath(ts.combinePaths(path, include));
15926
- includeBasePaths.push(getIncludeBasePath(absolute));
15925
+ var absoluteIncludePath = ts.isRootedDiskPath(include) ? include : ts.normalizePath(ts.combinePaths(absoluteTsconfigPath, include));
15926
+ includeBasePaths.push(getIncludeBasePath(absoluteIncludePath));
15927
15927
  }
15928
15928
  includeBasePaths.sort(ts.getStringComparer(!useCaseSensitiveFileNames));
15929
15929
  var _loop_2 = function (includeBasePath) {
15930
- if (ts.every(basePaths, function (basePath) { return !ts.containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames); })) {
15930
+ if (ts.every(basePaths, function (basePath) { return !ts.containsPath(basePath, includeBasePath, absoluteTsconfigPath, !useCaseSensitiveFileNames); })) {
15931
15931
  basePaths.push(includeBasePath);
15932
15932
  }
15933
15933
  };
@@ -25738,7 +25738,10 @@ var ts;
25738
25738
  case 12: return parseErrorAtCurrentToken(ts.Diagnostics.Property_assignment_expected);
25739
25739
  case 15: return parseErrorAtCurrentToken(ts.Diagnostics.Expression_or_comma_expected);
25740
25740
  case 17: return parseErrorAtCurrentToken(ts.Diagnostics.Parameter_declaration_expected);
25741
- case 16: return parseErrorAtCurrentToken(ts.Diagnostics.Parameter_declaration_expected);
25741
+ case 16:
25742
+ return ts.isKeyword(token())
25743
+ ? parseErrorAtCurrentToken(ts.Diagnostics._0_is_not_allowed_as_a_parameter_name, ts.tokenToString(token()))
25744
+ : parseErrorAtCurrentToken(ts.Diagnostics.Parameter_declaration_expected);
25742
25745
  case 19: return parseErrorAtCurrentToken(ts.Diagnostics.Type_parameter_declaration_expected);
25743
25746
  case 20: return parseErrorAtCurrentToken(ts.Diagnostics.Type_argument_expected);
25744
25747
  case 21: return parseErrorAtCurrentToken(ts.Diagnostics.Type_expected);
@@ -30674,7 +30677,7 @@ var ts;
30674
30677
  })(ts || (ts = {}));
30675
30678
  var ts;
30676
30679
  (function (ts) {
30677
- ts.compileOnSaveCommandLineOption = { name: "compileOnSave", type: "boolean" };
30680
+ ts.compileOnSaveCommandLineOption = { name: "compileOnSave", type: "boolean", defaultValueDescription: "false" };
30678
30681
  var jsxOptionMap = new ts.Map(ts.getEntries({
30679
30682
  "preserve": 1,
30680
30683
  "react-native": 3,
@@ -30790,6 +30793,7 @@ var ts;
30790
30793
  type: "boolean",
30791
30794
  category: ts.Diagnostics.Watch_and_Build_Modes,
30792
30795
  description: ts.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,
30796
+ defaultValueDescription: "false",
30793
30797
  },
30794
30798
  {
30795
30799
  name: "excludeDirectories",
@@ -30824,11 +30828,13 @@ var ts;
30824
30828
  showInSimplifiedHelpView: true,
30825
30829
  category: ts.Diagnostics.Command_line_Options,
30826
30830
  description: ts.Diagnostics.Print_this_message,
30831
+ defaultValueDescription: "false",
30827
30832
  },
30828
30833
  {
30829
30834
  name: "help",
30830
30835
  shortName: "?",
30831
- type: "boolean"
30836
+ type: "boolean",
30837
+ defaultValueDescription: "false",
30832
30838
  },
30833
30839
  {
30834
30840
  name: "watch",
@@ -30838,6 +30844,7 @@ var ts;
30838
30844
  isCommandLineOnly: true,
30839
30845
  category: ts.Diagnostics.Command_line_Options,
30840
30846
  description: ts.Diagnostics.Watch_input_files,
30847
+ defaultValueDescription: "false",
30841
30848
  },
30842
30849
  {
30843
30850
  name: "preserveWatchOutput",
@@ -30845,7 +30852,7 @@ var ts;
30845
30852
  showInSimplifiedHelpView: false,
30846
30853
  category: ts.Diagnostics.Output_Formatting,
30847
30854
  description: ts.Diagnostics.Disable_wiping_the_console_in_watch_mode,
30848
- defaultValueDescription: "n/a"
30855
+ defaultValueDescription: "false",
30849
30856
  },
30850
30857
  {
30851
30858
  name: "listFiles",
@@ -30858,7 +30865,8 @@ var ts;
30858
30865
  name: "explainFiles",
30859
30866
  type: "boolean",
30860
30867
  category: ts.Diagnostics.Compiler_Diagnostics,
30861
- description: ts.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included
30868
+ description: ts.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included,
30869
+ defaultValueDescription: "false",
30862
30870
  },
30863
30871
  {
30864
30872
  name: "listEmittedFiles",
@@ -30929,7 +30937,8 @@ var ts;
30929
30937
  affectsSemanticDiagnostics: true,
30930
30938
  affectsEmit: true,
30931
30939
  category: ts.Diagnostics.Watch_and_Build_Modes,
30932
- 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
30940
+ 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,
30941
+ defaultValueDescription: "false",
30933
30942
  },
30934
30943
  {
30935
30944
  name: "locale",
@@ -30972,6 +30981,7 @@ var ts;
30972
30981
  showInSimplifiedHelpView: true,
30973
30982
  category: ts.Diagnostics.Command_line_Options,
30974
30983
  description: ts.Diagnostics.Show_all_compiler_options,
30984
+ defaultValueDescription: "false",
30975
30985
  },
30976
30986
  {
30977
30987
  name: "version",
@@ -30980,6 +30990,7 @@ var ts;
30980
30990
  showInSimplifiedHelpView: true,
30981
30991
  category: ts.Diagnostics.Command_line_Options,
30982
30992
  description: ts.Diagnostics.Print_the_compiler_s_version,
30993
+ defaultValueDescription: "false",
30983
30994
  },
30984
30995
  {
30985
30996
  name: "init",
@@ -30987,6 +30998,7 @@ var ts;
30987
30998
  showInSimplifiedHelpView: true,
30988
30999
  category: ts.Diagnostics.Command_line_Options,
30989
31000
  description: ts.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,
31001
+ defaultValueDescription: "false",
30990
31002
  },
30991
31003
  {
30992
31004
  name: "project",
@@ -31004,7 +31016,8 @@ var ts;
31004
31016
  shortName: "b",
31005
31017
  showInSimplifiedHelpView: true,
31006
31018
  category: ts.Diagnostics.Command_line_Options,
31007
- description: ts.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date
31019
+ description: ts.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,
31020
+ defaultValueDescription: "false",
31008
31021
  },
31009
31022
  {
31010
31023
  name: "showConfig",
@@ -31012,7 +31025,8 @@ var ts;
31012
31025
  showInSimplifiedHelpView: true,
31013
31026
  category: ts.Diagnostics.Command_line_Options,
31014
31027
  isCommandLineOnly: true,
31015
- description: ts.Diagnostics.Print_the_final_configuration_instead_of_building
31028
+ description: ts.Diagnostics.Print_the_final_configuration_instead_of_building,
31029
+ defaultValueDescription: "false",
31016
31030
  },
31017
31031
  {
31018
31032
  name: "listFilesOnly",
@@ -31021,7 +31035,8 @@ var ts;
31021
31035
  affectsSemanticDiagnostics: true,
31022
31036
  affectsEmit: true,
31023
31037
  isCommandLineOnly: true,
31024
- description: ts.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing
31038
+ description: ts.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,
31039
+ defaultValueDescription: "false",
31025
31040
  },
31026
31041
  ts.targetOptionDeclaration,
31027
31042
  {
@@ -31140,7 +31155,6 @@ var ts;
31140
31155
  category: ts.Diagnostics.Emit,
31141
31156
  description: ts.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,
31142
31157
  transpileOptionValue: undefined,
31143
- defaultValueDescription: "n/a"
31144
31158
  },
31145
31159
  {
31146
31160
  name: "outDir",
@@ -31151,7 +31165,6 @@ var ts;
31151
31165
  showInSimplifiedHelpView: true,
31152
31166
  category: ts.Diagnostics.Emit,
31153
31167
  description: ts.Diagnostics.Specify_an_output_folder_for_all_emitted_files,
31154
- defaultValueDescription: "n/a"
31155
31168
  },
31156
31169
  {
31157
31170
  name: "rootDir",
@@ -31305,6 +31318,7 @@ var ts;
31305
31318
  strictFlag: true,
31306
31319
  category: ts.Diagnostics.Type_Checking,
31307
31320
  description: ts.Diagnostics.Type_catch_clause_variables_as_unknown_instead_of_any,
31321
+ defaultValueDescription: "false",
31308
31322
  },
31309
31323
  {
31310
31324
  name: "alwaysStrict",
@@ -31336,7 +31350,8 @@ var ts;
31336
31350
  type: "boolean",
31337
31351
  affectsSemanticDiagnostics: true,
31338
31352
  category: ts.Diagnostics.Type_Checking,
31339
- description: ts.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined
31353
+ description: ts.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined,
31354
+ defaultValueDescription: "false",
31340
31355
  },
31341
31356
  {
31342
31357
  name: "noImplicitReturns",
@@ -31352,21 +31367,24 @@ var ts;
31352
31367
  affectsBindDiagnostics: true,
31353
31368
  affectsSemanticDiagnostics: true,
31354
31369
  category: ts.Diagnostics.Type_Checking,
31355
- description: ts.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements
31370
+ description: ts.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,
31371
+ defaultValueDescription: "false",
31356
31372
  },
31357
31373
  {
31358
31374
  name: "noUncheckedIndexedAccess",
31359
31375
  type: "boolean",
31360
31376
  affectsSemanticDiagnostics: true,
31361
31377
  category: ts.Diagnostics.Type_Checking,
31362
- description: ts.Diagnostics.Include_undefined_in_index_signature_results
31378
+ description: ts.Diagnostics.Include_undefined_in_index_signature_results,
31379
+ defaultValueDescription: "false",
31363
31380
  },
31364
31381
  {
31365
31382
  name: "noImplicitOverride",
31366
31383
  type: "boolean",
31367
31384
  affectsSemanticDiagnostics: true,
31368
31385
  category: ts.Diagnostics.Type_Checking,
31369
- description: ts.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier
31386
+ description: ts.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,
31387
+ defaultValueDescription: "false",
31370
31388
  },
31371
31389
  {
31372
31390
  name: "noPropertyAccessFromIndexSignature",
@@ -31470,7 +31488,7 @@ var ts;
31470
31488
  type: "boolean",
31471
31489
  category: ts.Diagnostics.Interop_Constraints,
31472
31490
  description: ts.Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,
31473
- defaultValueDescription: "n/a"
31491
+ defaultValueDescription: "false",
31474
31492
  },
31475
31493
  {
31476
31494
  name: "allowUmdGlobalAccess",
@@ -31517,7 +31535,8 @@ var ts;
31517
31535
  type: "boolean",
31518
31536
  affectsSemanticDiagnostics: true,
31519
31537
  category: ts.Diagnostics.Language_and_Environment,
31520
- description: ts.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators
31538
+ description: ts.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators,
31539
+ defaultValueDescription: "false",
31521
31540
  },
31522
31541
  {
31523
31542
  name: "emitDecoratorMetadata",
@@ -31525,7 +31544,8 @@ var ts;
31525
31544
  affectsSemanticDiagnostics: true,
31526
31545
  affectsEmit: true,
31527
31546
  category: ts.Diagnostics.Language_and_Environment,
31528
- description: ts.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files
31547
+ description: ts.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files,
31548
+ defaultValueDescription: "false",
31529
31549
  },
31530
31550
  {
31531
31551
  name: "jsxFactory",
@@ -31566,7 +31586,6 @@ var ts;
31566
31586
  category: ts.Diagnostics.Backwards_Compatibility,
31567
31587
  paramType: ts.Diagnostics.FILE,
31568
31588
  transpileOptionValue: undefined,
31569
- defaultValueDescription: "n/a",
31570
31589
  description: ts.Diagnostics.Deprecated_setting_Use_outFile_instead,
31571
31590
  },
31572
31591
  {
@@ -31643,6 +31662,7 @@ var ts;
31643
31662
  affectsEmit: true,
31644
31663
  category: ts.Diagnostics.Emit,
31645
31664
  description: ts.Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,
31665
+ defaultValueDescription: "false",
31646
31666
  },
31647
31667
  {
31648
31668
  name: "disableSizeLimit",
@@ -31657,21 +31677,24 @@ var ts;
31657
31677
  type: "boolean",
31658
31678
  isTSConfigOnly: true,
31659
31679
  category: ts.Diagnostics.Projects,
31660
- description: ts.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects
31680
+ description: ts.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,
31681
+ defaultValueDescription: "false",
31661
31682
  },
31662
31683
  {
31663
31684
  name: "disableSolutionSearching",
31664
31685
  type: "boolean",
31665
31686
  isTSConfigOnly: true,
31666
31687
  category: ts.Diagnostics.Projects,
31667
- description: ts.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing
31688
+ description: ts.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing,
31689
+ defaultValueDescription: "false",
31668
31690
  },
31669
31691
  {
31670
31692
  name: "disableReferencedProjectLoad",
31671
31693
  type: "boolean",
31672
31694
  isTSConfigOnly: true,
31673
31695
  category: ts.Diagnostics.Projects,
31674
- description: ts.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript
31696
+ description: ts.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,
31697
+ defaultValueDescription: "false",
31675
31698
  },
31676
31699
  {
31677
31700
  name: "noImplicitUseStrict",
@@ -31704,7 +31727,7 @@ var ts;
31704
31727
  affectsEmit: true,
31705
31728
  category: ts.Diagnostics.Emit,
31706
31729
  description: ts.Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,
31707
- defaultValueDescription: "n/a"
31730
+ defaultValueDescription: "false",
31708
31731
  },
31709
31732
  {
31710
31733
  name: "declarationDir",
@@ -31715,7 +31738,6 @@ var ts;
31715
31738
  category: ts.Diagnostics.Emit,
31716
31739
  transpileOptionValue: undefined,
31717
31740
  description: ts.Diagnostics.Specify_the_output_directory_for_generated_declaration_files,
31718
- defaultValueDescription: "n/a"
31719
31741
  },
31720
31742
  {
31721
31743
  name: "skipLibCheck",
@@ -31797,6 +31819,7 @@ var ts;
31797
31819
  affectsEmit: true,
31798
31820
  category: ts.Diagnostics.Emit,
31799
31821
  description: ts.Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,
31822
+ defaultValueDescription: "false",
31800
31823
  },
31801
31824
  {
31802
31825
  name: "keyofStringsOnly",
@@ -31834,27 +31857,31 @@ var ts;
31834
31857
  shortName: "v",
31835
31858
  category: ts.Diagnostics.Command_line_Options,
31836
31859
  description: ts.Diagnostics.Enable_verbose_logging,
31837
- type: "boolean"
31860
+ type: "boolean",
31861
+ defaultValueDescription: "false",
31838
31862
  },
31839
31863
  {
31840
31864
  name: "dry",
31841
31865
  shortName: "d",
31842
31866
  category: ts.Diagnostics.Command_line_Options,
31843
31867
  description: ts.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,
31844
- type: "boolean"
31868
+ type: "boolean",
31869
+ defaultValueDescription: "false",
31845
31870
  },
31846
31871
  {
31847
31872
  name: "force",
31848
31873
  shortName: "f",
31849
31874
  category: ts.Diagnostics.Command_line_Options,
31850
31875
  description: ts.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,
31851
- type: "boolean"
31876
+ type: "boolean",
31877
+ defaultValueDescription: "false",
31852
31878
  },
31853
31879
  {
31854
31880
  name: "clean",
31855
31881
  category: ts.Diagnostics.Command_line_Options,
31856
31882
  description: ts.Diagnostics.Delete_the_outputs_of_all_projects,
31857
- type: "boolean"
31883
+ type: "boolean",
31884
+ defaultValueDescription: "false",
31858
31885
  }
31859
31886
  ];
31860
31887
  ts.buildOpts = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), ts.optionsForBuild, true);
@@ -31862,10 +31889,12 @@ var ts;
31862
31889
  {
31863
31890
  name: "enableAutoDiscovery",
31864
31891
  type: "boolean",
31892
+ defaultValueDescription: "false",
31865
31893
  },
31866
31894
  {
31867
31895
  name: "enable",
31868
31896
  type: "boolean",
31897
+ defaultValueDescription: "false",
31869
31898
  },
31870
31899
  {
31871
31900
  name: "include",
@@ -31886,6 +31915,7 @@ var ts;
31886
31915
  {
31887
31916
  name: "disableFilenameBasedTypeAcquisition",
31888
31917
  type: "boolean",
31918
+ defaultValueDescription: "false",
31889
31919
  },
31890
31920
  ];
31891
31921
  function createOptionNameMap(optionDeclarations) {
@@ -37448,6 +37478,7 @@ var ts;
37448
37478
  case 168:
37449
37479
  case 171:
37450
37480
  case 172:
37481
+ case 169:
37451
37482
  var containingClass = thisContainer.parent;
37452
37483
  var symbolTable = ts.isStatic(thisContainer) ? containingClass.symbol.exports : containingClass.symbol.members;
37453
37484
  if (ts.hasDynamicName(node)) {
@@ -40842,8 +40873,8 @@ var ts;
40842
40873
  if (exportEquals !== moduleSymbol) {
40843
40874
  var type = getTypeOfSymbol(exportEquals);
40844
40875
  if (shouldTreatPropertiesOfExternalModuleAsExports(type)) {
40845
- getPropertiesOfType(type).forEach(function (symbol) {
40846
- cb(symbol, symbol.escapedName);
40876
+ forEachPropertyOfType(type, function (symbol, escapedName) {
40877
+ cb(symbol, escapedName);
40847
40878
  });
40848
40879
  }
40849
40880
  }
@@ -41143,12 +41174,15 @@ var ts;
41143
41174
  function getNamedMembers(members) {
41144
41175
  var result;
41145
41176
  members.forEach(function (symbol, id) {
41146
- if (!isReservedMemberName(id) && symbolIsValue(symbol)) {
41177
+ if (isNamedMember(symbol, id)) {
41147
41178
  (result || (result = [])).push(symbol);
41148
41179
  }
41149
41180
  });
41150
41181
  return result || ts.emptyArray;
41151
41182
  }
41183
+ function isNamedMember(member, escapedName) {
41184
+ return !isReservedMemberName(escapedName) && symbolIsValue(member);
41185
+ }
41152
41186
  function getNamedOrIndexSignatureMembers(members) {
41153
41187
  var result = getNamedMembers(members);
41154
41188
  var index = getIndexSymbolFromSymbolTable(members);
@@ -47064,6 +47098,16 @@ var ts;
47064
47098
  getPropertiesOfUnionOrIntersectionType(type) :
47065
47099
  getPropertiesOfObjectType(type);
47066
47100
  }
47101
+ function forEachPropertyOfType(type, action) {
47102
+ type = getReducedApparentType(type);
47103
+ if (type.flags & 3670016) {
47104
+ resolveStructuredTypeMembers(type).members.forEach(function (symbol, escapedName) {
47105
+ if (isNamedMember(symbol, escapedName)) {
47106
+ action(symbol, escapedName);
47107
+ }
47108
+ });
47109
+ }
47110
+ }
47067
47111
  function isTypeInvalidDueToUnionDiscriminant(contextualType, obj) {
47068
47112
  var list = obj.properties;
47069
47113
  return list.some(function (property) {
@@ -50144,12 +50188,6 @@ var ts;
50144
50188
  }
50145
50189
  return type[cache] = type;
50146
50190
  }
50147
- function isConditionalTypeAlwaysTrueDisregardingInferTypes(type) {
50148
- var extendsInferParamMapper = type.root.inferTypeParameters && createTypeMapper(type.root.inferTypeParameters, ts.map(type.root.inferTypeParameters, function () { return wildcardType; }));
50149
- var checkType = type.checkType;
50150
- var extendsType = type.extendsType;
50151
- return isTypeAssignableTo(getRestrictiveInstantiation(checkType), getRestrictiveInstantiation(instantiateType(extendsType, extendsInferParamMapper)));
50152
- }
50153
50191
  function getSimplifiedConditionalType(type, writing) {
50154
50192
  var checkType = type.checkType;
50155
50193
  var extendsType = type.extendsType;
@@ -50401,6 +50439,10 @@ var ts;
50401
50439
  }
50402
50440
  return result;
50403
50441
  }
50442
+ function isDistributionDependent(root) {
50443
+ return root.isDistributive && (isTypeParameterPossiblyReferenced(root.checkType, root.node.trueType) ||
50444
+ isTypeParameterPossiblyReferenced(root.checkType, root.node.falseType));
50445
+ }
50404
50446
  function getTypeFromConditionalTypeNode(node) {
50405
50447
  var links = getNodeLinks(node);
50406
50448
  if (!links.resolvedType) {
@@ -53170,25 +53212,16 @@ var ts;
53170
53212
  return 3;
53171
53213
  }
53172
53214
  var c = target;
53173
- var skipTrue = !isTypeAssignableTo(getPermissiveInstantiation(c.checkType), getPermissiveInstantiation(c.extendsType));
53174
- var skipFalse = !skipTrue && isConditionalTypeAlwaysTrueDisregardingInferTypes(c);
53175
- var distributionMapper = void 0;
53176
- var checkVar = getActualTypeVariable(c.root.checkType);
53177
- if (c.root.isDistributive && checkVar.flags & 262144) {
53178
- var newParam = cloneTypeParameter(checkVar);
53179
- distributionMapper = prependTypeMapping(checkVar, newParam, c.mapper);
53180
- newParam.mapper = distributionMapper;
53181
- }
53182
- var expanding = isDeeplyNestedType(target, targetStack, targetDepth);
53183
- var localResult = expanding ? 3 : undefined;
53184
- if (skipTrue || expanding || (localResult = isRelatedTo(source, distributionMapper ? instantiateType(getTypeFromTypeNode(c.root.node.trueType), distributionMapper) : getTrueTypeFromConditionalType(c), 2, false))) {
53185
- if (!skipFalse && !expanding) {
53186
- localResult = (localResult || 3) & isRelatedTo(source, distributionMapper ? instantiateType(getTypeFromTypeNode(c.root.node.falseType), distributionMapper) : getFalseTypeFromConditionalType(c), 2, false);
53187
- }
53188
- }
53189
- if (localResult) {
53190
- resetErrorInfo(saveErrorInfo);
53191
- return localResult;
53215
+ if (!c.root.inferTypeParameters && !isDistributionDependent(c.root)) {
53216
+ var skipTrue = !isTypeAssignableTo(getPermissiveInstantiation(c.checkType), getPermissiveInstantiation(c.extendsType));
53217
+ var skipFalse = !skipTrue && isTypeAssignableTo(getRestrictiveInstantiation(c.checkType), getRestrictiveInstantiation(c.extendsType));
53218
+ if (result = skipTrue ? -1 : isRelatedTo(source, getTrueTypeFromConditionalType(c), 2, false)) {
53219
+ result &= skipFalse ? -1 : isRelatedTo(source, getFalseTypeFromConditionalType(c), 2, false);
53220
+ if (result) {
53221
+ resetErrorInfo(saveErrorInfo);
53222
+ return result;
53223
+ }
53224
+ }
53192
53225
  }
53193
53226
  }
53194
53227
  else if (target.flags & 134217728) {
@@ -55893,15 +55926,14 @@ var ts;
55893
55926
  var inferredType = void 0;
55894
55927
  var signature = context.signature;
55895
55928
  if (signature) {
55896
- var inferredCovariantType = inference.candidates ? getCovariantInference(inference, signature) : undefined;
55929
+ var inferredCovariantType_1 = inference.candidates ? getCovariantInference(inference, signature) : undefined;
55897
55930
  if (inference.contraCandidates) {
55898
- var inferredContravariantType = getContravariantInference(inference);
55899
- inferredType = inferredCovariantType && !(inferredCovariantType.flags & 131072) &&
55900
- isTypeSubtypeOf(inferredCovariantType, inferredContravariantType) ?
55901
- inferredCovariantType : inferredContravariantType;
55931
+ inferredType = inferredCovariantType_1 && !(inferredCovariantType_1.flags & 131072) &&
55932
+ ts.some(inference.contraCandidates, function (t) { return isTypeSubtypeOf(inferredCovariantType_1, t); }) ?
55933
+ inferredCovariantType_1 : getContravariantInference(inference);
55902
55934
  }
55903
- else if (inferredCovariantType) {
55904
- inferredType = inferredCovariantType;
55935
+ else if (inferredCovariantType_1) {
55936
+ inferredType = inferredCovariantType_1;
55905
55937
  }
55906
55938
  else if (context.flags & 1) {
55907
55939
  inferredType = silentNeverType;