@typescript-deploys/pr-build 4.7.0-pr-48080-37 → 4.7.0-pr-47657-5

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.7";
72
- ts.version = ts.versionMajorMinor + ".0-insiders.20220307";
72
+ ts.version = ts.versionMajorMinor + ".0-insiders.20220311";
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -1733,13 +1733,15 @@ var ts;
1733
1733
  for (var _i = 0; _i < arguments.length; _i++) {
1734
1734
  args[_i] = arguments[_i];
1735
1735
  }
1736
+ var lastResult;
1736
1737
  for (var _a = 0, fs_1 = fs; _a < fs_1.length; _a++) {
1737
1738
  var f = fs_1[_a];
1738
- if (f.apply(void 0, args)) {
1739
- return true;
1739
+ lastResult = f.apply(void 0, args);
1740
+ if (lastResult) {
1741
+ return lastResult;
1740
1742
  }
1741
1743
  }
1742
- return false;
1744
+ return lastResult;
1743
1745
  };
1744
1746
  }
1745
1747
  ts.or = or;
@@ -3263,6 +3265,12 @@ var ts;
3263
3265
  ModuleResolutionKind[ModuleResolutionKind["Node12"] = 3] = "Node12";
3264
3266
  ModuleResolutionKind[ModuleResolutionKind["NodeNext"] = 99] = "NodeNext";
3265
3267
  })(ModuleResolutionKind = ts.ModuleResolutionKind || (ts.ModuleResolutionKind = {}));
3268
+ var ModuleDetectionKind;
3269
+ (function (ModuleDetectionKind) {
3270
+ ModuleDetectionKind[ModuleDetectionKind["Legacy"] = 1] = "Legacy";
3271
+ ModuleDetectionKind[ModuleDetectionKind["Auto"] = 2] = "Auto";
3272
+ ModuleDetectionKind[ModuleDetectionKind["Force"] = 3] = "Force";
3273
+ })(ModuleDetectionKind = ts.ModuleDetectionKind || (ts.ModuleDetectionKind = {}));
3266
3274
  var WatchFileKind;
3267
3275
  (function (WatchFileKind) {
3268
3276
  WatchFileKind[WatchFileKind["FixedPollingInterval"] = 0] = "FixedPollingInterval";
@@ -5428,6 +5436,8 @@ var ts;
5428
5436
  catch_or_finally_expected: diag(1472, ts.DiagnosticCategory.Error, "catch_or_finally_expected_1472", "'catch' or 'finally' expected."),
5429
5437
  An_import_declaration_can_only_be_used_at_the_top_level_of_a_module: diag(1473, ts.DiagnosticCategory.Error, "An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473", "An import declaration can only be used at the top level of a module."),
5430
5438
  An_export_declaration_can_only_be_used_at_the_top_level_of_a_module: diag(1474, ts.DiagnosticCategory.Error, "An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474", "An export declaration can only be used at the top level of a module."),
5439
+ Control_what_method_is_used_to_detect_module_format_JS_files: diag(1475, ts.DiagnosticCategory.Message, "Control_what_method_is_used_to_detect_module_format_JS_files_1475", "Control what method is used to detect module-format JS files."),
5440
+ auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node12_as_modules: diag(1476, ts.DiagnosticCategory.Message, "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476", "\"auto\": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node12+) as modules."),
5431
5441
  The_types_of_0_are_incompatible_between_these_types: diag(2200, ts.DiagnosticCategory.Error, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."),
5432
5442
  The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, ts.DiagnosticCategory.Error, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."),
5433
5443
  Call_signature_return_types_0_and_1_are_incompatible: diag(2202, ts.DiagnosticCategory.Error, "Call_signature_return_types_0_and_1_are_incompatible_2202", "Call signature return types '{0}' and '{1}' are incompatible.", undefined, true),
@@ -6232,7 +6242,6 @@ var ts;
6232
6242
  Command_line_Options: diag(6171, ts.DiagnosticCategory.Message, "Command_line_Options_6171", "Command-line Options"),
6233
6243
  Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3: diag(6179, ts.DiagnosticCategory.Message, "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179", "Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),
6234
6244
  Enable_all_strict_type_checking_options: diag(6180, ts.DiagnosticCategory.Message, "Enable_all_strict_type_checking_options_6180", "Enable all strict type-checking options."),
6235
- List_of_language_service_plugins: diag(6181, ts.DiagnosticCategory.Message, "List_of_language_service_plugins_6181", "List of language service plugins."),
6236
6245
  Scoped_package_detected_looking_in_0: diag(6182, ts.DiagnosticCategory.Message, "Scoped_package_detected_looking_in_0_6182", "Scoped package detected, looking in '{0}'"),
6237
6246
  Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2: diag(6183, ts.DiagnosticCategory.Message, "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183", "Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),
6238
6247
  Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3: diag(6184, ts.DiagnosticCategory.Message, "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184", "Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),
@@ -6339,7 +6348,7 @@ var ts;
6339
6348
  Skipping_build_of_project_0_because_its_dependency_1_has_errors: diag(6362, ts.DiagnosticCategory.Message, "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362", "Skipping build of project '{0}' because its dependency '{1}' has errors"),
6340
6349
  Project_0_can_t_be_built_because_its_dependency_1_has_errors: diag(6363, ts.DiagnosticCategory.Message, "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363", "Project '{0}' can't be built because its dependency '{1}' has errors"),
6341
6350
  Build_one_or_more_projects_and_their_dependencies_if_out_of_date: diag(6364, ts.DiagnosticCategory.Message, "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364", "Build one or more projects and their dependencies, if out of date"),
6342
- Delete_the_outputs_of_all_projects: diag(6365, ts.DiagnosticCategory.Message, "Delete_the_outputs_of_all_projects_6365", "Delete the outputs of all projects"),
6351
+ Delete_the_outputs_of_all_projects: diag(6365, ts.DiagnosticCategory.Message, "Delete_the_outputs_of_all_projects_6365", "Delete the outputs of all projects."),
6343
6352
  Show_what_would_be_built_or_deleted_if_specified_with_clean: diag(6367, ts.DiagnosticCategory.Message, "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367", "Show what would be built (or deleted, if specified with '--clean')"),
6344
6353
  Option_build_must_be_the_first_command_line_argument: diag(6369, ts.DiagnosticCategory.Error, "Option_build_must_be_the_first_command_line_argument_6369", "Option '--build' must be the first command line argument."),
6345
6354
  Options_0_and_1_cannot_be_combined: diag(6370, ts.DiagnosticCategory.Error, "Options_0_and_1_cannot_be_combined_6370", "Options '{0}' and '{1}' cannot be combined."),
@@ -6350,7 +6359,6 @@ var ts;
6350
6359
  A_non_dry_build_would_update_output_of_project_0: diag(6375, ts.DiagnosticCategory.Message, "A_non_dry_build_would_update_output_of_project_0_6375", "A non-dry build would update output of project '{0}'"),
6351
6360
  Cannot_update_output_of_project_0_because_there_was_error_reading_file_1: diag(6376, ts.DiagnosticCategory.Message, "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376", "Cannot update output of project '{0}' because there was error reading file '{1}'"),
6352
6361
  Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1: diag(6377, ts.DiagnosticCategory.Error, "Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377", "Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),
6353
- Enable_incremental_compilation: diag(6378, ts.DiagnosticCategory.Message, "Enable_incremental_compilation_6378", "Enable incremental compilation"),
6354
6362
  Composite_projects_may_not_disable_incremental_compilation: diag(6379, ts.DiagnosticCategory.Error, "Composite_projects_may_not_disable_incremental_compilation_6379", "Composite projects may not disable incremental compilation."),
6355
6363
  Specify_file_to_store_incremental_compilation_information: diag(6380, ts.DiagnosticCategory.Message, "Specify_file_to_store_incremental_compilation_information_6380", "Specify file to store incremental compilation information"),
6356
6364
  Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2: diag(6381, ts.DiagnosticCategory.Message, "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381", "Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),
@@ -6378,13 +6386,13 @@ var ts;
6378
6386
  File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option: diag(6504, ts.DiagnosticCategory.Error, "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504", "File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),
6379
6387
  Print_names_of_files_and_the_reason_they_are_part_of_the_compilation: diag(6505, ts.DiagnosticCategory.Message, "Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505", "Print names of files and the reason they are part of the compilation."),
6380
6388
  Consider_adding_a_declare_modifier_to_this_class: diag(6506, ts.DiagnosticCategory.Message, "Consider_adding_a_declare_modifier_to_this_class_6506", "Consider adding a 'declare' modifier to this class."),
6381
- Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files: diag(6600, ts.DiagnosticCategory.Message, "Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600", "Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files."),
6389
+ Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files: diag(6600, ts.DiagnosticCategory.Message, "Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600", "Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),
6382
6390
  Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export: diag(6601, ts.DiagnosticCategory.Message, "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601", "Allow 'import x from y' when a module doesn't have a default export."),
6383
6391
  Allow_accessing_UMD_globals_from_modules: diag(6602, ts.DiagnosticCategory.Message, "Allow_accessing_UMD_globals_from_modules_6602", "Allow accessing UMD globals from modules."),
6384
6392
  Disable_error_reporting_for_unreachable_code: diag(6603, ts.DiagnosticCategory.Message, "Disable_error_reporting_for_unreachable_code_6603", "Disable error reporting for unreachable code."),
6385
6393
  Disable_error_reporting_for_unused_labels: diag(6604, ts.DiagnosticCategory.Message, "Disable_error_reporting_for_unused_labels_6604", "Disable error reporting for unused labels."),
6386
6394
  Ensure_use_strict_is_always_emitted: diag(6605, ts.DiagnosticCategory.Message, "Ensure_use_strict_is_always_emitted_6605", "Ensure 'use strict' is always emitted."),
6387
- Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it: diag(6606, ts.DiagnosticCategory.Message, "Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606", "Have recompiles in projects that use `incremental` and `watch` mode assume that changes within a file will only affect files directly depending on it."),
6395
+ Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it: diag(6606, ts.DiagnosticCategory.Message, "Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606", "Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),
6388
6396
  Specify_the_base_directory_to_resolve_non_relative_module_names: diag(6607, ts.DiagnosticCategory.Message, "Specify_the_base_directory_to_resolve_non_relative_module_names_6607", "Specify the base directory to resolve non-relative module names."),
6389
6397
  No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files: diag(6608, ts.DiagnosticCategory.Message, "No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608", "No longer supported. In early versions, manually set the text encoding for reading files."),
6390
6398
  Enable_error_reporting_in_type_checked_JavaScript_files: diag(6609, ts.DiagnosticCategory.Message, "Enable_error_reporting_in_type_checked_JavaScript_files_6609", "Enable error reporting in type-checked JavaScript files."),
@@ -6397,13 +6405,13 @@ var ts;
6397
6405
  Reduce_the_number_of_projects_loaded_automatically_by_TypeScript: diag(6617, ts.DiagnosticCategory.Message, "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617", "Reduce the number of projects loaded automatically by TypeScript."),
6398
6406
  Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server: diag(6618, ts.DiagnosticCategory.Message, "Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618", "Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),
6399
6407
  Opt_a_project_out_of_multi_project_reference_checking_when_editing: diag(6619, ts.DiagnosticCategory.Message, "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619", "Opt a project out of multi-project reference checking when editing."),
6400
- Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects: diag(6620, ts.DiagnosticCategory.Message, "Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620", "Disable preferring source files instead of declaration files when referencing composite projects"),
6408
+ Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects: diag(6620, ts.DiagnosticCategory.Message, "Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620", "Disable preferring source files instead of declaration files when referencing composite projects."),
6401
6409
  Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration: diag(6621, ts.DiagnosticCategory.Message, "Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621", "Emit more compliant, but verbose and less performant JavaScript for iteration."),
6402
6410
  Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files: diag(6622, ts.DiagnosticCategory.Message, "Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622", "Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),
6403
6411
  Only_output_d_ts_files_and_not_JavaScript_files: diag(6623, ts.DiagnosticCategory.Message, "Only_output_d_ts_files_and_not_JavaScript_files_6623", "Only output d.ts files and not JavaScript files."),
6404
6412
  Emit_design_type_metadata_for_decorated_declarations_in_source_files: diag(6624, ts.DiagnosticCategory.Message, "Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624", "Emit design-type metadata for decorated declarations in source files."),
6405
6413
  Disable_the_type_acquisition_for_JavaScript_projects: diag(6625, ts.DiagnosticCategory.Message, "Disable_the_type_acquisition_for_JavaScript_projects_6625", "Disable the type acquisition for JavaScript projects"),
6406
- Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility: diag(6626, ts.DiagnosticCategory.Message, "Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626", "Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility."),
6414
+ Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility: diag(6626, ts.DiagnosticCategory.Message, "Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626", "Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),
6407
6415
  Filters_results_from_the_include_option: diag(6627, ts.DiagnosticCategory.Message, "Filters_results_from_the_include_option_6627", "Filters results from the `include` option."),
6408
6416
  Remove_a_list_of_directories_from_the_watch_process: diag(6628, ts.DiagnosticCategory.Message, "Remove_a_list_of_directories_from_the_watch_process_6628", "Remove a list of directories from the watch process."),
6409
6417
  Remove_a_list_of_files_from_the_watch_mode_s_processing: diag(6629, ts.DiagnosticCategory.Message, "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629", "Remove a list of files from the watch mode's processing."),
@@ -6413,7 +6421,7 @@ var ts;
6413
6421
  Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited: diag(6633, ts.DiagnosticCategory.Message, "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633", "Specify one or more path or node module references to base configuration files from which settings are inherited."),
6414
6422
  Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers: diag(6634, ts.DiagnosticCategory.Message, "Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634", "Specify what approach the watcher should use if the system runs out of native file watchers."),
6415
6423
  Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include: diag(6635, ts.DiagnosticCategory.Message, "Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635", "Include a list of files. This does not support glob patterns, as opposed to `include`."),
6416
- Build_all_projects_including_those_that_appear_to_be_up_to_date: diag(6636, ts.DiagnosticCategory.Message, "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636", "Build all projects, including those that appear to be up to date"),
6424
+ Build_all_projects_including_those_that_appear_to_be_up_to_date: diag(6636, ts.DiagnosticCategory.Message, "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636", "Build all projects, including those that appear to be up to date."),
6417
6425
  Ensure_that_casing_is_correct_in_imports: diag(6637, ts.DiagnosticCategory.Message, "Ensure_that_casing_is_correct_in_imports_6637", "Ensure that casing is correct in imports."),
6418
6426
  Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging: diag(6638, ts.DiagnosticCategory.Message, "Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638", "Emit a v8 CPU profile of the compiler run for debugging."),
6419
6427
  Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file: diag(6639, ts.DiagnosticCategory.Message, "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639", "Allow importing helper functions from tslib once per project, instead of including them per-file."),
@@ -6423,77 +6431,76 @@ var ts;
6423
6431
  Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript: diag(6644, ts.DiagnosticCategory.Message, "Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644", "Include source code in the sourcemaps inside the emitted JavaScript."),
6424
6432
  Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports: diag(6645, ts.DiagnosticCategory.Message, "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645", "Ensure that each file can be safely transpiled without relying on other imports."),
6425
6433
  Specify_what_JSX_code_is_generated: diag(6646, ts.DiagnosticCategory.Message, "Specify_what_JSX_code_is_generated_6646", "Specify what JSX code is generated."),
6426
- Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h: diag(6647, ts.DiagnosticCategory.Message, "Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647", "Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'"),
6434
+ Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h: diag(6647, ts.DiagnosticCategory.Message, "Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647", "Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),
6427
6435
  Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment: diag(6648, ts.DiagnosticCategory.Message, "Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648", "Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),
6428
- Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk: diag(6649, ts.DiagnosticCategory.Message, "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649", "Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.`"),
6436
+ Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk: diag(6649, ts.DiagnosticCategory.Message, "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649", "Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),
6429
6437
  Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option: diag(6650, ts.DiagnosticCategory.Message, "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650", "Make keyof only return strings instead of string, numbers or symbols. Legacy option."),
6430
6438
  Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment: diag(6651, ts.DiagnosticCategory.Message, "Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651", "Specify a set of bundled library declaration files that describe the target runtime environment."),
6431
6439
  Print_the_names_of_emitted_files_after_a_compilation: diag(6652, ts.DiagnosticCategory.Message, "Print_the_names_of_emitted_files_after_a_compilation_6652", "Print the names of emitted files after a compilation."),
6432
6440
  Print_all_of_the_files_read_during_the_compilation: diag(6653, ts.DiagnosticCategory.Message, "Print_all_of_the_files_read_during_the_compilation_6653", "Print all of the files read during the compilation."),
6433
6441
  Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit: diag(6654, ts.DiagnosticCategory.Message, "Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654", "Set the language of the messaging from TypeScript. This does not affect emit."),
6434
6442
  Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations: diag(6655, ts.DiagnosticCategory.Message, "Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655", "Specify the location where debugger should locate map files instead of generated locations."),
6435
- Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs: diag(6656, ts.DiagnosticCategory.Message, "Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656", "Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`."),
6443
+ Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs: diag(6656, ts.DiagnosticCategory.Message, "Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656", "Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),
6436
6444
  Specify_what_module_code_is_generated: diag(6657, ts.DiagnosticCategory.Message, "Specify_what_module_code_is_generated_6657", "Specify what module code is generated."),
6437
6445
  Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier: diag(6658, ts.DiagnosticCategory.Message, "Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658", "Specify how TypeScript looks up a file from a given module specifier."),
6438
6446
  Set_the_newline_character_for_emitting_files: diag(6659, ts.DiagnosticCategory.Message, "Set_the_newline_character_for_emitting_files_6659", "Set the newline character for emitting files."),
6439
6447
  Disable_emitting_files_from_a_compilation: diag(6660, ts.DiagnosticCategory.Message, "Disable_emitting_files_from_a_compilation_6660", "Disable emitting files from a compilation."),
6440
- Disable_generating_custom_helper_functions_like_extends_in_compiled_output: diag(6661, ts.DiagnosticCategory.Message, "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661", "Disable generating custom helper functions like `__extends` in compiled output."),
6448
+ Disable_generating_custom_helper_functions_like_extends_in_compiled_output: diag(6661, ts.DiagnosticCategory.Message, "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661", "Disable generating custom helper functions like '__extends' in compiled output."),
6441
6449
  Disable_emitting_files_if_any_type_checking_errors_are_reported: diag(6662, ts.DiagnosticCategory.Message, "Disable_emitting_files_if_any_type_checking_errors_are_reported_6662", "Disable emitting files if any type checking errors are reported."),
6442
6450
  Disable_truncating_types_in_error_messages: diag(6663, ts.DiagnosticCategory.Message, "Disable_truncating_types_in_error_messages_6663", "Disable truncating types in error messages."),
6443
6451
  Enable_error_reporting_for_fallthrough_cases_in_switch_statements: diag(6664, ts.DiagnosticCategory.Message, "Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664", "Enable error reporting for fallthrough cases in switch statements."),
6444
- Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type: diag(6665, ts.DiagnosticCategory.Message, "Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665", "Enable error reporting for expressions and declarations with an implied `any` type.."),
6452
+ Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type: diag(6665, ts.DiagnosticCategory.Message, "Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665", "Enable error reporting for expressions and declarations with an implied 'any' type."),
6445
6453
  Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier: diag(6666, ts.DiagnosticCategory.Message, "Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666", "Ensure overriding members in derived classes are marked with an override modifier."),
6446
6454
  Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function: diag(6667, ts.DiagnosticCategory.Message, "Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667", "Enable error reporting for codepaths that do not explicitly return in a function."),
6447
- Enable_error_reporting_when_this_is_given_the_type_any: diag(6668, ts.DiagnosticCategory.Message, "Enable_error_reporting_when_this_is_given_the_type_any_6668", "Enable error reporting when `this` is given the type `any`."),
6455
+ Enable_error_reporting_when_this_is_given_the_type_any: diag(6668, ts.DiagnosticCategory.Message, "Enable_error_reporting_when_this_is_given_the_type_any_6668", "Enable error reporting when 'this' is given the type 'any'."),
6448
6456
  Disable_adding_use_strict_directives_in_emitted_JavaScript_files: diag(6669, ts.DiagnosticCategory.Message, "Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669", "Disable adding 'use strict' directives in emitted JavaScript files."),
6449
6457
  Disable_including_any_library_files_including_the_default_lib_d_ts: diag(6670, ts.DiagnosticCategory.Message, "Disable_including_any_library_files_including_the_default_lib_d_ts_6670", "Disable including any library files, including the default lib.d.ts."),
6450
- Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type: diag(6671, ts.DiagnosticCategory.Message, "Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671", "Enforces using indexed accessors for keys declared using an indexed type"),
6451
- Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project: diag(6672, ts.DiagnosticCategory.Message, "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672", "Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project."),
6458
+ Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type: diag(6671, ts.DiagnosticCategory.Message, "Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671", "Enforces using indexed accessors for keys declared using an indexed type."),
6459
+ Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project: diag(6672, ts.DiagnosticCategory.Message, "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672", "Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project."),
6452
6460
  Disable_strict_checking_of_generic_signatures_in_function_types: diag(6673, ts.DiagnosticCategory.Message, "Disable_strict_checking_of_generic_signatures_in_function_types_6673", "Disable strict checking of generic signatures in function types."),
6453
- Add_undefined_to_a_type_when_accessed_using_an_index: diag(6674, ts.DiagnosticCategory.Message, "Add_undefined_to_a_type_when_accessed_using_an_index_6674", "Add `undefined` to a type when accessed using an index."),
6454
- Enable_error_reporting_when_a_local_variables_aren_t_read: diag(6675, ts.DiagnosticCategory.Message, "Enable_error_reporting_when_a_local_variables_aren_t_read_6675", "Enable error reporting when a local variables aren't read."),
6455
- Raise_an_error_when_a_function_parameter_isn_t_read: diag(6676, ts.DiagnosticCategory.Message, "Raise_an_error_when_a_function_parameter_isn_t_read_6676", "Raise an error when a function parameter isn't read"),
6456
- Deprecated_setting_Use_outFile_instead: diag(6677, ts.DiagnosticCategory.Message, "Deprecated_setting_Use_outFile_instead_6677", "Deprecated setting. Use `outFile` instead."),
6461
+ Add_undefined_to_a_type_when_accessed_using_an_index: diag(6674, ts.DiagnosticCategory.Message, "Add_undefined_to_a_type_when_accessed_using_an_index_6674", "Add 'undefined' to a type when accessed using an index."),
6462
+ Enable_error_reporting_when_local_variables_aren_t_read: diag(6675, ts.DiagnosticCategory.Message, "Enable_error_reporting_when_local_variables_aren_t_read_6675", "Enable error reporting when local variables aren't read."),
6463
+ Raise_an_error_when_a_function_parameter_isn_t_read: diag(6676, ts.DiagnosticCategory.Message, "Raise_an_error_when_a_function_parameter_isn_t_read_6676", "Raise an error when a function parameter isn't read."),
6464
+ Deprecated_setting_Use_outFile_instead: diag(6677, ts.DiagnosticCategory.Message, "Deprecated_setting_Use_outFile_instead_6677", "Deprecated setting. Use 'outFile' instead."),
6457
6465
  Specify_an_output_folder_for_all_emitted_files: diag(6678, ts.DiagnosticCategory.Message, "Specify_an_output_folder_for_all_emitted_files_6678", "Specify an output folder for all emitted files."),
6458
- 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: diag(6679, ts.DiagnosticCategory.Message, "Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679", "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."),
6466
+ 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: diag(6679, ts.DiagnosticCategory.Message, "Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679", "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."),
6459
6467
  Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations: diag(6680, ts.DiagnosticCategory.Message, "Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680", "Specify a set of entries that re-map imports to additional lookup locations."),
6460
6468
  Specify_a_list_of_language_service_plugins_to_include: diag(6681, ts.DiagnosticCategory.Message, "Specify_a_list_of_language_service_plugins_to_include_6681", "Specify a list of language service plugins to include."),
6461
- Disable_erasing_const_enum_declarations_in_generated_code: diag(6682, ts.DiagnosticCategory.Message, "Disable_erasing_const_enum_declarations_in_generated_code_6682", "Disable erasing `const enum` declarations in generated code."),
6469
+ Disable_erasing_const_enum_declarations_in_generated_code: diag(6682, ts.DiagnosticCategory.Message, "Disable_erasing_const_enum_declarations_in_generated_code_6682", "Disable erasing 'const enum' declarations in generated code."),
6462
6470
  Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node: diag(6683, ts.DiagnosticCategory.Message, "Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683", "Disable resolving symlinks to their realpath. This correlates to the same flag in node."),
6463
- Disable_wiping_the_console_in_watch_mode: diag(6684, ts.DiagnosticCategory.Message, "Disable_wiping_the_console_in_watch_mode_6684", "Disable wiping the console in watch mode"),
6464
- Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read: diag(6685, ts.DiagnosticCategory.Message, "Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685", "Enable color and formatting in TypeScript's output to make compiler errors easier to read"),
6465
- Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit: diag(6686, ts.DiagnosticCategory.Message, "Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686", "Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit."),
6471
+ Disable_wiping_the_console_in_watch_mode: diag(6684, ts.DiagnosticCategory.Message, "Disable_wiping_the_console_in_watch_mode_6684", "Disable wiping the console in watch mode."),
6472
+ Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read: diag(6685, ts.DiagnosticCategory.Message, "Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685", "Enable color and formatting in TypeScript's output to make compiler errors easier to read."),
6473
+ Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit: diag(6686, ts.DiagnosticCategory.Message, "Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686", "Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),
6466
6474
  Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references: diag(6687, ts.DiagnosticCategory.Message, "Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687", "Specify an array of objects that specify paths for projects. Used in project references."),
6467
6475
  Disable_emitting_comments: diag(6688, ts.DiagnosticCategory.Message, "Disable_emitting_comments_6688", "Disable emitting comments."),
6468
- Enable_importing_json_files: diag(6689, ts.DiagnosticCategory.Message, "Enable_importing_json_files_6689", "Enable importing .json files"),
6476
+ Enable_importing_json_files: diag(6689, ts.DiagnosticCategory.Message, "Enable_importing_json_files_6689", "Enable importing .json files."),
6469
6477
  Specify_the_root_folder_within_your_source_files: diag(6690, ts.DiagnosticCategory.Message, "Specify_the_root_folder_within_your_source_files_6690", "Specify the root folder within your source files."),
6470
6478
  Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules: diag(6691, ts.DiagnosticCategory.Message, "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691", "Allow multiple folders to be treated as one when resolving modules."),
6471
6479
  Skip_type_checking_d_ts_files_that_are_included_with_TypeScript: diag(6692, ts.DiagnosticCategory.Message, "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692", "Skip type checking .d.ts files that are included with TypeScript."),
6472
6480
  Skip_type_checking_all_d_ts_files: diag(6693, ts.DiagnosticCategory.Message, "Skip_type_checking_all_d_ts_files_6693", "Skip type checking all .d.ts files."),
6473
6481
  Create_source_map_files_for_emitted_JavaScript_files: diag(6694, ts.DiagnosticCategory.Message, "Create_source_map_files_for_emitted_JavaScript_files_6694", "Create source map files for emitted JavaScript files."),
6474
6482
  Specify_the_root_path_for_debuggers_to_find_the_reference_source_code: diag(6695, ts.DiagnosticCategory.Message, "Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695", "Specify the root path for debuggers to find the reference source code."),
6475
- Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function: diag(6697, ts.DiagnosticCategory.Message, "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697", "Check that the arguments for `bind`, `call`, and `apply` methods match the original function."),
6483
+ Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function: diag(6697, ts.DiagnosticCategory.Message, "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697", "Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),
6476
6484
  When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible: diag(6698, ts.DiagnosticCategory.Message, "When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698", "When assigning functions, check to ensure parameters and the return values are subtype-compatible."),
6477
- When_type_checking_take_into_account_null_and_undefined: diag(6699, ts.DiagnosticCategory.Message, "When_type_checking_take_into_account_null_and_undefined_6699", "When type checking, take into account `null` and `undefined`."),
6485
+ When_type_checking_take_into_account_null_and_undefined: diag(6699, ts.DiagnosticCategory.Message, "When_type_checking_take_into_account_null_and_undefined_6699", "When type checking, take into account 'null' and 'undefined'."),
6478
6486
  Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor: diag(6700, ts.DiagnosticCategory.Message, "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700", "Check for class properties that are declared but not set in the constructor."),
6479
- Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments: diag(6701, ts.DiagnosticCategory.Message, "Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701", "Disable emitting declarations that have `@internal` in their JSDoc comments."),
6487
+ Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments: diag(6701, ts.DiagnosticCategory.Message, "Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701", "Disable emitting declarations that have '@internal' in their JSDoc comments."),
6480
6488
  Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals: diag(6702, ts.DiagnosticCategory.Message, "Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702", "Disable reporting of excess property errors during the creation of object literals."),
6481
- Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures: diag(6703, ts.DiagnosticCategory.Message, "Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703", "Suppress `noImplicitAny` errors when indexing objects that lack index signatures."),
6489
+ Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures: diag(6703, ts.DiagnosticCategory.Message, "Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703", "Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),
6482
6490
  Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively: diag(6704, ts.DiagnosticCategory.Message, "Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704", "Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),
6483
6491
  Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations: diag(6705, ts.DiagnosticCategory.Message, "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705", "Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),
6484
- Log_paths_used_during_the_moduleResolution_process: diag(6706, ts.DiagnosticCategory.Message, "Log_paths_used_during_the_moduleResolution_process_6706", "Log paths used during the `moduleResolution` process."),
6492
+ Log_paths_used_during_the_moduleResolution_process: diag(6706, ts.DiagnosticCategory.Message, "Log_paths_used_during_the_moduleResolution_process_6706", "Log paths used during the 'moduleResolution' process."),
6485
6493
  Specify_the_folder_for_tsbuildinfo_incremental_compilation_files: diag(6707, ts.DiagnosticCategory.Message, "Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707", "Specify the folder for .tsbuildinfo incremental compilation files."),
6486
6494
  Specify_options_for_automatic_acquisition_of_declaration_files: diag(6709, ts.DiagnosticCategory.Message, "Specify_options_for_automatic_acquisition_of_declaration_files_6709", "Specify options for automatic acquisition of declaration files."),
6487
- Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types: diag(6710, ts.DiagnosticCategory.Message, "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710", "Specify multiple folders that act like `./node_modules/@types`."),
6495
+ Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types: diag(6710, ts.DiagnosticCategory.Message, "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710", "Specify multiple folders that act like './node_modules/@types'."),
6488
6496
  Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file: diag(6711, ts.DiagnosticCategory.Message, "Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711", "Specify type package names to be included without being referenced in a source file."),
6489
6497
  Emit_ECMAScript_standard_compliant_class_fields: diag(6712, ts.DiagnosticCategory.Message, "Emit_ECMAScript_standard_compliant_class_fields_6712", "Emit ECMAScript-standard-compliant class fields."),
6490
- Enable_verbose_logging: diag(6713, ts.DiagnosticCategory.Message, "Enable_verbose_logging_6713", "Enable verbose logging"),
6498
+ Enable_verbose_logging: diag(6713, ts.DiagnosticCategory.Message, "Enable_verbose_logging_6713", "Enable verbose logging."),
6491
6499
  Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality: diag(6714, ts.DiagnosticCategory.Message, "Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714", "Specify how directories are watched on systems that lack recursive file-watching functionality."),
6492
6500
  Specify_how_the_TypeScript_watch_mode_works: diag(6715, ts.DiagnosticCategory.Message, "Specify_how_the_TypeScript_watch_mode_works_6715", "Specify how the TypeScript watch mode works."),
6493
- Include_undefined_in_index_signature_results: diag(6716, ts.DiagnosticCategory.Message, "Include_undefined_in_index_signature_results_6716", "Include 'undefined' in index signature results"),
6494
6501
  Require_undeclared_properties_from_index_signatures_to_use_element_accesses: diag(6717, ts.DiagnosticCategory.Message, "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717", "Require undeclared properties from index signatures to use element accesses."),
6495
- Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, ts.DiagnosticCategory.Message, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types"),
6496
- Type_catch_clause_variables_as_unknown_instead_of_any: diag(6803, ts.DiagnosticCategory.Message, "Type_catch_clause_variables_as_unknown_instead_of_any_6803", "Type catch clause variables as 'unknown' instead of 'any'."),
6502
+ Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, ts.DiagnosticCategory.Message, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types."),
6503
+ Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, ts.DiagnosticCategory.Message, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
6497
6504
  one_of_Colon: diag(6900, ts.DiagnosticCategory.Message, "one_of_Colon_6900", "one of:"),
6498
6505
  one_or_more_Colon: diag(6901, ts.DiagnosticCategory.Message, "one_or_more_Colon_6901", "one or more:"),
6499
6506
  type_Colon: diag(6902, ts.DiagnosticCategory.Message, "type_Colon_6902", "type:"),
@@ -11330,7 +11337,7 @@ var ts;
11330
11337
  return name.kind === 161 && !isStringOrNumericLiteralLike(name.expression);
11331
11338
  }
11332
11339
  ts.isComputedNonLiteralName = isComputedNonLiteralName;
11333
- function getTextOfPropertyName(name) {
11340
+ function tryGetTextOfPropertyName(name) {
11334
11341
  switch (name.kind) {
11335
11342
  case 79:
11336
11343
  case 80:
@@ -11342,11 +11349,15 @@ var ts;
11342
11349
  case 161:
11343
11350
  if (isStringOrNumericLiteralLike(name.expression))
11344
11351
  return ts.escapeLeadingUnderscores(name.expression.text);
11345
- return ts.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");
11352
+ return undefined;
11346
11353
  default:
11347
11354
  return ts.Debug.assertNever(name);
11348
11355
  }
11349
11356
  }
11357
+ ts.tryGetTextOfPropertyName = tryGetTextOfPropertyName;
11358
+ function getTextOfPropertyName(name) {
11359
+ return ts.Debug.checkDefined(tryGetTextOfPropertyName(name));
11360
+ }
11350
11361
  ts.getTextOfPropertyName = getTextOfPropertyName;
11351
11362
  function entityNameToString(name) {
11352
11363
  switch (name.kind) {
@@ -11806,10 +11817,23 @@ var ts;
11806
11817
  && node.parent.parent.kind === 236;
11807
11818
  }
11808
11819
  ts.isVariableDeclarationInVariableStatement = isVariableDeclarationInVariableStatement;
11820
+ function isCommonJsExportedExpression(node) {
11821
+ if (!isInJSFile(node))
11822
+ return false;
11823
+ return (ts.isObjectLiteralExpression(node.parent) && ts.isBinaryExpression(node.parent.parent) && getAssignmentDeclarationKind(node.parent.parent) === 2) ||
11824
+ isCommonJsExportPropertyAssignment(node.parent);
11825
+ }
11826
+ ts.isCommonJsExportedExpression = isCommonJsExportedExpression;
11827
+ function isCommonJsExportPropertyAssignment(node) {
11828
+ if (!isInJSFile(node))
11829
+ return false;
11830
+ return (ts.isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 1);
11831
+ }
11832
+ ts.isCommonJsExportPropertyAssignment = isCommonJsExportPropertyAssignment;
11809
11833
  function isValidESSymbolDeclaration(node) {
11810
- return ts.isVariableDeclaration(node) ? isVarConst(node) && ts.isIdentifier(node.name) && isVariableDeclarationInVariableStatement(node) :
11834
+ return (ts.isVariableDeclaration(node) ? isVarConst(node) && ts.isIdentifier(node.name) && isVariableDeclarationInVariableStatement(node) :
11811
11835
  ts.isPropertyDeclaration(node) ? hasEffectiveReadonlyModifier(node) && hasStaticModifier(node) :
11812
- ts.isPropertySignature(node) && hasEffectiveReadonlyModifier(node);
11836
+ ts.isPropertySignature(node) && hasEffectiveReadonlyModifier(node)) || isCommonJsExportPropertyAssignment(node);
11813
11837
  }
11814
11838
  ts.isValidESSymbolDeclaration = isValidESSymbolDeclaration;
11815
11839
  function introducesArgumentsExoticObject(node) {
@@ -11863,7 +11887,7 @@ var ts;
11863
11887
  function getPropertyAssignment(objectLiteral, key, key2) {
11864
11888
  return objectLiteral.properties.filter(function (property) {
11865
11889
  if (property.kind === 295) {
11866
- var propName = getTextOfPropertyName(property.name);
11890
+ var propName = tryGetTextOfPropertyName(property.name);
11867
11891
  return key === propName || (!!key2 && key2 === propName);
11868
11892
  }
11869
11893
  return false;
@@ -15590,6 +15614,42 @@ var ts;
15590
15614
  return scriptKind === 4 || scriptKind === 2 || scriptKind === 1 || scriptKind === 6 ? 1 : 0;
15591
15615
  }
15592
15616
  ts.getLanguageVariant = getLanguageVariant;
15617
+ function walkTreeForJSXTags(node) {
15618
+ if (!(node.transformFlags & 2))
15619
+ return undefined;
15620
+ return ts.isJsxOpeningLikeElement(node) || ts.isJsxFragment(node) ? node : ts.forEachChild(node, walkTreeForJSXTags);
15621
+ }
15622
+ function isFileModuleFromUsingJSXTag(file) {
15623
+ return !file.isDeclarationFile ? walkTreeForJSXTags(file) : undefined;
15624
+ }
15625
+ function isFileForcedToBeModuleByFormat(file) {
15626
+ return file.impliedNodeFormat === ts.ModuleKind.ESNext && !file.isDeclarationFile ? true : undefined;
15627
+ }
15628
+ function getSetExternalModuleIndicator(options) {
15629
+ switch (getEmitModuleDetectionKind(options)) {
15630
+ case ts.ModuleDetectionKind.Force:
15631
+ return function (file) {
15632
+ file.externalModuleIndicator = !file.isDeclarationFile || ts.isFileProbablyExternalModule(file);
15633
+ };
15634
+ case ts.ModuleDetectionKind.Legacy:
15635
+ return function (file) {
15636
+ file.externalModuleIndicator = ts.isFileProbablyExternalModule(file);
15637
+ };
15638
+ case ts.ModuleDetectionKind.Auto:
15639
+ var checks = [ts.isFileProbablyExternalModule];
15640
+ if (options.jsx === 4 || options.jsx === 5) {
15641
+ checks.push(isFileModuleFromUsingJSXTag);
15642
+ }
15643
+ var moduleKind = getEmitModuleKind(options);
15644
+ if (moduleKind === ts.ModuleKind.Node12 || moduleKind === ts.ModuleKind.NodeNext) {
15645
+ checks.push(isFileForcedToBeModuleByFormat);
15646
+ }
15647
+ var combined_1 = ts.or.apply(void 0, checks);
15648
+ var callback = function (file) { return void (file.externalModuleIndicator = combined_1(file)); };
15649
+ return callback;
15650
+ }
15651
+ }
15652
+ ts.getSetExternalModuleIndicator = getSetExternalModuleIndicator;
15593
15653
  function getEmitScriptTarget(compilerOptions) {
15594
15654
  return compilerOptions.target ||
15595
15655
  (compilerOptions.module === ts.ModuleKind.Node12 && 7) ||
@@ -15624,6 +15684,10 @@ var ts;
15624
15684
  return moduleResolution;
15625
15685
  }
15626
15686
  ts.getEmitModuleResolutionKind = getEmitModuleResolutionKind;
15687
+ function getEmitModuleDetectionKind(options) {
15688
+ return options.moduleDetection || ts.ModuleDetectionKind.Auto;
15689
+ }
15690
+ ts.getEmitModuleDetectionKind = getEmitModuleDetectionKind;
15627
15691
  function hasJsonModuleEmitEnabled(options) {
15628
15692
  switch (getEmitModuleKind(options)) {
15629
15693
  case ts.ModuleKind.CommonJS:
@@ -24059,6 +24123,32 @@ var ts;
24059
24123
  text.charCodeAt(start + 3) !== 47;
24060
24124
  }
24061
24125
  ts.isJSDocLikeText = isJSDocLikeText;
24126
+ function isFileProbablyExternalModule(sourceFile) {
24127
+ return ts.forEach(sourceFile.statements, isAnExternalModuleIndicatorNode) ||
24128
+ getImportMetaIfNecessary(sourceFile);
24129
+ }
24130
+ ts.isFileProbablyExternalModule = isFileProbablyExternalModule;
24131
+ function isAnExternalModuleIndicatorNode(node) {
24132
+ return hasModifierOfKind(node, 93)
24133
+ || ts.isImportEqualsDeclaration(node) && ts.isExternalModuleReference(node.moduleReference)
24134
+ || ts.isImportDeclaration(node)
24135
+ || ts.isExportAssignment(node)
24136
+ || ts.isExportDeclaration(node) ? node : undefined;
24137
+ }
24138
+ function getImportMetaIfNecessary(sourceFile) {
24139
+ return sourceFile.flags & 2097152 ?
24140
+ walkTreeForImportMeta(sourceFile) :
24141
+ undefined;
24142
+ }
24143
+ function walkTreeForImportMeta(node) {
24144
+ return isImportMeta(node) ? node : forEachChild(node, walkTreeForImportMeta);
24145
+ }
24146
+ function hasModifierOfKind(node, kind) {
24147
+ return ts.some(node.modifiers, function (m) { return m.kind === kind; });
24148
+ }
24149
+ function isImportMeta(node) {
24150
+ return ts.isMetaProperty(node) && node.keywordToken === 100 && node.name.escapedText === "meta";
24151
+ }
24062
24152
  function forEachChild(node, cbNode, cbNodes) {
24063
24153
  if (!node || node.kind <= 159) {
24064
24154
  return;
@@ -24612,17 +24702,25 @@ var ts;
24612
24702
  children.unshift(n);
24613
24703
  }
24614
24704
  }
24615
- function createSourceFile(fileName, sourceText, languageVersion, setParentNodes, scriptKind) {
24705
+ function setExternalModuleIndicator(sourceFile) {
24706
+ sourceFile.externalModuleIndicator = isFileProbablyExternalModule(sourceFile);
24707
+ }
24708
+ function createSourceFile(fileName, sourceText, languageVersionOrOptions, setParentNodes, scriptKind) {
24616
24709
  if (setParentNodes === void 0) { setParentNodes = false; }
24617
24710
  ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push("parse", "createSourceFile", { path: fileName }, true);
24618
24711
  ts.performance.mark("beforeParse");
24619
24712
  var result;
24620
24713
  ts.perfLogger.logStartParseSourceFile(fileName);
24714
+ var _a = typeof languageVersionOrOptions === "object" ? languageVersionOrOptions : { languageVersion: languageVersionOrOptions }, languageVersion = _a.languageVersion, overrideSetExternalModuleIndicator = _a.setExternalModuleIndicator, format = _a.impliedNodeFormat;
24621
24715
  if (languageVersion === 100) {
24622
- result = Parser.parseSourceFile(fileName, sourceText, languageVersion, undefined, setParentNodes, 6);
24716
+ result = Parser.parseSourceFile(fileName, sourceText, languageVersion, undefined, setParentNodes, 6, ts.noop);
24623
24717
  }
24624
24718
  else {
24625
- result = Parser.parseSourceFile(fileName, sourceText, languageVersion, undefined, setParentNodes, scriptKind);
24719
+ var setIndicator = format === undefined ? overrideSetExternalModuleIndicator : function (file) {
24720
+ file.impliedNodeFormat = format;
24721
+ return (overrideSetExternalModuleIndicator || setExternalModuleIndicator)(file);
24722
+ };
24723
+ result = Parser.parseSourceFile(fileName, sourceText, languageVersion, undefined, setParentNodes, scriptKind, setIndicator);
24626
24724
  }
24627
24725
  ts.perfLogger.logStopParseSourceFile();
24628
24726
  ts.performance.mark("afterParse");
@@ -24702,7 +24800,7 @@ var ts;
24702
24800
  var contextFlags;
24703
24801
  var topLevel = true;
24704
24802
  var parseErrorBeforeNextFinishedNode = false;
24705
- function parseSourceFile(fileName, sourceText, languageVersion, syntaxCursor, setParentNodes, scriptKind) {
24803
+ function parseSourceFile(fileName, sourceText, languageVersion, syntaxCursor, setParentNodes, scriptKind, setExternalModuleIndicatorOverride) {
24706
24804
  var _a;
24707
24805
  if (setParentNodes === void 0) { setParentNodes = false; }
24708
24806
  scriptKind = ts.ensureScriptKind(fileName, scriptKind);
@@ -24718,7 +24816,7 @@ var ts;
24718
24816
  return result_3;
24719
24817
  }
24720
24818
  initializeState(fileName, sourceText, languageVersion, syntaxCursor, scriptKind);
24721
- var result = parseSourceFileWorker(languageVersion, setParentNodes, scriptKind);
24819
+ var result = parseSourceFileWorker(languageVersion, setParentNodes, scriptKind, setExternalModuleIndicatorOverride || setExternalModuleIndicator);
24722
24820
  clearState();
24723
24821
  return result;
24724
24822
  }
@@ -24794,7 +24892,7 @@ var ts;
24794
24892
  statements = createNodeArray([statement], pos);
24795
24893
  endOfFileToken = parseExpectedToken(1, ts.Diagnostics.Unexpected_token);
24796
24894
  }
24797
- var sourceFile = createSourceFile(fileName, 2, 6, false, statements, endOfFileToken, sourceFlags);
24895
+ var sourceFile = createSourceFile(fileName, 2, 6, false, statements, endOfFileToken, sourceFlags, ts.noop);
24798
24896
  if (setParentNodes) {
24799
24897
  fixupParentReferences(sourceFile);
24800
24898
  }
@@ -24865,7 +24963,7 @@ var ts;
24865
24963
  notParenthesizedArrow = undefined;
24866
24964
  topLevel = true;
24867
24965
  }
24868
- function parseSourceFileWorker(languageVersion, setParentNodes, scriptKind) {
24966
+ function parseSourceFileWorker(languageVersion, setParentNodes, scriptKind, setExternalModuleIndicator) {
24869
24967
  var isDeclarationFile = isDeclarationFileName(fileName);
24870
24968
  if (isDeclarationFile) {
24871
24969
  contextFlags |= 8388608;
@@ -24875,7 +24973,7 @@ var ts;
24875
24973
  var statements = parseList(0, parseStatement);
24876
24974
  ts.Debug.assert(token() === 1);
24877
24975
  var endOfFileToken = addJSDocComment(parseTokenNode());
24878
- var sourceFile = createSourceFile(fileName, languageVersion, scriptKind, isDeclarationFile, statements, endOfFileToken, sourceFlags);
24976
+ var sourceFile = createSourceFile(fileName, languageVersion, scriptKind, isDeclarationFile, statements, endOfFileToken, sourceFlags, setExternalModuleIndicator);
24879
24977
  processCommentPragmas(sourceFile, sourceText);
24880
24978
  processPragmasIntoFields(sourceFile, reportPragmaDiagnostic);
24881
24979
  sourceFile.commentDirectives = scanner.getCommentDirectives();
@@ -24999,22 +25097,27 @@ var ts;
24999
25097
  ts.setParentRecursive(rootNode, true);
25000
25098
  }
25001
25099
  Parser.fixupParentReferences = fixupParentReferences;
25002
- function createSourceFile(fileName, languageVersion, scriptKind, isDeclarationFile, statements, endOfFileToken, flags) {
25100
+ function createSourceFile(fileName, languageVersion, scriptKind, isDeclarationFile, statements, endOfFileToken, flags, setExternalModuleIndicator) {
25003
25101
  var sourceFile = factory.createSourceFile(statements, endOfFileToken, flags);
25004
25102
  ts.setTextRangePosWidth(sourceFile, 0, sourceText.length);
25005
- setExternalModuleIndicator(sourceFile);
25103
+ setFields(sourceFile);
25006
25104
  if (!isDeclarationFile && isExternalModule(sourceFile) && sourceFile.transformFlags & 16777216) {
25007
25105
  sourceFile = reparseTopLevelAwait(sourceFile);
25106
+ setFields(sourceFile);
25008
25107
  }
25009
- sourceFile.text = sourceText;
25010
- sourceFile.bindDiagnostics = [];
25011
- sourceFile.bindSuggestionDiagnostics = undefined;
25012
- sourceFile.languageVersion = languageVersion;
25013
- sourceFile.fileName = fileName;
25014
- sourceFile.languageVariant = ts.getLanguageVariant(scriptKind);
25015
- sourceFile.isDeclarationFile = isDeclarationFile;
25016
- sourceFile.scriptKind = scriptKind;
25017
25108
  return sourceFile;
25109
+ function setFields(sourceFile) {
25110
+ sourceFile.text = sourceText;
25111
+ sourceFile.bindDiagnostics = [];
25112
+ sourceFile.bindSuggestionDiagnostics = undefined;
25113
+ sourceFile.languageVersion = languageVersion;
25114
+ sourceFile.fileName = fileName;
25115
+ sourceFile.languageVariant = ts.getLanguageVariant(scriptKind);
25116
+ sourceFile.isDeclarationFile = isDeclarationFile;
25117
+ sourceFile.scriptKind = scriptKind;
25118
+ setExternalModuleIndicator(sourceFile);
25119
+ sourceFile.setExternalModuleIndicator = setExternalModuleIndicator;
25120
+ }
25018
25121
  }
25019
25122
  function setContextFlag(val, flag) {
25020
25123
  if (val) {
@@ -29459,32 +29562,6 @@ var ts;
29459
29562
  var node = factory.createExportAssignment(decorators, modifiers, isExportEquals, expression);
29460
29563
  return withJSDoc(finishNode(node, pos), hasJSDoc);
29461
29564
  }
29462
- function setExternalModuleIndicator(sourceFile) {
29463
- sourceFile.externalModuleIndicator =
29464
- ts.forEach(sourceFile.statements, isAnExternalModuleIndicatorNode) ||
29465
- getImportMetaIfNecessary(sourceFile);
29466
- }
29467
- function isAnExternalModuleIndicatorNode(node) {
29468
- return hasModifierOfKind(node, 93)
29469
- || ts.isImportEqualsDeclaration(node) && ts.isExternalModuleReference(node.moduleReference)
29470
- || ts.isImportDeclaration(node)
29471
- || ts.isExportAssignment(node)
29472
- || ts.isExportDeclaration(node) ? node : undefined;
29473
- }
29474
- function getImportMetaIfNecessary(sourceFile) {
29475
- return sourceFile.flags & 2097152 ?
29476
- walkTreeForExternalModuleIndicators(sourceFile) :
29477
- undefined;
29478
- }
29479
- function walkTreeForExternalModuleIndicators(node) {
29480
- return isImportMeta(node) ? node : forEachChild(node, walkTreeForExternalModuleIndicators);
29481
- }
29482
- function hasModifierOfKind(node, kind) {
29483
- return ts.some(node.modifiers, function (m) { return m.kind === kind; });
29484
- }
29485
- function isImportMeta(node) {
29486
- return ts.isMetaProperty(node) && node.keywordToken === 100 && node.name.escapedText === "meta";
29487
- }
29488
29565
  var JSDocParser;
29489
29566
  (function (JSDocParser) {
29490
29567
  function parseJSDocTypeExpressionForTests(content, start, length) {
@@ -29492,7 +29569,7 @@ var ts;
29492
29569
  scanner.setText(content, start, length);
29493
29570
  currentToken = scanner.scan();
29494
29571
  var jsDocTypeExpression = parseJSDocTypeExpression();
29495
- var sourceFile = createSourceFile("file.js", 99, 1, false, [], factory.createToken(1), 0);
29572
+ var sourceFile = createSourceFile("file.js", 99, 1, false, [], factory.createToken(1), 0, ts.noop);
29496
29573
  var diagnostics = ts.attachFileToDiagnostics(parseDiagnostics, sourceFile);
29497
29574
  if (jsDocDiagnostics) {
29498
29575
  sourceFile.jsDocDiagnostics = ts.attachFileToDiagnostics(jsDocDiagnostics, sourceFile);
@@ -30388,7 +30465,7 @@ var ts;
30388
30465
  return sourceFile;
30389
30466
  }
30390
30467
  if (sourceFile.statements.length === 0) {
30391
- return Parser.parseSourceFile(sourceFile.fileName, newText, sourceFile.languageVersion, undefined, true, sourceFile.scriptKind);
30468
+ return Parser.parseSourceFile(sourceFile.fileName, newText, sourceFile.languageVersion, undefined, true, sourceFile.scriptKind, sourceFile.setExternalModuleIndicator);
30392
30469
  }
30393
30470
  var incrementalSourceFile = sourceFile;
30394
30471
  ts.Debug.assert(!incrementalSourceFile.hasBeenIncrementallyParsed);
@@ -30403,7 +30480,7 @@ var ts;
30403
30480
  ts.Debug.assert(ts.textSpanEnd(ts.textChangeRangeNewSpan(changeRange)) === ts.textSpanEnd(ts.textChangeRangeNewSpan(textChangeRange)));
30404
30481
  var delta = ts.textChangeRangeNewSpan(changeRange).length - changeRange.span.length;
30405
30482
  updateTokenPositionsAndMarkElements(incrementalSourceFile, changeRange.span.start, ts.textSpanEnd(changeRange.span), ts.textSpanEnd(ts.textChangeRangeNewSpan(changeRange)), delta, oldText, newText, aggressiveChecks);
30406
- var result = Parser.parseSourceFile(sourceFile.fileName, newText, sourceFile.languageVersion, syntaxCursor, true, sourceFile.scriptKind);
30483
+ var result = Parser.parseSourceFile(sourceFile.fileName, newText, sourceFile.languageVersion, syntaxCursor, true, sourceFile.scriptKind, sourceFile.setExternalModuleIndicator);
30407
30484
  result.commentDirectives = getNewCommentDirectives(sourceFile.commentDirectives, result.commentDirectives, changeRange.span.start, ts.textSpanEnd(changeRange.span), delta, oldText, newText, aggressiveChecks);
30408
30485
  result.impliedNodeFormat = sourceFile.impliedNodeFormat;
30409
30486
  return result;
@@ -31198,7 +31275,7 @@ var ts;
31198
31275
  shortName: "i",
31199
31276
  type: "boolean",
31200
31277
  category: ts.Diagnostics.Projects,
31201
- description: ts.Diagnostics.Enable_incremental_compilation,
31278
+ description: ts.Diagnostics.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,
31202
31279
  transpileOptionValue: undefined,
31203
31280
  defaultValueDescription: ts.Diagnostics.false_unless_composite_is_set
31204
31281
  },
@@ -31592,7 +31669,7 @@ var ts;
31592
31669
  affectsSemanticDiagnostics: true,
31593
31670
  strictFlag: true,
31594
31671
  category: ts.Diagnostics.Type_Checking,
31595
- description: ts.Diagnostics.Type_catch_clause_variables_as_unknown_instead_of_any,
31672
+ description: ts.Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,
31596
31673
  defaultValueDescription: false,
31597
31674
  },
31598
31675
  {
@@ -31609,7 +31686,7 @@ var ts;
31609
31686
  type: "boolean",
31610
31687
  affectsSemanticDiagnostics: true,
31611
31688
  category: ts.Diagnostics.Type_Checking,
31612
- description: ts.Diagnostics.Enable_error_reporting_when_a_local_variables_aren_t_read,
31689
+ description: ts.Diagnostics.Enable_error_reporting_when_local_variables_aren_t_read,
31613
31690
  defaultValueDescription: false,
31614
31691
  },
31615
31692
  {
@@ -31650,7 +31727,7 @@ var ts;
31650
31727
  type: "boolean",
31651
31728
  affectsSemanticDiagnostics: true,
31652
31729
  category: ts.Diagnostics.Type_Checking,
31653
- description: ts.Diagnostics.Include_undefined_in_index_signature_results,
31730
+ description: ts.Diagnostics.Add_undefined_to_a_type_when_accessed_using_an_index,
31654
31731
  defaultValueDescription: false,
31655
31732
  },
31656
31733
  {
@@ -32112,9 +32189,21 @@ var ts;
32112
32189
  name: "plugin",
32113
32190
  type: "object"
32114
32191
  },
32115
- description: ts.Diagnostics.List_of_language_service_plugins,
32192
+ description: ts.Diagnostics.Specify_a_list_of_language_service_plugins_to_include,
32116
32193
  category: ts.Diagnostics.Editor_Support,
32117
32194
  },
32195
+ {
32196
+ name: "moduleDetection",
32197
+ type: new ts.Map(ts.getEntries({
32198
+ auto: ts.ModuleDetectionKind.Auto,
32199
+ legacy: ts.ModuleDetectionKind.Legacy,
32200
+ force: ts.ModuleDetectionKind.Force,
32201
+ })),
32202
+ affectsModuleResolution: true,
32203
+ description: ts.Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files,
32204
+ category: ts.Diagnostics.Language_and_Environment,
32205
+ defaultValueDescription: ts.Diagnostics.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node12_as_modules,
32206
+ }
32118
32207
  ];
32119
32208
  ts.optionDeclarations = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), commandOptionsWithoutBuild, true);
32120
32209
  ts.semanticDiagnosticsOptionDeclarations = ts.optionDeclarations.filter(function (option) { return !!option.affectsSemanticDiagnostics; });
@@ -38617,7 +38706,7 @@ var ts;
38617
38706
  var noImplicitThis = ts.getStrictOptionValue(compilerOptions, "noImplicitThis");
38618
38707
  var useUnknownInCatchVariables = ts.getStrictOptionValue(compilerOptions, "useUnknownInCatchVariables");
38619
38708
  var keyofStringsOnly = !!compilerOptions.keyofStringsOnly;
38620
- var freshObjectLiteralFlag = compilerOptions.suppressExcessPropertyErrors ? 0 : 8192;
38709
+ var freshObjectLiteralFlag = compilerOptions.suppressExcessPropertyErrors ? 0 : 16384;
38621
38710
  var exactOptionalPropertyTypes = compilerOptions.exactOptionalPropertyTypes;
38622
38711
  var checkBinaryExpression = createCheckBinaryExpression();
38623
38712
  var emitResolver = createResolver();
@@ -38988,16 +39077,16 @@ var ts;
38988
39077
  var wildcardType = createIntrinsicType(1, "any");
38989
39078
  var errorType = createIntrinsicType(1, "error");
38990
39079
  var unresolvedType = createIntrinsicType(1, "unresolved");
38991
- var nonInferrableAnyType = createIntrinsicType(1, "any", 65536);
39080
+ var nonInferrableAnyType = createIntrinsicType(1, "any", 131072);
38992
39081
  var intrinsicMarkerType = createIntrinsicType(1, "intrinsic");
38993
39082
  var unknownType = createIntrinsicType(2, "unknown");
38994
39083
  var nonNullUnknownType = createIntrinsicType(2, "unknown");
38995
39084
  var undefinedType = createIntrinsicType(32768, "undefined");
38996
- var undefinedWideningType = strictNullChecks ? undefinedType : createIntrinsicType(32768, "undefined", 65536);
39085
+ var undefinedWideningType = strictNullChecks ? undefinedType : createIntrinsicType(32768, "undefined", 131072);
38997
39086
  var optionalType = createIntrinsicType(32768, "undefined");
38998
39087
  var missingType = exactOptionalPropertyTypes ? createIntrinsicType(32768, "undefined") : undefinedType;
38999
39088
  var nullType = createIntrinsicType(65536, "null");
39000
- var nullWideningType = strictNullChecks ? nullType : createIntrinsicType(65536, "null", 65536);
39089
+ var nullWideningType = strictNullChecks ? nullType : createIntrinsicType(65536, "null", 131072);
39001
39090
  var stringType = createIntrinsicType(4, "string");
39002
39091
  var numberType = createIntrinsicType(8, "number");
39003
39092
  var bigintType = createIntrinsicType(64, "bigint");
@@ -39018,7 +39107,7 @@ var ts;
39018
39107
  var voidType = createIntrinsicType(16384, "void");
39019
39108
  var neverType = createIntrinsicType(131072, "never");
39020
39109
  var silentNeverType = createIntrinsicType(131072, "never");
39021
- var nonInferrableType = createIntrinsicType(131072, "never", 262144);
39110
+ var nonInferrableType = createIntrinsicType(131072, "never", 524288);
39022
39111
  var implicitNeverType = createIntrinsicType(131072, "never");
39023
39112
  var unreachableNeverType = createIntrinsicType(131072, "never");
39024
39113
  var nonPrimitiveType = createIntrinsicType(67108864, "object");
@@ -39029,6 +39118,8 @@ var ts;
39029
39118
  var templateConstraintType = getUnionType([stringType, numberType, booleanType, bigintType, nullType, undefinedType]);
39030
39119
  var restrictiveMapper = makeFunctionTypeMapper(function (t) { return t.flags & 262144 ? getRestrictiveTypeParameter(t) : t; });
39031
39120
  var permissiveMapper = makeFunctionTypeMapper(function (t) { return t.flags & 262144 ? wildcardType : t; });
39121
+ var uniqueLiteralType = createIntrinsicType(131072, "never");
39122
+ var uniqueLiteralMapper = makeFunctionTypeMapper(function (t) { return t.flags & 262144 ? uniqueLiteralType : t; });
39032
39123
  var emptyObjectType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);
39033
39124
  var emptyJsxObjectType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);
39034
39125
  emptyJsxObjectType.objectFlags |= 2048;
@@ -39038,7 +39129,7 @@ var ts;
39038
39129
  var emptyGenericType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);
39039
39130
  emptyGenericType.instantiations = new ts.Map();
39040
39131
  var anyFunctionType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);
39041
- anyFunctionType.objectFlags |= 262144;
39132
+ anyFunctionType.objectFlags |= 524288;
39042
39133
  var noConstraintType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);
39043
39134
  var circularConstraintType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);
39044
39135
  var resolvingDefaultType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);
@@ -42113,7 +42204,7 @@ var ts;
42113
42204
  return flags & 814775659;
42114
42205
  }
42115
42206
  function isClassInstanceSide(type) {
42116
- return !!type.symbol && !!(type.symbol.flags & 32) && (type === getDeclaredTypeOfClassOrInterface(type.symbol) || (!!(type.flags & 524288) && !!(ts.getObjectFlags(type) & 16777216)));
42207
+ return !!type.symbol && !!(type.symbol.flags & 32) && (type === getDeclaredTypeOfClassOrInterface(type.symbol) || (!!(type.flags & 524288) && !!(ts.getObjectFlags(type) & 33554432)));
42117
42208
  }
42118
42209
  function createNodeBuilder() {
42119
42210
  return {
@@ -42457,8 +42548,14 @@ var ts;
42457
42548
  var readonlyToken = type.declaration.readonlyToken ? ts.factory.createToken(type.declaration.readonlyToken.kind) : undefined;
42458
42549
  var questionToken = type.declaration.questionToken ? ts.factory.createToken(type.declaration.questionToken.kind) : undefined;
42459
42550
  var appropriateConstraintTypeNode;
42551
+ var newTypeVariable;
42460
42552
  if (isMappedTypeWithKeyofConstraintDeclaration(type)) {
42461
- appropriateConstraintTypeNode = ts.factory.createTypeOperatorNode(140, typeToTypeNodeHelper(getModifiersTypeFromMappedType(type), context));
42553
+ if (!(getModifiersTypeFromMappedType(type).flags & 262144) && context.flags & 4) {
42554
+ var newParam = createTypeParameter(createSymbol(262144, "T"));
42555
+ var name = typeParameterToName(newParam, context);
42556
+ newTypeVariable = ts.factory.createTypeReferenceNode(name);
42557
+ }
42558
+ appropriateConstraintTypeNode = ts.factory.createTypeOperatorNode(140, newTypeVariable || typeToTypeNodeHelper(getModifiersTypeFromMappedType(type), context));
42462
42559
  }
42463
42560
  else {
42464
42561
  appropriateConstraintTypeNode = typeToTypeNodeHelper(getConstraintTypeFromMappedType(type), context);
@@ -42468,7 +42565,11 @@ var ts;
42468
42565
  var templateTypeNode = typeToTypeNodeHelper(removeMissingType(getTemplateTypeFromMappedType(type), !!(getMappedTypeModifiers(type) & 4)), context);
42469
42566
  var mappedTypeNode = ts.factory.createMappedTypeNode(readonlyToken, typeParameterNode, nameTypeNode, questionToken, templateTypeNode, undefined);
42470
42567
  context.approximateLength += 10;
42471
- return ts.setEmitFlags(mappedTypeNode, 1);
42568
+ var result = ts.setEmitFlags(mappedTypeNode, 1);
42569
+ if (isMappedTypeWithKeyofConstraintDeclaration(type) && !(getModifiersTypeFromMappedType(type).flags & 262144) && context.flags & 4) {
42570
+ return ts.factory.createConditionalTypeNode(typeToTypeNodeHelper(getModifiersTypeFromMappedType(type), context), ts.factory.createInferTypeNode(ts.factory.createTypeParameterDeclaration(ts.factory.cloneNode(newTypeVariable.typeName))), result, ts.factory.createKeywordTypeNode(143));
42571
+ }
42572
+ return result;
42472
42573
  }
42473
42574
  function createAnonymousTypeNode(type) {
42474
42575
  var _a;
@@ -43924,7 +44025,7 @@ var ts;
43924
44025
  }
43925
44026
  }
43926
44027
  function serializeSymbolWorker(symbol, isPrivate, propertyAsAlias) {
43927
- var _a, _b;
44028
+ var _a, _b, _c, _d;
43928
44029
  var symbolName = ts.unescapeLeadingUnderscores(symbol.escapedName);
43929
44030
  var isDefault = symbol.escapedName === "default";
43930
44031
  if (isPrivate && !(context.flags & 131072) && ts.isStringANonContextualKeyword(symbolName) && !isDefault) {
@@ -43967,17 +44068,21 @@ var ts;
43967
44068
  serializeAsFunctionNamespaceMerge(type, symbol, localName, modifierFlags);
43968
44069
  }
43969
44070
  else {
43970
- var flags = !(symbol.flags & 2) ? undefined
43971
- : isConstVariable(symbol) ? 2
44071
+ var flags = !(symbol.flags & 2)
44072
+ ? ((_a = symbol.parent) === null || _a === void 0 ? void 0 : _a.valueDeclaration) && ts.isSourceFile((_b = symbol.parent) === null || _b === void 0 ? void 0 : _b.valueDeclaration)
44073
+ ? 2
44074
+ : undefined
44075
+ : isConstVariable(symbol)
44076
+ ? 2
43972
44077
  : 1;
43973
44078
  var name = (needsPostExportDefault || !(symbol.flags & 4)) ? localName : getUnusedName(localName, symbol);
43974
44079
  var textRange = symbol.declarations && ts.find(symbol.declarations, function (d) { return ts.isVariableDeclaration(d); });
43975
44080
  if (textRange && ts.isVariableDeclarationList(textRange.parent) && textRange.parent.declarations.length === 1) {
43976
44081
  textRange = textRange.parent.parent;
43977
44082
  }
43978
- var propertyAccessRequire = (_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.find(ts.isPropertyAccessExpression);
44083
+ var propertyAccessRequire = (_c = symbol.declarations) === null || _c === void 0 ? void 0 : _c.find(ts.isPropertyAccessExpression);
43979
44084
  if (propertyAccessRequire && ts.isBinaryExpression(propertyAccessRequire.parent) && ts.isIdentifier(propertyAccessRequire.parent.right)
43980
- && ((_b = type.symbol) === null || _b === void 0 ? void 0 : _b.valueDeclaration) && ts.isSourceFile(type.symbol.valueDeclaration)) {
44085
+ && ((_d = type.symbol) === null || _d === void 0 ? void 0 : _d.valueDeclaration) && ts.isSourceFile(type.symbol.valueDeclaration)) {
43981
44086
  var alias = localName === propertyAccessRequire.parent.right.escapedText ? undefined : propertyAccessRequire.parent.right;
43982
44087
  addResult(ts.factory.createExportDeclaration(undefined, undefined, false, ts.factory.createNamedExports([ts.factory.createExportSpecifier(false, alias, localName)])), 0);
43983
44088
  context.tracker.trackSymbol(type.symbol, context.enclosingDeclaration, 111551);
@@ -44024,8 +44129,8 @@ var ts;
44024
44129
  }
44025
44130
  if (symbol.flags & 8388608) {
44026
44131
  if (symbol.declarations) {
44027
- for (var _i = 0, _c = symbol.declarations; _i < _c.length; _i++) {
44028
- var node = _c[_i];
44132
+ for (var _i = 0, _e = symbol.declarations; _i < _e.length; _i++) {
44133
+ var node = _e[_i];
44029
44134
  var resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier);
44030
44135
  if (!resolvedModule)
44031
44136
  continue;
@@ -45050,7 +45155,7 @@ var ts;
45050
45155
  members.set(prop.escapedName, getSpreadSymbol(prop, false));
45051
45156
  }
45052
45157
  var result = createAnonymousType(symbol, members, ts.emptyArray, ts.emptyArray, getIndexInfosOfType(source));
45053
- result.objectFlags |= 4194304;
45158
+ result.objectFlags |= 8388608;
45054
45159
  return result;
45055
45160
  }
45056
45161
  function isGenericTypeWithUndefinedConstraint(type) {
@@ -45463,7 +45568,7 @@ var ts;
45463
45568
  mergeSymbolTable(exports, s.exports);
45464
45569
  }
45465
45570
  var type = createAnonymousType(symbol, exports, ts.emptyArray, ts.emptyArray, ts.emptyArray);
45466
- type.objectFlags |= 4096;
45571
+ type.objectFlags |= 8192;
45467
45572
  return type;
45468
45573
  }
45469
45574
  function getAnnotatedTypeForAssignmentDeclaration(declaredType, expression, symbol, declaration) {
@@ -45518,7 +45623,10 @@ var ts;
45518
45623
  if (containsSameNamedThisProperty(expression.left, expression.right)) {
45519
45624
  return anyType;
45520
45625
  }
45521
- var type = resolvedSymbol ? getTypeOfSymbol(resolvedSymbol) : getWidenedLiteralType(checkExpressionCached(expression.right));
45626
+ var isDirectExport = kind === 1 && (ts.isPropertyAccessExpression(expression.left) || ts.isElementAccessExpression(expression.left)) && (ts.isModuleExportsAccessExpression(expression.left.expression) || (ts.isIdentifier(expression.left.expression) && ts.isExportsIdentifier(expression.left.expression)));
45627
+ var type = resolvedSymbol ? getTypeOfSymbol(resolvedSymbol)
45628
+ : isDirectExport ? getRegularTypeOfLiteralType(checkExpressionCached(expression.right))
45629
+ : getWidenedLiteralType(checkExpressionCached(expression.right));
45522
45630
  if (type.flags & 524288 &&
45523
45631
  kind === 2 &&
45524
45632
  symbol.escapedName === "export=") {
@@ -45555,9 +45663,9 @@ var ts;
45555
45663
  }
45556
45664
  });
45557
45665
  var result = createAnonymousType(initialSize !== members_4.size ? undefined : exportedType.symbol, members_4, exportedType.callSignatures, exportedType.constructSignatures, exportedType.indexInfos);
45558
- result.objectFlags |= (ts.getObjectFlags(type) & 4096);
45666
+ result.objectFlags |= (ts.getObjectFlags(type) & 8192);
45559
45667
  if (result.symbol && result.symbol.flags & 32 && type === getDeclaredTypeOfClassOrInterface(result.symbol)) {
45560
- result.objectFlags |= 16777216;
45668
+ result.objectFlags |= 33554432;
45561
45669
  }
45562
45670
  return result;
45563
45671
  }
@@ -45603,7 +45711,7 @@ var ts;
45603
45711
  function getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors) {
45604
45712
  var members = ts.createSymbolTable();
45605
45713
  var stringIndexInfo;
45606
- var objectFlags = 128 | 131072;
45714
+ var objectFlags = 128 | 262144;
45607
45715
  ts.forEach(pattern.elements, function (e) {
45608
45716
  var name = e.propertyName || e.name;
45609
45717
  if (e.dotDotDotToken) {
@@ -45626,7 +45734,7 @@ var ts;
45626
45734
  result.objectFlags |= objectFlags;
45627
45735
  if (includePatternInType) {
45628
45736
  result.pattern = pattern;
45629
- result.objectFlags |= 131072;
45737
+ result.objectFlags |= 262144;
45630
45738
  }
45631
45739
  return result;
45632
45740
  }
@@ -45644,7 +45752,7 @@ var ts;
45644
45752
  if (includePatternInType) {
45645
45753
  result = cloneTypeReference(result);
45646
45754
  result.pattern = pattern;
45647
- result.objectFlags |= 131072;
45755
+ result.objectFlags |= 262144;
45648
45756
  }
45649
45757
  return result;
45650
45758
  }
@@ -48067,7 +48175,7 @@ var ts;
48067
48175
  checkFlags |= 32 | (indexInfo.isReadonly ? 8 : 0);
48068
48176
  indexTypes = ts.append(indexTypes, isTupleType(type) ? getRestTypeOfTupleType(type) || undefinedType : indexInfo.type);
48069
48177
  }
48070
- else if (isObjectLiteralType(type) && !(ts.getObjectFlags(type) & 2097152)) {
48178
+ else if (isObjectLiteralType(type) && !(ts.getObjectFlags(type) & 4194304)) {
48071
48179
  checkFlags |= 32;
48072
48180
  indexTypes = ts.append(indexTypes, undefinedType);
48073
48181
  }
@@ -48121,10 +48229,10 @@ var ts;
48121
48229
  else if (type !== firstType) {
48122
48230
  checkFlags |= 64;
48123
48231
  }
48124
- if (isLiteralType(type) || isPatternLiteralType(type)) {
48232
+ if (isLiteralType(type) || isPatternLiteralType(type) || type === uniqueLiteralType) {
48125
48233
  checkFlags |= 128;
48126
48234
  }
48127
- if (type.flags & 131072) {
48235
+ if (type.flags & 131072 && type !== uniqueLiteralType) {
48128
48236
  checkFlags |= 131072;
48129
48237
  }
48130
48238
  propTypes.push(type);
@@ -48172,15 +48280,15 @@ var ts;
48172
48280
  return property && !(ts.getCheckFlags(property) & 16) ? property : undefined;
48173
48281
  }
48174
48282
  function getReducedType(type) {
48175
- if (type.flags & 1048576 && type.objectFlags & 16777216) {
48283
+ if (type.flags & 1048576 && type.objectFlags & 33554432) {
48176
48284
  return type.resolvedReducedType || (type.resolvedReducedType = getReducedUnionType(type));
48177
48285
  }
48178
48286
  else if (type.flags & 2097152) {
48179
- if (!(type.objectFlags & 16777216)) {
48180
- type.objectFlags |= 16777216 |
48181
- (ts.some(getPropertiesOfUnionOrIntersectionType(type), isNeverReducedProperty) ? 33554432 : 0);
48287
+ if (!(type.objectFlags & 33554432)) {
48288
+ type.objectFlags |= 33554432 |
48289
+ (ts.some(getPropertiesOfUnionOrIntersectionType(type), isNeverReducedProperty) ? 67108864 : 0);
48182
48290
  }
48183
- return type.objectFlags & 33554432 ? neverType : type;
48291
+ return type.objectFlags & 67108864 ? neverType : type;
48184
48292
  }
48185
48293
  return type;
48186
48294
  }
@@ -48207,7 +48315,7 @@ var ts;
48207
48315
  return !prop.valueDeclaration && !!(ts.getCheckFlags(prop) & 1024);
48208
48316
  }
48209
48317
  function elaborateNeverIntersection(errorInfo, type) {
48210
- if (type.flags & 2097152 && ts.getObjectFlags(type) & 33554432) {
48318
+ if (type.flags & 2097152 && ts.getObjectFlags(type) & 67108864) {
48211
48319
  var neverProp = ts.find(getPropertiesOfUnionOrIntersectionType(type), isDiscriminantWithNeverType);
48212
48320
  if (neverProp) {
48213
48321
  return ts.chainDiagnosticMessages(errorInfo, ts.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents, typeToString(type, undefined, 536870912), symbolToString(neverProp));
@@ -48920,7 +49028,7 @@ var ts;
48920
49028
  result |= ts.getObjectFlags(type);
48921
49029
  }
48922
49030
  }
48923
- return result & 458752;
49031
+ return result & 917504;
48924
49032
  }
48925
49033
  function createTypeReference(target, typeArguments) {
48926
49034
  var id = getTypeListId(typeArguments);
@@ -49760,7 +49868,7 @@ var ts;
49760
49868
  if (type === wildcardType)
49761
49869
  includes |= 8388608;
49762
49870
  if (!strictNullChecks && flags & 98304) {
49763
- if (!(ts.getObjectFlags(type) & 65536))
49871
+ if (!(ts.getObjectFlags(type) & 131072))
49764
49872
  includes |= 4194304;
49765
49873
  }
49766
49874
  else {
@@ -49781,6 +49889,9 @@ var ts;
49781
49889
  return includes;
49782
49890
  }
49783
49891
  function removeSubtypes(types, hasObjectTypes) {
49892
+ if (types.length < 2) {
49893
+ return types;
49894
+ }
49784
49895
  var id = getTypeListId(types);
49785
49896
  var match = subtypeReductionCache.get(id);
49786
49897
  if (match) {
@@ -49949,8 +50060,8 @@ var ts;
49949
50060
  origin = createOriginUnionOrIntersectionType(1048576, reducedTypes);
49950
50061
  }
49951
50062
  }
49952
- var objectFlags = (includes & 36323363 ? 0 : 32768) |
49953
- (includes & 2097152 ? 16777216 : 0);
50063
+ var objectFlags = (includes & 36323363 ? 0 : 65536) |
50064
+ (includes & 2097152 ? 33554432 : 0);
49954
50065
  return getUnionTypeFromSortedList(typeSet, objectFlags, aliasSymbol, aliasTypeArguments, origin);
49955
50066
  }
49956
50067
  function getUnionOrIntersectionTypePredicate(signatures, kind) {
@@ -50122,14 +50233,14 @@ var ts;
50122
50233
  }
50123
50234
  function intersectUnionsOfPrimitiveTypes(types) {
50124
50235
  var unionTypes;
50125
- var index = ts.findIndex(types, function (t) { return !!(ts.getObjectFlags(t) & 32768); });
50236
+ var index = ts.findIndex(types, function (t) { return !!(ts.getObjectFlags(t) & 65536); });
50126
50237
  if (index < 0) {
50127
50238
  return false;
50128
50239
  }
50129
50240
  var i = index + 1;
50130
50241
  while (i < types.length) {
50131
50242
  var t = types[i];
50132
- if (ts.getObjectFlags(t) & 32768) {
50243
+ if (ts.getObjectFlags(t) & 65536) {
50133
50244
  (unionTypes || (unionTypes = [types[index]])).push(t);
50134
50245
  ts.orderedRemoveItemAt(types, i);
50135
50246
  }
@@ -50153,7 +50264,7 @@ var ts;
50153
50264
  }
50154
50265
  }
50155
50266
  }
50156
- types[index] = getUnionTypeFromSortedList(result, 32768);
50267
+ types[index] = getUnionTypeFromSortedList(result, 65536);
50157
50268
  return true;
50158
50269
  }
50159
50270
  function createIntersectionType(types, aliasSymbol, aliasTypeArguments) {
@@ -50372,10 +50483,18 @@ var ts;
50372
50483
  info.keyType === stringType && include & 8 ? stringOrNumberType : info.keyType : neverType; });
50373
50484
  return getUnionType(ts.concatenate(propertyTypes, indexKeyTypes), 1, undefined, undefined, origin);
50374
50485
  }
50486
+ function isPossiblyReducibleByInstantiation(type) {
50487
+ return ts.some(type.types, function (t) {
50488
+ var uniqueFilled = getUniqueLiteralFilledInstantiation(t);
50489
+ return getReducedType(uniqueFilled) !== uniqueFilled;
50490
+ });
50491
+ }
50375
50492
  function getIndexType(type, stringsOnly, noIndexSignatures) {
50376
50493
  if (stringsOnly === void 0) { stringsOnly = keyofStringsOnly; }
50377
50494
  type = getReducedType(type);
50378
- return type.flags & 1048576 ? getIntersectionType(ts.map(type.types, function (t) { return getIndexType(t, stringsOnly, noIndexSignatures); })) :
50495
+ return type.flags & 1048576 ? isPossiblyReducibleByInstantiation(type)
50496
+ ? getIndexTypeForGenericType(type, stringsOnly)
50497
+ : getIntersectionType(ts.map(type.types, function (t) { return getIndexType(t, stringsOnly, noIndexSignatures); })) :
50379
50498
  type.flags & 2097152 ? getUnionType(ts.map(type.types, function (t) { return getIndexType(t, stringsOnly, noIndexSignatures); })) :
50380
50499
  type.flags & 58982400 || isGenericTupleType(type) || isGenericMappedType(type) && !hasDistributiveNameType(type) ? getIndexTypeForGenericType(type, stringsOnly) :
50381
50500
  ts.getObjectFlags(type) & 32 ? getIndexTypeForMappedType(type, stringsOnly, noIndexSignatures) :
@@ -50532,7 +50651,7 @@ var ts;
50532
50651
  if (noImplicitAny) {
50533
50652
  return false;
50534
50653
  }
50535
- if (ts.getObjectFlags(type) & 4096) {
50654
+ if (ts.getObjectFlags(type) & 8192) {
50536
50655
  return true;
50537
50656
  }
50538
50657
  if (type.flags & 1048576) {
@@ -50743,28 +50862,28 @@ var ts;
50743
50862
  return !!getGenericObjectFlags(type);
50744
50863
  }
50745
50864
  function isGenericObjectType(type) {
50746
- return !!(getGenericObjectFlags(type) & 4194304);
50865
+ return !!(getGenericObjectFlags(type) & 8388608);
50747
50866
  }
50748
50867
  function isGenericIndexType(type) {
50749
- return !!(getGenericObjectFlags(type) & 8388608);
50868
+ return !!(getGenericObjectFlags(type) & 16777216);
50750
50869
  }
50751
50870
  function getGenericObjectFlags(type) {
50752
50871
  if (type.flags & 3145728) {
50753
- if (!(type.objectFlags & 2097152)) {
50754
- type.objectFlags |= 2097152 |
50872
+ if (!(type.objectFlags & 4194304)) {
50873
+ type.objectFlags |= 4194304 |
50755
50874
  ts.reduceLeft(type.types, function (flags, t) { return flags | getGenericObjectFlags(t); }, 0);
50756
50875
  }
50757
- return type.objectFlags & 12582912;
50876
+ return type.objectFlags & 25165824;
50758
50877
  }
50759
50878
  if (type.flags & 33554432) {
50760
- if (!(type.objectFlags & 2097152)) {
50761
- type.objectFlags |= 2097152 |
50879
+ if (!(type.objectFlags & 4194304)) {
50880
+ type.objectFlags |= 4194304 |
50762
50881
  getGenericObjectFlags(type.substitute) | getGenericObjectFlags(type.baseType);
50763
50882
  }
50764
- return type.objectFlags & 12582912;
50883
+ return type.objectFlags & 25165824;
50765
50884
  }
50766
- return (type.flags & 58982400 || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 : 0) |
50767
- (type.flags & (58982400 | 4194304 | 134217728 | 268435456) && !isPatternLiteralType(type) ? 8388608 : 0);
50885
+ return (type.flags & 58982400 || isGenericMappedType(type) || isGenericTupleType(type) ? 8388608 : 0) |
50886
+ (type.flags & (58982400 | 4194304 | 134217728 | 268435456) && !isPatternLiteralType(type) ? 16777216 : 0);
50768
50887
  }
50769
50888
  function getSimplifiedType(type, writing) {
50770
50889
  return type.flags & 8388608 ? getSimplifiedIndexedAccessType(type, writing) :
@@ -50945,6 +51064,10 @@ var ts;
50945
51064
  }
50946
51065
  return type;
50947
51066
  }
51067
+ function maybeCloneTypeParameter(p) {
51068
+ var constraint = getConstraintOfTypeParameter(p);
51069
+ return constraint && (isGenericObjectType(constraint) || isGenericIndexType(constraint)) ? cloneTypeParameter(p) : p;
51070
+ }
50948
51071
  function isTypicalNondistributiveConditional(root) {
50949
51072
  return !root.isDistributive && isSingletonTupleType(root.node.checkType) && isSingletonTupleType(root.node.extendsType);
50950
51073
  }
@@ -50958,26 +51081,38 @@ var ts;
50958
51081
  var result;
50959
51082
  var extraTypes;
50960
51083
  var tailCount = 0;
50961
- while (true) {
51084
+ var _loop_18 = function () {
50962
51085
  if (tailCount === 1000) {
50963
51086
  error(currentNode, ts.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite);
50964
51087
  result = errorType;
50965
- break;
51088
+ return "break";
50966
51089
  }
50967
51090
  var isUnwrapped = isTypicalNondistributiveConditional(root);
50968
51091
  var checkType = instantiateType(unwrapNondistributiveConditionalTuple(root, getActualTypeVariable(root.checkType)), mapper);
50969
51092
  var checkTypeInstantiable = isGenericType(checkType);
50970
51093
  var extendsType = instantiateType(unwrapNondistributiveConditionalTuple(root, root.extendsType), mapper);
50971
51094
  if (checkType === wildcardType || extendsType === wildcardType) {
50972
- return wildcardType;
51095
+ return { value: wildcardType };
50973
51096
  }
50974
51097
  var combinedMapper = void 0;
50975
51098
  if (root.inferTypeParameters) {
50976
- var context = createInferenceContext(root.inferTypeParameters, undefined, 0);
50977
- if (!checkTypeInstantiable) {
50978
- inferTypes(context.inferences, checkType, extendsType, 512 | 1024);
51099
+ var freshParams = ts.sameMap(root.inferTypeParameters, maybeCloneTypeParameter);
51100
+ var freshMapper = freshParams !== root.inferTypeParameters ? createTypeMapper(root.inferTypeParameters, freshParams) : undefined;
51101
+ var context = createInferenceContext(freshParams, undefined, 0);
51102
+ if (freshMapper) {
51103
+ var freshCombinedMapper = combineTypeMappers(mapper, freshMapper);
51104
+ for (var _i = 0, freshParams_1 = freshParams; _i < freshParams_1.length; _i++) {
51105
+ var p = freshParams_1[_i];
51106
+ if (root.inferTypeParameters.indexOf(p) === -1) {
51107
+ p.mapper = freshCombinedMapper;
51108
+ }
51109
+ }
50979
51110
  }
50980
- combinedMapper = mapper ? combineTypeMappers(context.mapper, mapper) : context.mapper;
51111
+ if (!checkTypeInstantiable || !ts.some(root.inferTypeParameters, function (t) { return t === extendsType; })) {
51112
+ inferTypes(context.inferences, checkType, instantiateType(extendsType, freshMapper), 512 | 1024);
51113
+ }
51114
+ var innerMapper = combineTypeMappers(freshMapper, context.mapper);
51115
+ combinedMapper = mapper ? combineTypeMappers(innerMapper, mapper) : innerMapper;
50981
51116
  }
50982
51117
  var inferredExtendsType = combinedMapper ? instantiateType(unwrapNondistributiveConditionalTuple(root, root.extendsType), combinedMapper) : extendsType;
50983
51118
  if (!checkTypeInstantiable && !isGenericType(inferredExtendsType)) {
@@ -50990,23 +51125,23 @@ var ts;
50990
51125
  var newRoot = falseType_1.root;
50991
51126
  if (newRoot.node.parent === root.node && (!newRoot.isDistributive || newRoot.checkType === root.checkType)) {
50992
51127
  root = newRoot;
50993
- continue;
51128
+ return "continue";
50994
51129
  }
50995
51130
  if (canTailRecurse(falseType_1, mapper)) {
50996
- continue;
51131
+ return "continue";
50997
51132
  }
50998
51133
  }
50999
51134
  result = instantiateType(falseType_1, mapper);
51000
- break;
51135
+ return "break";
51001
51136
  }
51002
51137
  if (inferredExtendsType.flags & 3 || isTypeAssignableTo(getRestrictiveInstantiation(checkType), getRestrictiveInstantiation(inferredExtendsType))) {
51003
51138
  var trueType_1 = getTypeFromTypeNode(root.node.trueType);
51004
51139
  var trueMapper = combinedMapper || mapper;
51005
51140
  if (canTailRecurse(trueType_1, trueMapper)) {
51006
- continue;
51141
+ return "continue";
51007
51142
  }
51008
51143
  result = instantiateType(trueType_1, trueMapper);
51009
- break;
51144
+ return "break";
51010
51145
  }
51011
51146
  }
51012
51147
  result = createType(16777216);
@@ -51017,7 +51152,14 @@ var ts;
51017
51152
  result.combinedMapper = combinedMapper;
51018
51153
  result.aliasSymbol = aliasSymbol || root.aliasSymbol;
51019
51154
  result.aliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(root.aliasTypeArguments, mapper);
51020
- break;
51155
+ return "break";
51156
+ };
51157
+ while (true) {
51158
+ var state_5 = _loop_18();
51159
+ if (typeof state_5 === "object")
51160
+ return state_5.value;
51161
+ if (state_5 === "break")
51162
+ break;
51021
51163
  }
51022
51164
  return extraTypes ? getUnionType(ts.append(extraTypes, result)) : result;
51023
51165
  function canTailRecurse(newType, newMapper) {
@@ -51244,7 +51386,7 @@ var ts;
51244
51386
  }
51245
51387
  }
51246
51388
  var spread = createAnonymousType(type.symbol, members, ts.emptyArray, ts.emptyArray, getIndexInfosOfType(type));
51247
- spread.objectFlags |= 128 | 131072;
51389
+ spread.objectFlags |= 128 | 262144;
51248
51390
  return spread;
51249
51391
  }
51250
51392
  }
@@ -51326,7 +51468,7 @@ var ts;
51326
51468
  }
51327
51469
  }
51328
51470
  var spread = createAnonymousType(symbol, members, ts.emptyArray, ts.emptyArray, ts.sameMap(indexInfos, function (info) { return getIndexInfoWithReadonly(info, readonly); }));
51329
- spread.objectFlags |= 128 | 131072 | 2097152 | objectFlags;
51471
+ spread.objectFlags |= 128 | 262144 | 4194304 | objectFlags;
51330
51472
  return spread;
51331
51473
  }
51332
51474
  function isSpreadableProperty(prop) {
@@ -51419,9 +51561,11 @@ var ts;
51419
51561
  }
51420
51562
  function getESSymbolLikeTypeForNode(node) {
51421
51563
  if (ts.isValidESSymbolDeclaration(node)) {
51422
- var symbol = getSymbolOfNode(node);
51423
- var links = getSymbolLinks(symbol);
51424
- return links.uniqueESSymbolType || (links.uniqueESSymbolType = createUniqueESSymbolType(symbol));
51564
+ var symbol = ts.isCommonJsExportPropertyAssignment(node) ? getSymbolOfNode(node.left) : getSymbolOfNode(node);
51565
+ if (symbol) {
51566
+ var links = getSymbolLinks(symbol);
51567
+ return links.uniqueESSymbolType || (links.uniqueESSymbolType = createUniqueESSymbolType(symbol));
51568
+ }
51425
51569
  }
51426
51570
  return esSymbolType;
51427
51571
  }
@@ -51711,7 +51855,7 @@ var ts;
51711
51855
  }
51712
51856
  function getObjectTypeInstantiation(type, mapper, aliasSymbol, aliasTypeArguments) {
51713
51857
  var declaration = type.objectFlags & 4 ? type.node :
51714
- type.objectFlags & 8388608 ? type.node :
51858
+ type.objectFlags & 16777216 ? type.node :
51715
51859
  type.symbol.declarations[0];
51716
51860
  var links = getNodeLinks(declaration);
51717
51861
  var target = type.objectFlags & 4 ? links.resolvedType :
@@ -51724,8 +51868,8 @@ var ts;
51724
51868
  outerTypeParameters = ts.addRange(outerTypeParameters, templateTagParameters);
51725
51869
  }
51726
51870
  typeParameters = outerTypeParameters || ts.emptyArray;
51727
- var allDeclarations_1 = type.objectFlags & (4 | 8388608) ? [declaration] : type.symbol.declarations;
51728
- typeParameters = (target.objectFlags & (4 | 8388608) || target.symbol.flags & 8192 || target.symbol.flags & 2048) && !target.aliasTypeArguments ?
51871
+ var allDeclarations_1 = type.objectFlags & (4 | 16777216) ? [declaration] : type.symbol.declarations;
51872
+ typeParameters = (target.objectFlags & (4 | 16777216) || target.symbol.flags & 8192 || target.symbol.flags & 2048) && !target.aliasTypeArguments ?
51729
51873
  ts.filter(typeParameters, function (tp) { return ts.some(allDeclarations_1, function (d) { return isTypeParameterPossiblyReferenced(tp, d); }); }) :
51730
51874
  typeParameters;
51731
51875
  links.outerTypeParameters = typeParameters;
@@ -51757,13 +51901,12 @@ var ts;
51757
51901
  node.parent.kind === 199 && node.parent.typeArguments && node === node.parent.qualifier);
51758
51902
  }
51759
51903
  function isTypeParameterPossiblyReferenced(tp, node) {
51760
- if (tp.symbol && tp.symbol.declarations) {
51761
- var n_1 = node;
51762
- while (!ts.some(tp.symbol.declarations, function (d) { return n_1 === d.parent; })) {
51763
- if (!n_1 || n_1.kind === 234 || n_1.kind === 188 && ts.forEachChild(n_1.extendsType, containsReference)) {
51904
+ if (tp.symbol && tp.symbol.declarations && tp.symbol.declarations.length === 1) {
51905
+ var container = tp.symbol.declarations[0].parent;
51906
+ for (var n = node; n !== container; n = n.parent) {
51907
+ if (!n || n.kind === 234 || n.kind === 188 && ts.forEachChild(n.extendsType, containsReference)) {
51764
51908
  return true;
51765
51909
  }
51766
- n_1 = n_1.parent;
51767
51910
  }
51768
51911
  return containsReference(node);
51769
51912
  }
@@ -51875,7 +52018,7 @@ var ts;
51875
52018
  mapper = combineTypeMappers(makeUnaryTypeMapper(origTypeParameter, freshTypeParameter), mapper);
51876
52019
  freshTypeParameter.mapper = mapper;
51877
52020
  }
51878
- if (type.objectFlags & 8388608) {
52021
+ if (type.objectFlags & 16777216) {
51879
52022
  result.node = type.node;
51880
52023
  }
51881
52024
  result.target = type;
@@ -52002,6 +52145,10 @@ var ts;
52002
52145
  }
52003
52146
  return type;
52004
52147
  }
52148
+ function getUniqueLiteralFilledInstantiation(type) {
52149
+ return type.flags & (131068 | 3 | 131072) ? type :
52150
+ type.uniqueLiteralFilledInstantiation || (type.uniqueLiteralFilledInstantiation = instantiateType(type, uniqueLiteralMapper));
52151
+ }
52005
52152
  function getPermissiveInstantiation(type) {
52006
52153
  return type.flags & (131068 | 3 | 131072) ? type :
52007
52154
  type.permissiveInstantiation || (type.permissiveInstantiation = instantiateType(type, permissiveMapper));
@@ -52802,7 +52949,7 @@ var ts;
52802
52949
  return true;
52803
52950
  }
52804
52951
  }
52805
- else {
52952
+ else if (!((source.flags | target.flags) & (3145728 | 8388608 | 16777216 | 33554432))) {
52806
52953
  if (source.flags !== target.flags)
52807
52954
  return false;
52808
52955
  if (source.flags & 67358815)
@@ -52810,7 +52957,7 @@ var ts;
52810
52957
  }
52811
52958
  if (source.flags & 524288 && target.flags & 524288) {
52812
52959
  var related = relation.get(getRelationKey(source, target, 0, relation, false));
52813
- if (related !== undefined && !(related & 24)) {
52960
+ if (related !== undefined) {
52814
52961
  return !!(related & 1);
52815
52962
  }
52816
52963
  }
@@ -53157,7 +53304,7 @@ var ts;
53157
53304
  isSimpleTypeRelatedTo(source, target, relation, reportErrors ? reportError : undefined))
53158
53305
  return -1;
53159
53306
  if (source.flags & 469499904 || target.flags & 469499904) {
53160
- var isPerformingExcessPropertyChecks = !(intersectionState & 2) && (isObjectLiteralType(source) && ts.getObjectFlags(source) & 8192);
53307
+ var isPerformingExcessPropertyChecks = !(intersectionState & 2) && (isObjectLiteralType(source) && ts.getObjectFlags(source) & 16384);
53161
53308
  if (isPerformingExcessPropertyChecks) {
53162
53309
  if (hasExcessProperties(source, target, reportErrors)) {
53163
53310
  if (reportErrors) {
@@ -53194,7 +53341,7 @@ var ts;
53194
53341
  unionOrIntersectionRelatedTo(source, target, reportErrors, intersectionState) :
53195
53342
  recursiveTypeRelatedTo(source, target, reportErrors, intersectionState, recursionFlags);
53196
53343
  if (result_7 && !inPropertyCheck && (target.flags & 2097152 && (isPerformingExcessPropertyChecks || isPerformingCommonPropertyChecks) ||
53197
- isNonGenericObjectType(target) && !isArrayType(target) && !isTupleType(target) && source.flags & 2097152 && getApparentType(source).flags & 3670016 && !ts.some(source.types, function (t) { return !!(ts.getObjectFlags(t) & 262144); }))) {
53344
+ isNonGenericObjectType(target) && !isArrayType(target) && !isTupleType(target) && source.flags & 2097152 && getApparentType(source).flags & 3670016 && !ts.some(source.types, function (t) { return !!(ts.getObjectFlags(t) & 524288); }))) {
53198
53345
  inPropertyCheck = true;
53199
53346
  result_7 &= recursiveTypeRelatedTo(source, target, reportErrors, 4, recursionFlags);
53200
53347
  inPropertyCheck = false;
@@ -53255,7 +53402,7 @@ var ts;
53255
53402
  if ((source.flags & 3145728) && (target.flags & 3145728)) {
53256
53403
  var sourceUnionOrIntersection = source;
53257
53404
  var targetUnionOrIntersection = target;
53258
- if (sourceUnionOrIntersection.objectFlags & targetUnionOrIntersection.objectFlags & 32768) {
53405
+ if (sourceUnionOrIntersection.objectFlags & targetUnionOrIntersection.objectFlags & 65536) {
53259
53406
  return;
53260
53407
  }
53261
53408
  var sourceSize = sourceUnionOrIntersection.types.length;
@@ -53284,7 +53431,7 @@ var ts;
53284
53431
  }
53285
53432
  function hasExcessProperties(source, target, reportErrors) {
53286
53433
  var _a;
53287
- if (!isExcessPropertyCheckTarget(target) || !noImplicitAny && ts.getObjectFlags(target) & 4096) {
53434
+ if (!isExcessPropertyCheckTarget(target) || !noImplicitAny && ts.getObjectFlags(target) & 8192) {
53288
53435
  return false;
53289
53436
  }
53290
53437
  var isComparingJsxAttributes = !!(ts.getObjectFlags(source) & 2048);
@@ -53298,7 +53445,7 @@ var ts;
53298
53445
  reducedTarget = findMatchingDiscriminantType(source, target, isRelatedTo) || filterPrimitivesIfContainsNonPrimitive(target);
53299
53446
  checkTypes = reducedTarget.flags & 1048576 ? reducedTarget.types : [reducedTarget];
53300
53447
  }
53301
- var _loop_18 = function (prop) {
53448
+ var _loop_19 = function (prop) {
53302
53449
  if (shouldCheckAsExcessProperty(prop, source.symbol) && !isIgnoredJsxProperty(source, prop)) {
53303
53450
  if (!isKnownProperty(reducedTarget, prop.escapedName, isComparingJsxAttributes)) {
53304
53451
  if (reportErrors) {
@@ -53351,9 +53498,9 @@ var ts;
53351
53498
  };
53352
53499
  for (var _i = 0, _b = getPropertiesOfType(source); _i < _b.length; _i++) {
53353
53500
  var prop = _b[_i];
53354
- var state_5 = _loop_18(prop);
53355
- if (typeof state_5 === "object")
53356
- return state_5.value;
53501
+ var state_6 = _loop_19(prop);
53502
+ if (typeof state_6 === "object")
53503
+ return state_6.value;
53357
53504
  }
53358
53505
  return false;
53359
53506
  }
@@ -53700,17 +53847,17 @@ var ts;
53700
53847
  return 0;
53701
53848
  }
53702
53849
  }
53703
- if (sourceFlags & (524288 | 16777216) && source.aliasSymbol && source.aliasTypeArguments && source.aliasSymbol === target.aliasSymbol) {
53850
+ if (sourceFlags & (524288 | 16777216) && source.aliasSymbol &&
53851
+ source.aliasTypeArguments && source.aliasSymbol === target.aliasSymbol &&
53852
+ !(source.aliasTypeArgumentsContainsMarker || target.aliasTypeArgumentsContainsMarker)) {
53704
53853
  var variances = getAliasVariances(source.aliasSymbol);
53705
- if (variances !== ts.emptyArray) {
53706
- var varianceResult = relateVariances(source.aliasTypeArguments, target.aliasTypeArguments, variances, intersectionState);
53707
- if (varianceResult !== undefined) {
53708
- return varianceResult;
53709
- }
53710
- }
53711
- else if (!someContainsMarkerType(source.aliasTypeArguments) && !someContainsMarkerType(target.aliasTypeArguments)) {
53854
+ if (variances === ts.emptyArray) {
53712
53855
  return 1;
53713
53856
  }
53857
+ var varianceResult = relateVariances(source.aliasTypeArguments, target.aliasTypeArguments, variances, intersectionState);
53858
+ if (varianceResult !== undefined) {
53859
+ return varianceResult;
53860
+ }
53714
53861
  }
53715
53862
  if (isSingleElementGenericTupleType(source) && !source.target.readonly && (result = isRelatedTo(getTypeArguments(source)[0], target, 1)) ||
53716
53863
  isSingleElementGenericTupleType(target) && (target.target.readonly || isMutableArrayOrTuple(getBaseConstraintOfType(source) || source)) && (result = isRelatedTo(source, getTypeArguments(target)[0], 2))) {
@@ -53996,20 +54143,19 @@ var ts;
53996
54143
  else if (isGenericMappedType(source)) {
53997
54144
  return 0;
53998
54145
  }
53999
- if (ts.getObjectFlags(source) & 4 && ts.getObjectFlags(target) & 4 && source.target === target.target && !isTupleType(source)) {
54146
+ if (ts.getObjectFlags(source) & 4 && ts.getObjectFlags(target) & 4 && source.target === target.target &&
54147
+ !isTupleType(source) && !(ts.getObjectFlags(source) & 4096 || ts.getObjectFlags(target) & 4096)) {
54000
54148
  if (isEmptyArrayLiteralType(source)) {
54001
54149
  return -1;
54002
54150
  }
54003
54151
  var variances = getVariances(source.target);
54004
- if (variances !== ts.emptyArray) {
54005
- var varianceResult = relateVariances(getTypeArguments(source), getTypeArguments(target), variances, intersectionState);
54006
- if (varianceResult !== undefined) {
54007
- return varianceResult;
54008
- }
54009
- }
54010
- else if (!someContainsMarkerType(getTypeArguments(source)) && !someContainsMarkerType(getTypeArguments(target))) {
54152
+ if (variances === ts.emptyArray) {
54011
54153
  return 1;
54012
54154
  }
54155
+ var varianceResult = relateVariances(getTypeArguments(source), getTypeArguments(target), variances, intersectionState);
54156
+ if (varianceResult !== undefined) {
54157
+ return varianceResult;
54158
+ }
54013
54159
  }
54014
54160
  else if (isReadonlyArrayType(target) ? isArrayType(source) || isTupleType(source) : isArrayType(target) && isTupleType(source) && !source.target.readonly) {
54015
54161
  if (relation !== identityRelation) {
@@ -54019,7 +54165,7 @@ var ts;
54019
54165
  return 0;
54020
54166
  }
54021
54167
  }
54022
- else if ((relation === subtypeRelation || relation === strictSubtypeRelation) && isEmptyObjectType(target) && ts.getObjectFlags(target) & 8192 && !isEmptyObjectType(source)) {
54168
+ else if ((relation === subtypeRelation || relation === strictSubtypeRelation) && isEmptyObjectType(target) && ts.getObjectFlags(target) & 16384 && !isEmptyObjectType(source)) {
54023
54169
  return 0;
54024
54170
  }
54025
54171
  if (sourceFlags & (524288 | 2097152) && targetFlags & 524288) {
@@ -54131,11 +54277,11 @@ var ts;
54131
54277
  }
54132
54278
  var discriminantCombinations = ts.cartesianProduct(sourceDiscriminantTypes);
54133
54279
  var matchingTypes = [];
54134
- var _loop_19 = function (combination) {
54280
+ var _loop_20 = function (combination) {
54135
54281
  var hasMatch = false;
54136
54282
  outer: for (var _c = 0, _d = target.types; _c < _d.length; _c++) {
54137
54283
  var type = _d[_c];
54138
- var _loop_20 = function (i) {
54284
+ var _loop_21 = function (i) {
54139
54285
  var sourceProperty = sourcePropertiesFiltered[i];
54140
54286
  var targetProperty = getPropertyOfType(type, sourceProperty.escapedName);
54141
54287
  if (!targetProperty)
@@ -54148,8 +54294,8 @@ var ts;
54148
54294
  }
54149
54295
  };
54150
54296
  for (var i = 0; i < sourcePropertiesFiltered.length; i++) {
54151
- var state_7 = _loop_20(i);
54152
- switch (state_7) {
54297
+ var state_8 = _loop_21(i);
54298
+ switch (state_8) {
54153
54299
  case "continue-outer": continue outer;
54154
54300
  }
54155
54301
  }
@@ -54162,9 +54308,9 @@ var ts;
54162
54308
  };
54163
54309
  for (var _a = 0, discriminantCombinations_1 = discriminantCombinations; _a < discriminantCombinations_1.length; _a++) {
54164
54310
  var combination = discriminantCombinations_1[_a];
54165
- var state_6 = _loop_19(combination);
54166
- if (typeof state_6 === "object")
54167
- return state_6.value;
54311
+ var state_7 = _loop_20(combination);
54312
+ if (typeof state_7 === "object")
54313
+ return state_7.value;
54168
54314
  }
54169
54315
  var result = -1;
54170
54316
  for (var _b = 0, matchingTypes_1 = matchingTypes; _b < matchingTypes_1.length; _b++) {
@@ -54791,31 +54937,37 @@ var ts;
54791
54937
  }
54792
54938
  return false;
54793
54939
  }
54794
- function getVariances(type) {
54795
- return type === globalArrayType || type === globalReadonlyArrayType || type.objectFlags & 8 ?
54796
- arrayVariances :
54797
- getVariancesWorker(type.symbol, type.typeParameters);
54940
+ function getMarkerTypeReference(type, source, target) {
54941
+ var result = createTypeReference(type, ts.map(type.typeParameters, function (t) { return t === source ? target : t; }));
54942
+ result.objectFlags |= 4096;
54943
+ return result;
54798
54944
  }
54799
54945
  function getAliasVariances(symbol) {
54800
- return getVariancesWorker(symbol, getSymbolLinks(symbol).typeParameters);
54946
+ var links = getSymbolLinks(symbol);
54947
+ return getVariancesWorker(links.typeParameters, links, function (_links, param, marker) {
54948
+ var type = getTypeAliasInstantiation(symbol, instantiateTypes(links.typeParameters, makeUnaryTypeMapper(param, marker)));
54949
+ type.aliasTypeArgumentsContainsMarker = true;
54950
+ return type;
54951
+ });
54801
54952
  }
54802
- function getVariancesWorker(symbol, typeParameters) {
54953
+ function getVariancesWorker(typeParameters, cache, createMarkerType) {
54954
+ var _a, _b, _c;
54803
54955
  if (typeParameters === void 0) { typeParameters = ts.emptyArray; }
54804
- var links = getSymbolLinks(symbol);
54805
- if (!links.variances) {
54806
- ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push("checkTypes", "getVariancesWorker", { arity: typeParameters.length, id: getTypeId(getDeclaredTypeOfSymbol(symbol)) });
54807
- links.variances = ts.emptyArray;
54808
- var variances = [];
54809
- var _loop_21 = function (tp) {
54956
+ var variances = cache.variances;
54957
+ if (!variances) {
54958
+ ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push("checkTypes", "getVariancesWorker", { arity: typeParameters.length, id: (_c = (_a = cache.id) !== null && _a !== void 0 ? _a : (_b = cache.declaredType) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : -1 });
54959
+ cache.variances = ts.emptyArray;
54960
+ variances = [];
54961
+ var _loop_22 = function (tp) {
54810
54962
  var unmeasurable = false;
54811
54963
  var unreliable = false;
54812
54964
  var oldHandler = outofbandVarianceMarkerHandler;
54813
54965
  outofbandVarianceMarkerHandler = function (onlyUnreliable) { return onlyUnreliable ? unreliable = true : unmeasurable = true; };
54814
- var typeWithSuper = createMarkerType(symbol, tp, markerSuperType);
54815
- var typeWithSub = createMarkerType(symbol, tp, markerSubType);
54966
+ var typeWithSuper = createMarkerType(cache, tp, markerSuperType);
54967
+ var typeWithSub = createMarkerType(cache, tp, markerSubType);
54816
54968
  var variance = (isTypeAssignableTo(typeWithSub, typeWithSuper) ? 1 : 0) |
54817
54969
  (isTypeAssignableTo(typeWithSuper, typeWithSub) ? 2 : 0);
54818
- if (variance === 3 && isTypeAssignableTo(createMarkerType(symbol, tp, markerOtherType), typeWithSuper)) {
54970
+ if (variance === 3 && isTypeAssignableTo(createMarkerType(cache, tp, markerOtherType), typeWithSuper)) {
54819
54971
  variance = 4;
54820
54972
  }
54821
54973
  outofbandVarianceMarkerHandler = oldHandler;
@@ -54831,54 +54983,18 @@ var ts;
54831
54983
  };
54832
54984
  for (var _i = 0, typeParameters_1 = typeParameters; _i < typeParameters_1.length; _i++) {
54833
54985
  var tp = typeParameters_1[_i];
54834
- _loop_21(tp);
54986
+ _loop_22(tp);
54835
54987
  }
54836
- links.variances = variances;
54988
+ cache.variances = variances;
54837
54989
  ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();
54838
54990
  }
54839
- return links.variances;
54840
- }
54841
- function createMarkerType(symbol, source, target) {
54842
- var mapper = makeUnaryTypeMapper(source, target);
54843
- if (symbol.flags & 524288) {
54844
- return getTypeAliasInstantiation(symbol, instantiateTypes(getSymbolLinks(symbol).typeParameters, mapper));
54845
- }
54846
- var type = getDeclaredTypeOfSymbol(symbol);
54847
- return createTypeReference(type, instantiateTypes(type.typeParameters, mapper));
54991
+ return variances;
54848
54992
  }
54849
- function someContainsMarkerType(types, maxDepth) {
54850
- if (maxDepth === void 0) { maxDepth = 4; }
54851
- return ts.some(types, function (t) { return containsMarkerType(t, maxDepth); });
54852
- }
54853
- function containsMarkerType(type, maxDepth) {
54854
- return maxDepth > 0 && (type.flags & 262144 ? type === markerSubType || type === markerSubType || type === markerOtherType :
54855
- type.aliasSymbol ? someContainsMarkerType(type.aliasTypeArguments, maxDepth) :
54856
- type.flags & 524288 ? objectTypeContainsMarkerType(type, maxDepth) :
54857
- type.flags & (3145728 | 134217728) && !(type.flags & 1024) ? someContainsMarkerType(type.types, maxDepth) :
54858
- type.flags & (4194304 | 268435456) ? containsMarkerType(type.type, maxDepth) :
54859
- false);
54860
- }
54861
- function objectTypeContainsMarkerType(type, maxDepth) {
54862
- var objectFlags = ts.getObjectFlags(type);
54863
- if (objectFlags & 4) {
54864
- return someContainsMarkerType(getTypeArguments(type), maxDepth - (type.node ? 1 : 0));
54865
- }
54866
- if (objectFlags & 16 && type.symbol && type.symbol.flags & 2048) {
54867
- var resolved = resolveStructuredTypeMembers(type);
54868
- return ts.some(resolved.properties, function (prop) { return containsMarkerType(getTypeOfSymbol(prop), maxDepth - 1); }) ||
54869
- ts.some(resolved.callSignatures, function (sig) { return signatureContainsMarkerType(sig, maxDepth); }) ||
54870
- ts.some(resolved.constructSignatures, function (sig) { return signatureContainsMarkerType(sig, maxDepth); }) ||
54871
- ts.some(resolved.indexInfos, function (info) { return containsMarkerType(info.type, maxDepth - 1); });
54872
- }
54873
- if (objectFlags & 32) {
54874
- return containsMarkerType(getConstraintTypeFromMappedType(type), maxDepth - 1) ||
54875
- containsMarkerType(getTemplateTypeFromMappedType(type), maxDepth - 1);
54993
+ function getVariances(type) {
54994
+ if (type === globalArrayType || type === globalReadonlyArrayType || type.objectFlags & 8) {
54995
+ return arrayVariances;
54876
54996
  }
54877
- return false;
54878
- }
54879
- function signatureContainsMarkerType(sig, maxDepth) {
54880
- return ts.some(sig.parameters, function (param) { return containsMarkerType(getTypeOfSymbol(param), maxDepth - 1); }) ||
54881
- containsMarkerType(getReturnTypeOfSignature(sig), maxDepth - 1);
54997
+ return getVariancesWorker(type.typeParameters, type, getMarkerTypeReference);
54882
54998
  }
54883
54999
  function hasCovariantVoidArgument(typeArguments, variances) {
54884
55000
  for (var i = 0; i < variances.length; i++) {
@@ -55181,10 +55297,10 @@ var ts;
55181
55297
  if (!(ts.getObjectFlags(type) & 4) || !(ts.getObjectFlags(type.target) & 3)) {
55182
55298
  return undefined;
55183
55299
  }
55184
- if (ts.getObjectFlags(type) & 33554432) {
55185
- return ts.getObjectFlags(type) & 67108864 ? type.cachedEquivalentBaseType : undefined;
55300
+ if (ts.getObjectFlags(type) & 67108864) {
55301
+ return ts.getObjectFlags(type) & 134217728 ? type.cachedEquivalentBaseType : undefined;
55186
55302
  }
55187
- type.objectFlags |= 33554432;
55303
+ type.objectFlags |= 67108864;
55188
55304
  var target = type.target;
55189
55305
  if (ts.getObjectFlags(target) & 1) {
55190
55306
  var baseTypeNode = getBaseTypeNodeOfClass(target);
@@ -55203,7 +55319,7 @@ var ts;
55203
55319
  if (ts.length(getTypeArguments(type)) > ts.length(target.typeParameters)) {
55204
55320
  instantiatedBase = getTypeWithThisArgument(instantiatedBase, ts.last(getTypeArguments(type)));
55205
55321
  }
55206
- type.objectFlags |= 67108864;
55322
+ type.objectFlags |= 134217728;
55207
55323
  return type.cachedEquivalentBaseType = instantiatedBase;
55208
55324
  }
55209
55325
  function isEmptyLiteralType(type) {
@@ -55453,7 +55569,7 @@ var ts;
55453
55569
  return members;
55454
55570
  }
55455
55571
  function getRegularTypeOfObjectLiteral(type) {
55456
- if (!(isObjectLiteralType(type) && ts.getObjectFlags(type) & 8192)) {
55572
+ if (!(isObjectLiteralType(type) && ts.getObjectFlags(type) & 16384)) {
55457
55573
  return type;
55458
55574
  }
55459
55575
  var regularType = type.regularType;
@@ -55464,7 +55580,7 @@ var ts;
55464
55580
  var members = transformTypeOfMembers(type, getRegularTypeOfObjectLiteral);
55465
55581
  var regularNew = createAnonymousType(resolved.symbol, members, resolved.callSignatures, resolved.constructSignatures, resolved.indexInfos);
55466
55582
  regularNew.flags = resolved.flags;
55467
- regularNew.objectFlags |= resolved.objectFlags & ~8192;
55583
+ regularNew.objectFlags |= resolved.objectFlags & ~16384;
55468
55584
  type.regularType = regularNew;
55469
55585
  return regularNew;
55470
55586
  }
@@ -55494,7 +55610,7 @@ var ts;
55494
55610
  var names = new ts.Map();
55495
55611
  for (var _i = 0, _a = getSiblingsOfContext(context); _i < _a.length; _i++) {
55496
55612
  var t = _a[_i];
55497
- if (isObjectLiteralType(t) && !(ts.getObjectFlags(t) & 2097152)) {
55613
+ if (isObjectLiteralType(t) && !(ts.getObjectFlags(t) & 4194304)) {
55498
55614
  for (var _b = 0, _c = getPropertiesOfType(t); _b < _c.length; _b++) {
55499
55615
  var prop = _c[_b];
55500
55616
  names.set(prop.escapedName, prop);
@@ -55539,14 +55655,14 @@ var ts;
55539
55655
  }
55540
55656
  }
55541
55657
  var result = createAnonymousType(type.symbol, members, ts.emptyArray, ts.emptyArray, ts.sameMap(getIndexInfosOfType(type), function (info) { return createIndexInfo(info.keyType, getWidenedType(info.type), info.isReadonly); }));
55542
- result.objectFlags |= (ts.getObjectFlags(type) & (4096 | 262144));
55658
+ result.objectFlags |= (ts.getObjectFlags(type) & (8192 | 524288));
55543
55659
  return result;
55544
55660
  }
55545
55661
  function getWidenedType(type) {
55546
55662
  return getWidenedTypeWithContext(type, undefined);
55547
55663
  }
55548
55664
  function getWidenedTypeWithContext(type, context) {
55549
- if (ts.getObjectFlags(type) & 196608) {
55665
+ if (ts.getObjectFlags(type) & 393216) {
55550
55666
  if (context === undefined && type.widened) {
55551
55667
  return type.widened;
55552
55668
  }
@@ -55577,7 +55693,7 @@ var ts;
55577
55693
  }
55578
55694
  function reportWideningErrorsInType(type) {
55579
55695
  var errorReported = false;
55580
- if (ts.getObjectFlags(type) & 65536) {
55696
+ if (ts.getObjectFlags(type) & 131072) {
55581
55697
  if (type.flags & 1048576) {
55582
55698
  if (ts.some(type.types, isEmptyObjectType)) {
55583
55699
  errorReported = true;
@@ -55603,7 +55719,7 @@ var ts;
55603
55719
  for (var _d = 0, _e = getPropertiesOfObjectType(type); _d < _e.length; _d++) {
55604
55720
  var p = _e[_d];
55605
55721
  var t = getTypeOfSymbol(p);
55606
- if (ts.getObjectFlags(t) & 65536) {
55722
+ if (ts.getObjectFlags(t) & 131072) {
55607
55723
  if (!reportWideningErrorsInType(t)) {
55608
55724
  error(p.valueDeclaration, ts.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p), typeToString(getWidenedType(t)));
55609
55725
  }
@@ -55682,7 +55798,7 @@ var ts;
55682
55798
  errorOrSuggestion(noImplicitAny, declaration, diagnostic, ts.declarationNameToString(ts.getNameOfDeclaration(declaration)), typeAsString);
55683
55799
  }
55684
55800
  function reportErrorsFromWidening(declaration, type, wideningKind) {
55685
- if (produceDiagnostics && noImplicitAny && ts.getObjectFlags(type) & 65536 && (!wideningKind || !getContextualSignatureForFunctionLikeDeclaration(declaration))) {
55801
+ if (produceDiagnostics && noImplicitAny && ts.getObjectFlags(type) & 131072 && (!wideningKind || !getContextualSignatureForFunctionLikeDeclaration(declaration))) {
55686
55802
  if (!reportWideningErrorsInType(type)) {
55687
55803
  reportImplicitAny(declaration, type, wideningKind);
55688
55804
  }
@@ -55794,16 +55910,16 @@ var ts;
55794
55910
  }
55795
55911
  function couldContainTypeVariables(type) {
55796
55912
  var objectFlags = ts.getObjectFlags(type);
55797
- if (objectFlags & 524288) {
55798
- return !!(objectFlags & 1048576);
55913
+ if (objectFlags & 1048576) {
55914
+ return !!(objectFlags & 2097152);
55799
55915
  }
55800
55916
  var result = !!(type.flags & 465829888 ||
55801
55917
  type.flags & 524288 && !isNonGenericTopLevelType(type) && (objectFlags & 4 && (type.node || ts.forEach(getTypeArguments(type), couldContainTypeVariables)) ||
55802
55918
  objectFlags & 16 && type.symbol && type.symbol.flags & (16 | 8192 | 32 | 2048 | 4096) && type.symbol.declarations ||
55803
- objectFlags & (32 | 1024 | 4194304 | 8388608)) ||
55919
+ objectFlags & (32 | 1024 | 8388608 | 16777216)) ||
55804
55920
  type.flags & 3145728 && !(type.flags & 1024) && !isNonGenericTopLevelType(type) && ts.some(type.types, couldContainTypeVariables));
55805
55921
  if (type.flags & 3899393) {
55806
- type.objectFlags |= 524288 | (result ? 1048576 : 0);
55922
+ type.objectFlags |= 1048576 | (result ? 2097152 : 0);
55807
55923
  }
55808
55924
  return result;
55809
55925
  }
@@ -55852,7 +55968,7 @@ var ts;
55852
55968
  return type;
55853
55969
  }
55854
55970
  function isPartiallyInferableType(type) {
55855
- return !(ts.getObjectFlags(type) & 262144) ||
55971
+ return !(ts.getObjectFlags(type) & 524288) ||
55856
55972
  isObjectLiteralType(type) && ts.some(getPropertiesOfType(type), function (prop) { return isPartiallyInferableType(getTypeOfSymbol(prop)); }) ||
55857
55973
  isTupleType(type) && ts.some(getTypeArguments(type), isPartiallyInferableType);
55858
55974
  }
@@ -56127,7 +56243,7 @@ var ts;
56127
56243
  }
56128
56244
  var inference = getInferenceInfoForType(target);
56129
56245
  if (inference) {
56130
- if (ts.getObjectFlags(source) & 262144) {
56246
+ if (ts.getObjectFlags(source) & 524288) {
56131
56247
  return;
56132
56248
  }
56133
56249
  if (!inference.isFixed) {
@@ -56408,7 +56524,7 @@ var ts;
56408
56524
  if (inference && !inference.isFixed && !isFromInferenceBlockedSource(source)) {
56409
56525
  var inferredType = inferTypeForHomomorphicMappedType(source, target, constraintType);
56410
56526
  if (inferredType) {
56411
- inferWithPriority(inferredType, inference.typeParameter, ts.getObjectFlags(source) & 262144 ?
56527
+ inferWithPriority(inferredType, inference.typeParameter, ts.getObjectFlags(source) & 524288 ?
56412
56528
  16 :
56413
56529
  8);
56414
56530
  }
@@ -56548,7 +56664,7 @@ var ts;
56548
56664
  var sourceLen = sourceSignatures.length;
56549
56665
  var targetLen = targetSignatures.length;
56550
56666
  var len = sourceLen < targetLen ? sourceLen : targetLen;
56551
- var skipParameters = !!(ts.getObjectFlags(source) & 262144);
56667
+ var skipParameters = !!(ts.getObjectFlags(source) & 524288);
56552
56668
  for (var i = 0; i < len; i++) {
56553
56669
  inferFromSignature(getBaseSignature(sourceSignatures[sourceLen - len + i]), getErasedSignature(targetSignatures[targetLen - len + i]), skipParameters);
56554
56670
  }
@@ -56613,7 +56729,7 @@ var ts;
56613
56729
  return !!(ts.getObjectFlags(type) & 128);
56614
56730
  }
56615
56731
  function isObjectOrArrayLiteralType(type) {
56616
- return !!(ts.getObjectFlags(type) & (128 | 16384));
56732
+ return !!(ts.getObjectFlags(type) & (128 | 32768));
56617
56733
  }
56618
56734
  function unionObjectAndArrayLiteralCandidates(candidates) {
56619
56735
  if (candidates.length > 1) {
@@ -56918,7 +57034,7 @@ var ts;
56918
57034
  function mapTypesByKeyProperty(types, name) {
56919
57035
  var map = new ts.Map();
56920
57036
  var count = 0;
56921
- var _loop_22 = function (type) {
57037
+ var _loop_23 = function (type) {
56922
57038
  if (type.flags & (524288 | 2097152 | 58982400)) {
56923
57039
  var discriminant = getTypeOfPropertyOfType(type, name);
56924
57040
  if (discriminant) {
@@ -56944,15 +57060,15 @@ var ts;
56944
57060
  };
56945
57061
  for (var _i = 0, types_16 = types; _i < types_16.length; _i++) {
56946
57062
  var type = types_16[_i];
56947
- var state_8 = _loop_22(type);
56948
- if (typeof state_8 === "object")
56949
- return state_8.value;
57063
+ var state_9 = _loop_23(type);
57064
+ if (typeof state_9 === "object")
57065
+ return state_9.value;
56950
57066
  }
56951
57067
  return count >= 10 && count * 2 >= types.length ? map : undefined;
56952
57068
  }
56953
57069
  function getKeyPropertyName(unionType) {
56954
57070
  var types = unionType.types;
56955
- if (types.length < 10 || ts.getObjectFlags(unionType) & 32768 ||
57071
+ if (types.length < 10 || ts.getObjectFlags(unionType) & 65536 ||
56956
57072
  ts.countWhere(types, function (t) { return !!(t.flags & (524288 | 58982400)); }) < 10) {
56957
57073
  return undefined;
56958
57074
  }
@@ -58079,7 +58195,7 @@ var ts;
58079
58195
  return result;
58080
58196
  }
58081
58197
  function getCandidateDiscriminantPropertyAccess(expr) {
58082
- if (ts.isBindingPattern(reference) || ts.isFunctionExpressionOrArrowFunction(reference)) {
58198
+ if (ts.isBindingPattern(reference) || ts.isFunctionExpressionOrArrowFunction(reference) || ts.isObjectLiteralMethod(reference)) {
58083
58199
  if (ts.isIdentifier(expr)) {
58084
58200
  var symbol = getResolvedSymbol(expr);
58085
58201
  var declaration = symbol.valueDeclaration;
@@ -60295,7 +60411,7 @@ var ts;
60295
60411
  var literalType = type.literalType;
60296
60412
  if (!literalType) {
60297
60413
  literalType = type.literalType = cloneTypeReference(type);
60298
- literalType.objectFlags |= 16384 | 131072;
60414
+ literalType.objectFlags |= 32768 | 262144;
60299
60415
  }
60300
60416
  return literalType;
60301
60417
  }
@@ -60424,7 +60540,7 @@ var ts;
60424
60540
  checkTypeAssignableTo(type, getTypeFromTypeNode(enumTag.typeExpression), memberDecl);
60425
60541
  }
60426
60542
  }
60427
- objectFlags |= ts.getObjectFlags(type) & 458752;
60543
+ objectFlags |= ts.getObjectFlags(type) & 917504;
60428
60544
  var nameType = computedNameType && isTypeUsableAsPropertyName(computedNameType) ? computedNameType : undefined;
60429
60545
  var prop = nameType ?
60430
60546
  createSymbol(4 | member.flags, getPropertyNameFromType(nameType), checkFlags | 4096) :
@@ -60548,9 +60664,9 @@ var ts;
60548
60664
  if (hasComputedSymbolProperty)
60549
60665
  indexInfos.push(getObjectLiteralIndexInfo(node, offset, propertiesArray, esSymbolType));
60550
60666
  var result = createAnonymousType(node.symbol, propertiesTable, ts.emptyArray, ts.emptyArray, indexInfos);
60551
- result.objectFlags |= objectFlags | 128 | 131072;
60667
+ result.objectFlags |= objectFlags | 128 | 262144;
60552
60668
  if (isJSObjectLiteral) {
60553
- result.objectFlags |= 4096;
60669
+ result.objectFlags |= 8192;
60554
60670
  }
60555
60671
  if (patternWithComputedProperties) {
60556
60672
  result.objectFlags |= 512;
@@ -60625,7 +60741,7 @@ var ts;
60625
60741
  var member = attributeDecl.symbol;
60626
60742
  if (ts.isJsxAttribute(attributeDecl)) {
60627
60743
  var exprType = checkJsxAttribute(attributeDecl, checkMode);
60628
- objectFlags |= ts.getObjectFlags(exprType) & 458752;
60744
+ objectFlags |= ts.getObjectFlags(exprType) & 917504;
60629
60745
  var attributeSymbol = createSymbol(4 | member.flags, member.escapedName);
60630
60746
  attributeSymbol.declarations = member.declarations;
60631
60747
  attributeSymbol.parent = member.parent;
@@ -60697,7 +60813,7 @@ var ts;
60697
60813
  function createJsxAttributesType() {
60698
60814
  objectFlags |= freshObjectLiteralFlag;
60699
60815
  var result = createAnonymousType(attributes.symbol, attributesTable, ts.emptyArray, ts.emptyArray, ts.emptyArray);
60700
- result.objectFlags |= objectFlags | 128 | 131072;
60816
+ result.objectFlags |= objectFlags | 128 | 262144;
60701
60817
  return result;
60702
60818
  }
60703
60819
  }
@@ -62327,7 +62443,7 @@ var ts;
62327
62443
  var spreadIndex = getSpreadArgumentIndex(args);
62328
62444
  if (spreadIndex >= 0) {
62329
62445
  var effectiveArgs_1 = args.slice(0, spreadIndex);
62330
- var _loop_23 = function (i) {
62446
+ var _loop_24 = function (i) {
62331
62447
  var arg = args[i];
62332
62448
  var spreadType = arg.kind === 224 && (flowLoopCount ? checkExpression(arg.expression) : checkExpressionCached(arg.expression));
62333
62449
  if (spreadType && isTupleType(spreadType)) {
@@ -62343,7 +62459,7 @@ var ts;
62343
62459
  }
62344
62460
  };
62345
62461
  for (var i = spreadIndex; i < args.length; i++) {
62346
- _loop_23(i);
62462
+ _loop_24(i);
62347
62463
  }
62348
62464
  return effectiveArgs_1;
62349
62465
  }
@@ -62584,7 +62700,7 @@ var ts;
62584
62700
  var min_3 = Number.MAX_VALUE;
62585
62701
  var minIndex = 0;
62586
62702
  var i_1 = 0;
62587
- var _loop_24 = function (c) {
62703
+ var _loop_25 = function (c) {
62588
62704
  var chain_2 = function () { return ts.chainDiagnosticMessages(undefined, ts.Diagnostics.Overload_0_of_1_2_gave_the_following_error, i_1 + 1, candidates.length, signatureToString(c)); };
62589
62705
  var diags_2 = getSignatureApplicabilityError(node, args, c, assignableRelation, 0, true, chain_2);
62590
62706
  if (diags_2) {
@@ -62602,7 +62718,7 @@ var ts;
62602
62718
  };
62603
62719
  for (var _a = 0, candidatesForArgumentError_1 = candidatesForArgumentError; _a < candidatesForArgumentError_1.length; _a++) {
62604
62720
  var c = candidatesForArgumentError_1[_a];
62605
- _loop_24(c);
62721
+ _loop_25(c);
62606
62722
  }
62607
62723
  var diags_3 = max > 1 ? allDiagnostics[minIndex] : ts.flatten(allDiagnostics);
62608
62724
  ts.Debug.assert(diags_3.length > 0, "No errors reported for 3 or fewer overload signatures");
@@ -62745,7 +62861,7 @@ var ts;
62745
62861
  }
62746
62862
  var _a = ts.minAndMax(candidates, getNumNonRestParameters), minArgumentCount = _a.min, maxNonRestParam = _a.max;
62747
62863
  var parameters = [];
62748
- var _loop_25 = function (i) {
62864
+ var _loop_26 = function (i) {
62749
62865
  var symbols = ts.mapDefined(candidates, function (s) { return signatureHasRestParameter(s) ?
62750
62866
  i < s.parameters.length - 1 ? s.parameters[i] : ts.last(s.parameters) :
62751
62867
  i < s.parameters.length ? s.parameters[i] : undefined; });
@@ -62753,7 +62869,7 @@ var ts;
62753
62869
  parameters.push(createCombinedSymbolFromTypes(symbols, ts.mapDefined(candidates, function (candidate) { return tryGetTypeAtPosition(candidate, i); })));
62754
62870
  };
62755
62871
  for (var i = 0; i < maxNonRestParam; i++) {
62756
- _loop_25(i);
62872
+ _loop_26(i);
62757
62873
  }
62758
62874
  var restParameterSymbols = ts.mapDefined(candidates, function (c) { return signatureHasRestParameter(c) ? ts.last(c.parameters) : undefined; });
62759
62875
  var flags = 0;
@@ -63393,7 +63509,7 @@ var ts;
63393
63509
  var jsSymbol = getSymbolOfExpando(node, false);
63394
63510
  if ((_a = jsSymbol === null || jsSymbol === void 0 ? void 0 : jsSymbol.exports) === null || _a === void 0 ? void 0 : _a.size) {
63395
63511
  var jsAssignmentType = createAnonymousType(jsSymbol, jsSymbol.exports, ts.emptyArray, ts.emptyArray, ts.emptyArray);
63396
- jsAssignmentType.objectFlags |= 4096;
63512
+ jsAssignmentType.objectFlags |= 8192;
63397
63513
  return getIntersectionType([returnType, jsAssignmentType]);
63398
63514
  }
63399
63515
  }
@@ -63653,7 +63769,7 @@ var ts;
63653
63769
  hasApplicableSignature || (hasApplicableSignature = callSignatures.length !== 0 || constructSignatures.length !== 0);
63654
63770
  if (callSignatures !== resolved.callSignatures || constructSignatures !== resolved.constructSignatures) {
63655
63771
  var result_11 = createAnonymousType(undefined, resolved.members, callSignatures, constructSignatures, resolved.indexInfos);
63656
- result_11.objectFlags |= 8388608;
63772
+ result_11.objectFlags |= 16777216;
63657
63773
  result_11.node = node;
63658
63774
  return result_11;
63659
63775
  }
@@ -64003,6 +64119,9 @@ var ts;
64003
64119
  assignBindingElementTypes(declaration.name, links.type);
64004
64120
  }
64005
64121
  }
64122
+ else if (type) {
64123
+ ts.Debug.assertEqual(links.type, type, "Parameter symbol already has a cached type which differs from newly assigned type");
64124
+ }
64006
64125
  }
64007
64126
  function assignBindingElementTypes(pattern, parentType) {
64008
64127
  for (var _i = 0, _a = pattern.elements; _i < _a.length; _i++) {
@@ -64336,7 +64455,7 @@ var ts;
64336
64455
  var returnType = getReturnTypeFromBody(node, checkMode);
64337
64456
  var returnOnlySignature = createSignature(undefined, undefined, undefined, ts.emptyArray, returnType, undefined, 0, 0);
64338
64457
  var returnOnlyType = createAnonymousType(node.symbol, emptySymbols, [returnOnlySignature], ts.emptyArray, ts.emptyArray);
64339
- returnOnlyType.objectFlags |= 262144;
64458
+ returnOnlyType.objectFlags |= 524288;
64340
64459
  return links.contextFreeType = returnOnlyType;
64341
64460
  }
64342
64461
  }
@@ -65617,7 +65736,7 @@ var ts;
65617
65736
  }
65618
65737
  function checkExpressionForMutableLocation(node, checkMode, contextualType, forceTuple) {
65619
65738
  var type = checkExpression(node, checkMode, forceTuple);
65620
- return isConstContext(node) ? getRegularTypeOfLiteralType(type) :
65739
+ return isConstContext(node) || ts.isCommonJsExportedExpression(node) ? getRegularTypeOfLiteralType(type) :
65621
65740
  isTypeAssertion(node) ? type :
65622
65741
  getWidenedLiteralLikeTypeForContextualType(type, instantiateContextualType(arguments.length === 2 ? getContextualType(node) : contextualType, node));
65623
65742
  }
@@ -66293,7 +66412,7 @@ var ts;
66293
66412
  var indexSymbol = getIndexSymbol(getSymbolOfNode(node));
66294
66413
  if (indexSymbol === null || indexSymbol === void 0 ? void 0 : indexSymbol.declarations) {
66295
66414
  var indexSignatureMap_1 = new ts.Map();
66296
- var _loop_26 = function (declaration) {
66415
+ var _loop_27 = function (declaration) {
66297
66416
  if (declaration.parameters.length === 1 && declaration.parameters[0].type) {
66298
66417
  forEachType(getTypeFromTypeNode(declaration.parameters[0].type), function (type) {
66299
66418
  var entry = indexSignatureMap_1.get(getTypeId(type));
@@ -66308,7 +66427,7 @@ var ts;
66308
66427
  };
66309
66428
  for (var _i = 0, _a = indexSymbol.declarations; _i < _a.length; _i++) {
66310
66429
  var declaration = _a[_i];
66311
- _loop_26(declaration);
66430
+ _loop_27(declaration);
66312
66431
  }
66313
66432
  indexSignatureMap_1.forEach(function (entry) {
66314
66433
  if (entry.declarations.length > 1) {
@@ -69047,7 +69166,7 @@ var ts;
69047
69166
  var interfaceDeclaration = ts.getObjectFlags(type) & 2 ? ts.getDeclarationOfKind(type.symbol, 257) : undefined;
69048
69167
  var localPropDeclaration = declaration && declaration.kind === 220 ||
69049
69168
  name && name.kind === 161 || getParentOfSymbol(prop) === type.symbol ? declaration : undefined;
69050
- var _loop_27 = function (info) {
69169
+ var _loop_28 = function (info) {
69051
69170
  var localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfNode(info.declaration)) === type.symbol ? info.declaration : undefined;
69052
69171
  var errorNode = localPropDeclaration || localIndexDeclaration ||
69053
69172
  (interfaceDeclaration && !ts.some(getBaseTypes(type), function (base) { return !!getPropertyOfObjectType(base, prop.escapedName) && !!getIndexTypeOfType(base, info.keyType); }) ? interfaceDeclaration : undefined);
@@ -69057,7 +69176,7 @@ var ts;
69057
69176
  };
69058
69177
  for (var _i = 0, indexInfos_9 = indexInfos; _i < indexInfos_9.length; _i++) {
69059
69178
  var info = indexInfos_9[_i];
69060
- _loop_27(info);
69179
+ _loop_28(info);
69061
69180
  }
69062
69181
  }
69063
69182
  function checkIndexConstraintForIndexSignature(type, checkInfo) {
@@ -69065,7 +69184,7 @@ var ts;
69065
69184
  var indexInfos = getApplicableIndexInfos(type, checkInfo.keyType);
69066
69185
  var interfaceDeclaration = ts.getObjectFlags(type) & 2 ? ts.getDeclarationOfKind(type.symbol, 257) : undefined;
69067
69186
  var localCheckDeclaration = declaration && getParentOfSymbol(getSymbolOfNode(declaration)) === type.symbol ? declaration : undefined;
69068
- var _loop_28 = function (info) {
69187
+ var _loop_29 = function (info) {
69069
69188
  if (info === checkInfo)
69070
69189
  return "continue";
69071
69190
  var localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfNode(info.declaration)) === type.symbol ? info.declaration : undefined;
@@ -69077,7 +69196,7 @@ var ts;
69077
69196
  };
69078
69197
  for (var _i = 0, indexInfos_10 = indexInfos; _i < indexInfos_10.length; _i++) {
69079
69198
  var info = indexInfos_10[_i];
69080
- _loop_28(info);
69199
+ _loop_29(info);
69081
69200
  }
69082
69201
  }
69083
69202
  function checkTypeNameIsReserved(name, message) {
@@ -69363,7 +69482,7 @@ var ts;
69363
69482
  var baseTypes = baseTypeNode && getBaseTypes(type);
69364
69483
  var baseWithThis = (baseTypes === null || baseTypes === void 0 ? void 0 : baseTypes.length) ? getTypeWithThisArgument(ts.first(baseTypes), type.thisType) : undefined;
69365
69484
  var baseStaticType = getBaseConstructorTypeOfClass(type);
69366
- var _loop_29 = function (member) {
69485
+ var _loop_30 = function (member) {
69367
69486
  if (ts.hasAmbientModifier(member)) {
69368
69487
  return "continue";
69369
69488
  }
@@ -69378,7 +69497,7 @@ var ts;
69378
69497
  };
69379
69498
  for (var _i = 0, _a = node.members; _i < _a.length; _i++) {
69380
69499
  var member = _a[_i];
69381
- _loop_29(member);
69500
+ _loop_30(member);
69382
69501
  }
69383
69502
  }
69384
69503
  function checkExistingMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, member, memberIsParameterProperty, reportErrors) {
@@ -69453,7 +69572,7 @@ var ts;
69453
69572
  }
69454
69573
  function issueMemberSpecificError(node, typeWithThis, baseWithThis, broadDiag) {
69455
69574
  var issuedMemberError = false;
69456
- var _loop_30 = function (member) {
69575
+ var _loop_31 = function (member) {
69457
69576
  if (ts.isStatic(member)) {
69458
69577
  return "continue";
69459
69578
  }
@@ -69471,7 +69590,7 @@ var ts;
69471
69590
  };
69472
69591
  for (var _i = 0, _a = node.members; _i < _a.length; _i++) {
69473
69592
  var member = _a[_i];
69474
- _loop_30(member);
69593
+ _loop_31(member);
69475
69594
  }
69476
69595
  if (!issuedMemberError) {
69477
69596
  checkTypeAssignableTo(typeWithThis, baseWithThis, node.name || node, broadDiag);
@@ -94243,7 +94362,7 @@ var ts;
94243
94362
  var existingDirectories = new ts.Map();
94244
94363
  var getCanonicalFileName = ts.createGetCanonicalFileName(system.useCaseSensitiveFileNames);
94245
94364
  var computeHash = ts.maybeBind(system, system.createHash) || ts.generateDjb2Hash;
94246
- function getSourceFile(fileName, languageVersion, onError) {
94365
+ function getSourceFile(fileName, languageVersionOrOptions, onError) {
94247
94366
  var text;
94248
94367
  try {
94249
94368
  ts.performance.mark("beforeIORead");
@@ -94257,7 +94376,7 @@ var ts;
94257
94376
  }
94258
94377
  text = "";
94259
94378
  }
94260
- return text !== undefined ? ts.createSourceFile(fileName, text, languageVersion, setParentNodes) : undefined;
94379
+ return text !== undefined ? ts.createSourceFile(fileName, text, languageVersionOrOptions, setParentNodes) : undefined;
94261
94380
  }
94262
94381
  function directoryExists(directoryPath) {
94263
94382
  if (existingDirectories.has(directoryPath)) {
@@ -95478,8 +95597,8 @@ var ts;
95478
95597
  for (var _i = 0, oldSourceFiles_2 = oldSourceFiles; _i < oldSourceFiles_2.length; _i++) {
95479
95598
  var oldSourceFile = oldSourceFiles_2[_i];
95480
95599
  var newSourceFile = host.getSourceFileByPath
95481
- ? host.getSourceFileByPath(oldSourceFile.fileName, oldSourceFile.resolvedPath, ts.getEmitScriptTarget(options), undefined, shouldCreateNewSourceFile)
95482
- : host.getSourceFile(oldSourceFile.fileName, ts.getEmitScriptTarget(options), undefined, shouldCreateNewSourceFile);
95600
+ ? host.getSourceFileByPath(oldSourceFile.fileName, oldSourceFile.resolvedPath, getCreateSourceFileOptions(oldSourceFile.fileName, moduleResolutionCache, host, options), undefined, shouldCreateNewSourceFile)
95601
+ : host.getSourceFile(oldSourceFile.fileName, getCreateSourceFileOptions(oldSourceFile.fileName, moduleResolutionCache, host, options), undefined, shouldCreateNewSourceFile);
95483
95602
  if (!newSourceFile) {
95484
95603
  return 0;
95485
95604
  }
@@ -95505,7 +95624,6 @@ var ts;
95505
95624
  newSourceFile.originalFileName = oldSourceFile.originalFileName;
95506
95625
  newSourceFile.resolvedPath = oldSourceFile.resolvedPath;
95507
95626
  newSourceFile.fileName = oldSourceFile.fileName;
95508
- newSourceFile.impliedNodeFormat = oldSourceFile.impliedNodeFormat;
95509
95627
  var packageName = oldProgram.sourceFileToPackageName.get(oldSourceFile.path);
95510
95628
  if (packageName !== undefined) {
95511
95629
  var prevKind = seenPackageNames.get(packageName);
@@ -96312,6 +96430,14 @@ var ts;
96312
96430
  ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();
96313
96431
  return result;
96314
96432
  }
96433
+ function getCreateSourceFileOptions(fileName, moduleResolutionCache, host, options) {
96434
+ var impliedNodeFormat = getImpliedNodeFormatForFile(toPath(fileName), moduleResolutionCache === null || moduleResolutionCache === void 0 ? void 0 : moduleResolutionCache.getPackageJsonInfoCache(), host, options);
96435
+ return {
96436
+ languageVersion: ts.getEmitScriptTarget(options),
96437
+ impliedNodeFormat: impliedNodeFormat,
96438
+ setExternalModuleIndicator: ts.getSetExternalModuleIndicator(options)
96439
+ };
96440
+ }
96315
96441
  function findSourceFileWorker(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId) {
96316
96442
  var path = toPath(fileName);
96317
96443
  if (useSourceOfProjectReferenceRedirect) {
@@ -96382,7 +96508,7 @@ var ts;
96382
96508
  redirectedPath = toPath(redirect);
96383
96509
  }
96384
96510
  }
96385
- var file = host.getSourceFile(fileName, ts.getEmitScriptTarget(options), function (hostErrorMessage) { return addFilePreprocessingFileExplainingDiagnostic(undefined, reason, ts.Diagnostics.Cannot_read_file_0_Colon_1, [fileName, hostErrorMessage]); }, shouldCreateNewSourceFile);
96511
+ var file = host.getSourceFile(fileName, getCreateSourceFileOptions(fileName, moduleResolutionCache, host, options), function (hostErrorMessage) { return addFilePreprocessingFileExplainingDiagnostic(undefined, reason, ts.Diagnostics.Cannot_read_file_0_Colon_1, [fileName, hostErrorMessage]); }, shouldCreateNewSourceFile);
96386
96512
  if (packageId) {
96387
96513
  var packageIdKey = ts.packageIdToString(packageId);
96388
96514
  var fileFromPackageId = packageIdToSourceFile.get(packageIdKey);
@@ -96407,7 +96533,6 @@ var ts;
96407
96533
  file.path = path;
96408
96534
  file.resolvedPath = toPath(fileName);
96409
96535
  file.originalFileName = originalFileName;
96410
- file.impliedNodeFormat = getImpliedNodeFormatForFile(file.resolvedPath, moduleResolutionCache === null || moduleResolutionCache === void 0 ? void 0 : moduleResolutionCache.getPackageJsonInfoCache(), host, options);
96411
96536
  addFileIncludeReason(file, reason);
96412
96537
  if (host.useCaseSensitiveFileNames()) {
96413
96538
  var pathLowerCase = ts.toFileNameLowerCase(path);
@@ -96868,7 +96993,7 @@ var ts;
96868
96993
  }
96869
96994
  }
96870
96995
  else if (firstNonAmbientExternalModuleSourceFile && languageVersion < 2 && options.module === ts.ModuleKind.None) {
96871
- var span = ts.getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
96996
+ var span = ts.getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
96872
96997
  programDiagnostics.add(ts.createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, ts.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none));
96873
96998
  }
96874
96999
  if (outputFile && !options.emitDeclarationOnly) {
@@ -96876,7 +97001,7 @@ var ts;
96876
97001
  createDiagnosticForOptionName(ts.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0, options.out ? "out" : "outFile", "module");
96877
97002
  }
96878
97003
  else if (options.module === undefined && firstNonAmbientExternalModuleSourceFile) {
96879
- var span = ts.getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
97004
+ var span = ts.getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
96880
97005
  programDiagnostics.add(ts.createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, ts.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, options.out ? "out" : "outFile"));
96881
97006
  }
96882
97007
  }
@@ -99794,7 +99919,7 @@ var ts;
99794
99919
  importedFileFromNodeModules = importedFileFromNodeModules || isInNodeModules;
99795
99920
  });
99796
99921
  var sortedPaths = [];
99797
- var _loop_31 = function (directory) {
99922
+ var _loop_32 = function (directory) {
99798
99923
  var directoryStart = ts.ensureTrailingDirectorySeparator(directory);
99799
99924
  var pathsInDirectory;
99800
99925
  allFileNames.forEach(function (_a, fileName) {
@@ -99818,9 +99943,9 @@ var ts;
99818
99943
  };
99819
99944
  var out_directory_1;
99820
99945
  for (var directory = ts.getDirectoryPath(importingFileName); allFileNames.size !== 0;) {
99821
- var state_9 = _loop_31(directory);
99946
+ var state_10 = _loop_32(directory);
99822
99947
  directory = out_directory_1;
99823
- if (state_9 === "break")
99948
+ if (state_10 === "break")
99824
99949
  break;
99825
99950
  }
99826
99951
  if (allFileNames.size) {
@@ -100540,7 +100665,7 @@ var ts;
100540
100665
  var useCaseSensitiveFileNames = host.useCaseSensitiveFileNames();
100541
100666
  var hostGetNewLine = ts.memoize(function () { return host.getNewLine(); });
100542
100667
  return {
100543
- getSourceFile: function (fileName, languageVersion, onError) {
100668
+ getSourceFile: function (fileName, languageVersionOrOptions, onError) {
100544
100669
  var text;
100545
100670
  try {
100546
100671
  ts.performance.mark("beforeIORead");
@@ -100554,7 +100679,7 @@ var ts;
100554
100679
  }
100555
100680
  text = "";
100556
100681
  }
100557
- return text !== undefined ? ts.createSourceFile(fileName, text, languageVersion) : undefined;
100682
+ return text !== undefined ? ts.createSourceFile(fileName, text, languageVersionOrOptions) : undefined;
100558
100683
  },
100559
100684
  getDefaultLibLocation: ts.maybeBind(host, host.getDefaultLibLocation),
100560
100685
  getDefaultLibFileName: function (options) { return host.getDefaultLibFileName(options); },
@@ -100985,13 +101110,13 @@ var ts;
100985
101110
  }
100986
101111
  return directoryStructureHost.fileExists(fileName);
100987
101112
  }
100988
- function getVersionedSourceFileByPath(fileName, path, languageVersion, onError, shouldCreateNewSourceFile) {
101113
+ function getVersionedSourceFileByPath(fileName, path, languageVersionOrOptions, onError, shouldCreateNewSourceFile) {
100989
101114
  var hostSourceFile = sourceFilesCache.get(path);
100990
101115
  if (isFileMissingOnHost(hostSourceFile)) {
100991
101116
  return undefined;
100992
101117
  }
100993
101118
  if (hostSourceFile === undefined || shouldCreateNewSourceFile || isFilePresenceUnknownOnHost(hostSourceFile)) {
100994
- var sourceFile = getNewSourceFile(fileName, languageVersion, onError);
101119
+ var sourceFile = getNewSourceFile(fileName, languageVersionOrOptions, onError);
100995
101120
  if (hostSourceFile) {
100996
101121
  if (sourceFile) {
100997
101122
  hostSourceFile.sourceFile = sourceFile;