typescript 4.7.0-dev.20220308 → 4.7.0-dev.20220311
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/lib.es2022.object.d.ts +1 -1
- package/lib/tsc.js +179 -110
- package/lib/tsserver.js +227 -125
- package/lib/tsserverlibrary.d.ts +3 -1
- package/lib/tsserverlibrary.js +227 -125
- package/lib/typescript.d.ts +3 -1
- package/lib/typescript.js +227 -125
- package/lib/typescriptServices.d.ts +3 -1
- package/lib/typescriptServices.js +227 -125
- package/lib/typingsInstaller.js +227 -125
- package/package.json +1 -1
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-dev.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220311";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -6232,7 +6232,6 @@ var ts;
|
|
|
6232
6232
|
Command_line_Options: diag(6171, ts.DiagnosticCategory.Message, "Command_line_Options_6171", "Command-line Options"),
|
|
6233
6233
|
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
6234
|
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
6235
|
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
6236
|
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
6237
|
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 +6338,7 @@ var ts;
|
|
|
6339
6338
|
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
6339
|
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
6340
|
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"),
|
|
6341
|
+
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
6342
|
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
6343
|
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
6344
|
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 +6349,6 @@ var ts;
|
|
|
6350
6349
|
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
6350
|
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
6351
|
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
6352
|
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
6353
|
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
6354
|
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 +6376,13 @@ var ts;
|
|
|
6378
6376
|
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
6377
|
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
6378
|
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
|
|
6379
|
+
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
6380
|
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
6381
|
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
6382
|
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
6383
|
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
6384
|
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
|
|
6385
|
+
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
6386
|
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
6387
|
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
6388
|
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 +6395,13 @@ var ts;
|
|
|
6397
6395
|
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
6396
|
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
6397
|
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"),
|
|
6398
|
+
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
6399
|
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
6400
|
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
6401
|
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
6402
|
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
6403
|
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
|
|
6404
|
+
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
6405
|
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
6406
|
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
6407
|
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 +6411,7 @@ var ts;
|
|
|
6413
6411
|
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
6412
|
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
6413
|
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"),
|
|
6414
|
+
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
6415
|
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
6416
|
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
6417
|
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 +6421,76 @@ var ts;
|
|
|
6423
6421
|
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
6422
|
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
6423
|
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'"),
|
|
6424
|
+
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
6425
|
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
|
|
6426
|
+
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
6427
|
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
6428
|
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
6429
|
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
6430
|
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
6431
|
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
6432
|
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
|
|
6433
|
+
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
6434
|
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
6435
|
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
6436
|
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
6437
|
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
|
|
6438
|
+
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
6439
|
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
6440
|
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
6441
|
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
|
|
6442
|
+
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
6443
|
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
6444
|
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
|
|
6445
|
+
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
6446
|
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
6447
|
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
|
|
6448
|
+
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."),
|
|
6449
|
+
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
6450
|
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
|
|
6454
|
-
|
|
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
|
|
6451
|
+
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."),
|
|
6452
|
+
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."),
|
|
6453
|
+
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."),
|
|
6454
|
+
Deprecated_setting_Use_outFile_instead: diag(6677, ts.DiagnosticCategory.Message, "Deprecated_setting_Use_outFile_instead_6677", "Deprecated setting. Use 'outFile' instead."),
|
|
6457
6455
|
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
|
|
6456
|
+
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
6457
|
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
6458
|
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
|
|
6459
|
+
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
6460
|
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
|
|
6461
|
+
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."),
|
|
6462
|
+
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."),
|
|
6463
|
+
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
6464
|
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
6465
|
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"),
|
|
6466
|
+
Enable_importing_json_files: diag(6689, ts.DiagnosticCategory.Message, "Enable_importing_json_files_6689", "Enable importing .json files."),
|
|
6469
6467
|
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
6468
|
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
6469
|
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
6470
|
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
6471
|
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
6472
|
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
|
|
6473
|
+
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
6474
|
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
|
|
6475
|
+
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
6476
|
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
|
|
6477
|
+
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
6478
|
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
|
|
6479
|
+
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
6480
|
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
6481
|
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
|
|
6482
|
+
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
6483
|
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
6484
|
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
|
|
6485
|
+
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
6486
|
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
6487
|
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"),
|
|
6488
|
+
Enable_verbose_logging: diag(6713, ts.DiagnosticCategory.Message, "Enable_verbose_logging_6713", "Enable verbose logging."),
|
|
6491
6489
|
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
6490
|
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
6491
|
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
|
-
|
|
6492
|
+
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."),
|
|
6493
|
+
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
6494
|
one_of_Colon: diag(6900, ts.DiagnosticCategory.Message, "one_of_Colon_6900", "one of:"),
|
|
6498
6495
|
one_or_more_Colon: diag(6901, ts.DiagnosticCategory.Message, "one_or_more_Colon_6901", "one or more:"),
|
|
6499
6496
|
type_Colon: diag(6902, ts.DiagnosticCategory.Message, "type_Colon_6902", "type:"),
|
|
@@ -11810,10 +11807,23 @@ var ts;
|
|
|
11810
11807
|
&& node.parent.parent.kind === 236;
|
|
11811
11808
|
}
|
|
11812
11809
|
ts.isVariableDeclarationInVariableStatement = isVariableDeclarationInVariableStatement;
|
|
11810
|
+
function isCommonJsExportedExpression(node) {
|
|
11811
|
+
if (!isInJSFile(node))
|
|
11812
|
+
return false;
|
|
11813
|
+
return (ts.isObjectLiteralExpression(node.parent) && ts.isBinaryExpression(node.parent.parent) && getAssignmentDeclarationKind(node.parent.parent) === 2) ||
|
|
11814
|
+
isCommonJsExportPropertyAssignment(node.parent);
|
|
11815
|
+
}
|
|
11816
|
+
ts.isCommonJsExportedExpression = isCommonJsExportedExpression;
|
|
11817
|
+
function isCommonJsExportPropertyAssignment(node) {
|
|
11818
|
+
if (!isInJSFile(node))
|
|
11819
|
+
return false;
|
|
11820
|
+
return (ts.isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 1);
|
|
11821
|
+
}
|
|
11822
|
+
ts.isCommonJsExportPropertyAssignment = isCommonJsExportPropertyAssignment;
|
|
11813
11823
|
function isValidESSymbolDeclaration(node) {
|
|
11814
|
-
return ts.isVariableDeclaration(node) ? isVarConst(node) && ts.isIdentifier(node.name) && isVariableDeclarationInVariableStatement(node) :
|
|
11824
|
+
return (ts.isVariableDeclaration(node) ? isVarConst(node) && ts.isIdentifier(node.name) && isVariableDeclarationInVariableStatement(node) :
|
|
11815
11825
|
ts.isPropertyDeclaration(node) ? hasEffectiveReadonlyModifier(node) && hasStaticModifier(node) :
|
|
11816
|
-
ts.isPropertySignature(node) && hasEffectiveReadonlyModifier(node);
|
|
11826
|
+
ts.isPropertySignature(node) && hasEffectiveReadonlyModifier(node)) || isCommonJsExportPropertyAssignment(node);
|
|
11817
11827
|
}
|
|
11818
11828
|
ts.isValidESSymbolDeclaration = isValidESSymbolDeclaration;
|
|
11819
11829
|
function introducesArgumentsExoticObject(node) {
|
|
@@ -31202,7 +31212,7 @@ var ts;
|
|
|
31202
31212
|
shortName: "i",
|
|
31203
31213
|
type: "boolean",
|
|
31204
31214
|
category: ts.Diagnostics.Projects,
|
|
31205
|
-
description: ts.Diagnostics.
|
|
31215
|
+
description: ts.Diagnostics.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,
|
|
31206
31216
|
transpileOptionValue: undefined,
|
|
31207
31217
|
defaultValueDescription: ts.Diagnostics.false_unless_composite_is_set
|
|
31208
31218
|
},
|
|
@@ -31596,7 +31606,7 @@ var ts;
|
|
|
31596
31606
|
affectsSemanticDiagnostics: true,
|
|
31597
31607
|
strictFlag: true,
|
|
31598
31608
|
category: ts.Diagnostics.Type_Checking,
|
|
31599
|
-
description: ts.Diagnostics.
|
|
31609
|
+
description: ts.Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,
|
|
31600
31610
|
defaultValueDescription: false,
|
|
31601
31611
|
},
|
|
31602
31612
|
{
|
|
@@ -31613,7 +31623,7 @@ var ts;
|
|
|
31613
31623
|
type: "boolean",
|
|
31614
31624
|
affectsSemanticDiagnostics: true,
|
|
31615
31625
|
category: ts.Diagnostics.Type_Checking,
|
|
31616
|
-
description: ts.Diagnostics.
|
|
31626
|
+
description: ts.Diagnostics.Enable_error_reporting_when_local_variables_aren_t_read,
|
|
31617
31627
|
defaultValueDescription: false,
|
|
31618
31628
|
},
|
|
31619
31629
|
{
|
|
@@ -31654,7 +31664,7 @@ var ts;
|
|
|
31654
31664
|
type: "boolean",
|
|
31655
31665
|
affectsSemanticDiagnostics: true,
|
|
31656
31666
|
category: ts.Diagnostics.Type_Checking,
|
|
31657
|
-
description: ts.Diagnostics.
|
|
31667
|
+
description: ts.Diagnostics.Add_undefined_to_a_type_when_accessed_using_an_index,
|
|
31658
31668
|
defaultValueDescription: false,
|
|
31659
31669
|
},
|
|
31660
31670
|
{
|
|
@@ -32116,7 +32126,7 @@ var ts;
|
|
|
32116
32126
|
name: "plugin",
|
|
32117
32127
|
type: "object"
|
|
32118
32128
|
},
|
|
32119
|
-
description: ts.Diagnostics.
|
|
32129
|
+
description: ts.Diagnostics.Specify_a_list_of_language_service_plugins_to_include,
|
|
32120
32130
|
category: ts.Diagnostics.Editor_Support,
|
|
32121
32131
|
},
|
|
32122
32132
|
];
|
|
@@ -39033,6 +39043,8 @@ var ts;
|
|
|
39033
39043
|
var templateConstraintType = getUnionType([stringType, numberType, booleanType, bigintType, nullType, undefinedType]);
|
|
39034
39044
|
var restrictiveMapper = makeFunctionTypeMapper(function (t) { return t.flags & 262144 ? getRestrictiveTypeParameter(t) : t; });
|
|
39035
39045
|
var permissiveMapper = makeFunctionTypeMapper(function (t) { return t.flags & 262144 ? wildcardType : t; });
|
|
39046
|
+
var uniqueLiteralType = createIntrinsicType(131072, "never");
|
|
39047
|
+
var uniqueLiteralMapper = makeFunctionTypeMapper(function (t) { return t.flags & 262144 ? uniqueLiteralType : t; });
|
|
39036
39048
|
var emptyObjectType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);
|
|
39037
39049
|
var emptyJsxObjectType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);
|
|
39038
39050
|
emptyJsxObjectType.objectFlags |= 2048;
|
|
@@ -42461,8 +42473,14 @@ var ts;
|
|
|
42461
42473
|
var readonlyToken = type.declaration.readonlyToken ? ts.factory.createToken(type.declaration.readonlyToken.kind) : undefined;
|
|
42462
42474
|
var questionToken = type.declaration.questionToken ? ts.factory.createToken(type.declaration.questionToken.kind) : undefined;
|
|
42463
42475
|
var appropriateConstraintTypeNode;
|
|
42476
|
+
var newTypeVariable;
|
|
42464
42477
|
if (isMappedTypeWithKeyofConstraintDeclaration(type)) {
|
|
42465
|
-
|
|
42478
|
+
if (!(getModifiersTypeFromMappedType(type).flags & 262144) && context.flags & 4) {
|
|
42479
|
+
var newParam = createTypeParameter(createSymbol(262144, "T"));
|
|
42480
|
+
var name = typeParameterToName(newParam, context);
|
|
42481
|
+
newTypeVariable = ts.factory.createTypeReferenceNode(name);
|
|
42482
|
+
}
|
|
42483
|
+
appropriateConstraintTypeNode = ts.factory.createTypeOperatorNode(140, newTypeVariable || typeToTypeNodeHelper(getModifiersTypeFromMappedType(type), context));
|
|
42466
42484
|
}
|
|
42467
42485
|
else {
|
|
42468
42486
|
appropriateConstraintTypeNode = typeToTypeNodeHelper(getConstraintTypeFromMappedType(type), context);
|
|
@@ -42472,7 +42490,11 @@ var ts;
|
|
|
42472
42490
|
var templateTypeNode = typeToTypeNodeHelper(removeMissingType(getTemplateTypeFromMappedType(type), !!(getMappedTypeModifiers(type) & 4)), context);
|
|
42473
42491
|
var mappedTypeNode = ts.factory.createMappedTypeNode(readonlyToken, typeParameterNode, nameTypeNode, questionToken, templateTypeNode, undefined);
|
|
42474
42492
|
context.approximateLength += 10;
|
|
42475
|
-
|
|
42493
|
+
var result = ts.setEmitFlags(mappedTypeNode, 1);
|
|
42494
|
+
if (isMappedTypeWithKeyofConstraintDeclaration(type) && !(getModifiersTypeFromMappedType(type).flags & 262144) && context.flags & 4) {
|
|
42495
|
+
return ts.factory.createConditionalTypeNode(typeToTypeNodeHelper(getModifiersTypeFromMappedType(type), context), ts.factory.createInferTypeNode(ts.factory.createTypeParameterDeclaration(ts.factory.cloneNode(newTypeVariable.typeName))), result, ts.factory.createKeywordTypeNode(143));
|
|
42496
|
+
}
|
|
42497
|
+
return result;
|
|
42476
42498
|
}
|
|
42477
42499
|
function createAnonymousTypeNode(type) {
|
|
42478
42500
|
var _a;
|
|
@@ -43928,7 +43950,7 @@ var ts;
|
|
|
43928
43950
|
}
|
|
43929
43951
|
}
|
|
43930
43952
|
function serializeSymbolWorker(symbol, isPrivate, propertyAsAlias) {
|
|
43931
|
-
var _a, _b;
|
|
43953
|
+
var _a, _b, _c, _d;
|
|
43932
43954
|
var symbolName = ts.unescapeLeadingUnderscores(symbol.escapedName);
|
|
43933
43955
|
var isDefault = symbol.escapedName === "default";
|
|
43934
43956
|
if (isPrivate && !(context.flags & 131072) && ts.isStringANonContextualKeyword(symbolName) && !isDefault) {
|
|
@@ -43971,17 +43993,21 @@ var ts;
|
|
|
43971
43993
|
serializeAsFunctionNamespaceMerge(type, symbol, localName, modifierFlags);
|
|
43972
43994
|
}
|
|
43973
43995
|
else {
|
|
43974
|
-
var flags = !(symbol.flags & 2)
|
|
43975
|
-
:
|
|
43996
|
+
var flags = !(symbol.flags & 2)
|
|
43997
|
+
? ((_a = symbol.parent) === null || _a === void 0 ? void 0 : _a.valueDeclaration) && ts.isSourceFile((_b = symbol.parent) === null || _b === void 0 ? void 0 : _b.valueDeclaration)
|
|
43998
|
+
? 2
|
|
43999
|
+
: undefined
|
|
44000
|
+
: isConstVariable(symbol)
|
|
44001
|
+
? 2
|
|
43976
44002
|
: 1;
|
|
43977
44003
|
var name = (needsPostExportDefault || !(symbol.flags & 4)) ? localName : getUnusedName(localName, symbol);
|
|
43978
44004
|
var textRange = symbol.declarations && ts.find(symbol.declarations, function (d) { return ts.isVariableDeclaration(d); });
|
|
43979
44005
|
if (textRange && ts.isVariableDeclarationList(textRange.parent) && textRange.parent.declarations.length === 1) {
|
|
43980
44006
|
textRange = textRange.parent.parent;
|
|
43981
44007
|
}
|
|
43982
|
-
var propertyAccessRequire = (
|
|
44008
|
+
var propertyAccessRequire = (_c = symbol.declarations) === null || _c === void 0 ? void 0 : _c.find(ts.isPropertyAccessExpression);
|
|
43983
44009
|
if (propertyAccessRequire && ts.isBinaryExpression(propertyAccessRequire.parent) && ts.isIdentifier(propertyAccessRequire.parent.right)
|
|
43984
|
-
&& ((
|
|
44010
|
+
&& ((_d = type.symbol) === null || _d === void 0 ? void 0 : _d.valueDeclaration) && ts.isSourceFile(type.symbol.valueDeclaration)) {
|
|
43985
44011
|
var alias = localName === propertyAccessRequire.parent.right.escapedText ? undefined : propertyAccessRequire.parent.right;
|
|
43986
44012
|
addResult(ts.factory.createExportDeclaration(undefined, undefined, false, ts.factory.createNamedExports([ts.factory.createExportSpecifier(false, alias, localName)])), 0);
|
|
43987
44013
|
context.tracker.trackSymbol(type.symbol, context.enclosingDeclaration, 111551);
|
|
@@ -44028,8 +44054,8 @@ var ts;
|
|
|
44028
44054
|
}
|
|
44029
44055
|
if (symbol.flags & 8388608) {
|
|
44030
44056
|
if (symbol.declarations) {
|
|
44031
|
-
for (var _i = 0,
|
|
44032
|
-
var node =
|
|
44057
|
+
for (var _i = 0, _e = symbol.declarations; _i < _e.length; _i++) {
|
|
44058
|
+
var node = _e[_i];
|
|
44033
44059
|
var resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier);
|
|
44034
44060
|
if (!resolvedModule)
|
|
44035
44061
|
continue;
|
|
@@ -45522,7 +45548,10 @@ var ts;
|
|
|
45522
45548
|
if (containsSameNamedThisProperty(expression.left, expression.right)) {
|
|
45523
45549
|
return anyType;
|
|
45524
45550
|
}
|
|
45525
|
-
var
|
|
45551
|
+
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)));
|
|
45552
|
+
var type = resolvedSymbol ? getTypeOfSymbol(resolvedSymbol)
|
|
45553
|
+
: isDirectExport ? getRegularTypeOfLiteralType(checkExpressionCached(expression.right))
|
|
45554
|
+
: getWidenedLiteralType(checkExpressionCached(expression.right));
|
|
45526
45555
|
if (type.flags & 524288 &&
|
|
45527
45556
|
kind === 2 &&
|
|
45528
45557
|
symbol.escapedName === "export=") {
|
|
@@ -48125,10 +48154,10 @@ var ts;
|
|
|
48125
48154
|
else if (type !== firstType) {
|
|
48126
48155
|
checkFlags |= 64;
|
|
48127
48156
|
}
|
|
48128
|
-
if (isLiteralType(type) || isPatternLiteralType(type)) {
|
|
48157
|
+
if (isLiteralType(type) || isPatternLiteralType(type) || type === uniqueLiteralType) {
|
|
48129
48158
|
checkFlags |= 128;
|
|
48130
48159
|
}
|
|
48131
|
-
if (type.flags & 131072) {
|
|
48160
|
+
if (type.flags & 131072 && type !== uniqueLiteralType) {
|
|
48132
48161
|
checkFlags |= 131072;
|
|
48133
48162
|
}
|
|
48134
48163
|
propTypes.push(type);
|
|
@@ -49785,6 +49814,9 @@ var ts;
|
|
|
49785
49814
|
return includes;
|
|
49786
49815
|
}
|
|
49787
49816
|
function removeSubtypes(types, hasObjectTypes) {
|
|
49817
|
+
if (types.length < 2) {
|
|
49818
|
+
return types;
|
|
49819
|
+
}
|
|
49788
49820
|
var id = getTypeListId(types);
|
|
49789
49821
|
var match = subtypeReductionCache.get(id);
|
|
49790
49822
|
if (match) {
|
|
@@ -50376,10 +50408,18 @@ var ts;
|
|
|
50376
50408
|
info.keyType === stringType && include & 8 ? stringOrNumberType : info.keyType : neverType; });
|
|
50377
50409
|
return getUnionType(ts.concatenate(propertyTypes, indexKeyTypes), 1, undefined, undefined, origin);
|
|
50378
50410
|
}
|
|
50411
|
+
function isPossiblyReducibleByInstantiation(type) {
|
|
50412
|
+
return ts.some(type.types, function (t) {
|
|
50413
|
+
var uniqueFilled = getUniqueLiteralFilledInstantiation(t);
|
|
50414
|
+
return getReducedType(uniqueFilled) !== uniqueFilled;
|
|
50415
|
+
});
|
|
50416
|
+
}
|
|
50379
50417
|
function getIndexType(type, stringsOnly, noIndexSignatures) {
|
|
50380
50418
|
if (stringsOnly === void 0) { stringsOnly = keyofStringsOnly; }
|
|
50381
50419
|
type = getReducedType(type);
|
|
50382
|
-
return type.flags & 1048576 ?
|
|
50420
|
+
return type.flags & 1048576 ? isPossiblyReducibleByInstantiation(type)
|
|
50421
|
+
? getIndexTypeForGenericType(type, stringsOnly)
|
|
50422
|
+
: getIntersectionType(ts.map(type.types, function (t) { return getIndexType(t, stringsOnly, noIndexSignatures); })) :
|
|
50383
50423
|
type.flags & 2097152 ? getUnionType(ts.map(type.types, function (t) { return getIndexType(t, stringsOnly, noIndexSignatures); })) :
|
|
50384
50424
|
type.flags & 58982400 || isGenericTupleType(type) || isGenericMappedType(type) && !hasDistributiveNameType(type) ? getIndexTypeForGenericType(type, stringsOnly) :
|
|
50385
50425
|
ts.getObjectFlags(type) & 32 ? getIndexTypeForMappedType(type, stringsOnly, noIndexSignatures) :
|
|
@@ -50949,6 +50989,10 @@ var ts;
|
|
|
50949
50989
|
}
|
|
50950
50990
|
return type;
|
|
50951
50991
|
}
|
|
50992
|
+
function maybeCloneTypeParameter(p) {
|
|
50993
|
+
var constraint = getConstraintOfTypeParameter(p);
|
|
50994
|
+
return constraint && (isGenericObjectType(constraint) || isGenericIndexType(constraint)) ? cloneTypeParameter(p) : p;
|
|
50995
|
+
}
|
|
50952
50996
|
function isTypicalNondistributiveConditional(root) {
|
|
50953
50997
|
return !root.isDistributive && isSingletonTupleType(root.node.checkType) && isSingletonTupleType(root.node.extendsType);
|
|
50954
50998
|
}
|
|
@@ -50962,26 +51006,38 @@ var ts;
|
|
|
50962
51006
|
var result;
|
|
50963
51007
|
var extraTypes;
|
|
50964
51008
|
var tailCount = 0;
|
|
50965
|
-
|
|
51009
|
+
var _loop_18 = function () {
|
|
50966
51010
|
if (tailCount === 1000) {
|
|
50967
51011
|
error(currentNode, ts.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite);
|
|
50968
51012
|
result = errorType;
|
|
50969
|
-
break;
|
|
51013
|
+
return "break";
|
|
50970
51014
|
}
|
|
50971
51015
|
var isUnwrapped = isTypicalNondistributiveConditional(root);
|
|
50972
51016
|
var checkType = instantiateType(unwrapNondistributiveConditionalTuple(root, getActualTypeVariable(root.checkType)), mapper);
|
|
50973
51017
|
var checkTypeInstantiable = isGenericType(checkType);
|
|
50974
51018
|
var extendsType = instantiateType(unwrapNondistributiveConditionalTuple(root, root.extendsType), mapper);
|
|
50975
51019
|
if (checkType === wildcardType || extendsType === wildcardType) {
|
|
50976
|
-
return wildcardType;
|
|
51020
|
+
return { value: wildcardType };
|
|
50977
51021
|
}
|
|
50978
51022
|
var combinedMapper = void 0;
|
|
50979
51023
|
if (root.inferTypeParameters) {
|
|
50980
|
-
var
|
|
50981
|
-
|
|
50982
|
-
|
|
51024
|
+
var freshParams = ts.sameMap(root.inferTypeParameters, maybeCloneTypeParameter);
|
|
51025
|
+
var freshMapper = freshParams !== root.inferTypeParameters ? createTypeMapper(root.inferTypeParameters, freshParams) : undefined;
|
|
51026
|
+
var context = createInferenceContext(freshParams, undefined, 0);
|
|
51027
|
+
if (freshMapper) {
|
|
51028
|
+
var freshCombinedMapper = combineTypeMappers(mapper, freshMapper);
|
|
51029
|
+
for (var _i = 0, freshParams_1 = freshParams; _i < freshParams_1.length; _i++) {
|
|
51030
|
+
var p = freshParams_1[_i];
|
|
51031
|
+
if (root.inferTypeParameters.indexOf(p) === -1) {
|
|
51032
|
+
p.mapper = freshCombinedMapper;
|
|
51033
|
+
}
|
|
51034
|
+
}
|
|
51035
|
+
}
|
|
51036
|
+
if (!checkTypeInstantiable || !ts.some(root.inferTypeParameters, function (t) { return t === extendsType; })) {
|
|
51037
|
+
inferTypes(context.inferences, checkType, instantiateType(extendsType, freshMapper), 512 | 1024);
|
|
50983
51038
|
}
|
|
50984
|
-
|
|
51039
|
+
var innerMapper = combineTypeMappers(freshMapper, context.mapper);
|
|
51040
|
+
combinedMapper = mapper ? combineTypeMappers(innerMapper, mapper) : innerMapper;
|
|
50985
51041
|
}
|
|
50986
51042
|
var inferredExtendsType = combinedMapper ? instantiateType(unwrapNondistributiveConditionalTuple(root, root.extendsType), combinedMapper) : extendsType;
|
|
50987
51043
|
if (!checkTypeInstantiable && !isGenericType(inferredExtendsType)) {
|
|
@@ -50994,23 +51050,23 @@ var ts;
|
|
|
50994
51050
|
var newRoot = falseType_1.root;
|
|
50995
51051
|
if (newRoot.node.parent === root.node && (!newRoot.isDistributive || newRoot.checkType === root.checkType)) {
|
|
50996
51052
|
root = newRoot;
|
|
50997
|
-
continue;
|
|
51053
|
+
return "continue";
|
|
50998
51054
|
}
|
|
50999
51055
|
if (canTailRecurse(falseType_1, mapper)) {
|
|
51000
|
-
continue;
|
|
51056
|
+
return "continue";
|
|
51001
51057
|
}
|
|
51002
51058
|
}
|
|
51003
51059
|
result = instantiateType(falseType_1, mapper);
|
|
51004
|
-
break;
|
|
51060
|
+
return "break";
|
|
51005
51061
|
}
|
|
51006
51062
|
if (inferredExtendsType.flags & 3 || isTypeAssignableTo(getRestrictiveInstantiation(checkType), getRestrictiveInstantiation(inferredExtendsType))) {
|
|
51007
51063
|
var trueType_1 = getTypeFromTypeNode(root.node.trueType);
|
|
51008
51064
|
var trueMapper = combinedMapper || mapper;
|
|
51009
51065
|
if (canTailRecurse(trueType_1, trueMapper)) {
|
|
51010
|
-
continue;
|
|
51066
|
+
return "continue";
|
|
51011
51067
|
}
|
|
51012
51068
|
result = instantiateType(trueType_1, trueMapper);
|
|
51013
|
-
break;
|
|
51069
|
+
return "break";
|
|
51014
51070
|
}
|
|
51015
51071
|
}
|
|
51016
51072
|
result = createType(16777216);
|
|
@@ -51021,7 +51077,14 @@ var ts;
|
|
|
51021
51077
|
result.combinedMapper = combinedMapper;
|
|
51022
51078
|
result.aliasSymbol = aliasSymbol || root.aliasSymbol;
|
|
51023
51079
|
result.aliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(root.aliasTypeArguments, mapper);
|
|
51024
|
-
break;
|
|
51080
|
+
return "break";
|
|
51081
|
+
};
|
|
51082
|
+
while (true) {
|
|
51083
|
+
var state_5 = _loop_18();
|
|
51084
|
+
if (typeof state_5 === "object")
|
|
51085
|
+
return state_5.value;
|
|
51086
|
+
if (state_5 === "break")
|
|
51087
|
+
break;
|
|
51025
51088
|
}
|
|
51026
51089
|
return extraTypes ? getUnionType(ts.append(extraTypes, result)) : result;
|
|
51027
51090
|
function canTailRecurse(newType, newMapper) {
|
|
@@ -51423,9 +51486,11 @@ var ts;
|
|
|
51423
51486
|
}
|
|
51424
51487
|
function getESSymbolLikeTypeForNode(node) {
|
|
51425
51488
|
if (ts.isValidESSymbolDeclaration(node)) {
|
|
51426
|
-
var symbol = getSymbolOfNode(node);
|
|
51427
|
-
|
|
51428
|
-
|
|
51489
|
+
var symbol = ts.isCommonJsExportPropertyAssignment(node) ? getSymbolOfNode(node.left) : getSymbolOfNode(node);
|
|
51490
|
+
if (symbol) {
|
|
51491
|
+
var links = getSymbolLinks(symbol);
|
|
51492
|
+
return links.uniqueESSymbolType || (links.uniqueESSymbolType = createUniqueESSymbolType(symbol));
|
|
51493
|
+
}
|
|
51429
51494
|
}
|
|
51430
51495
|
return esSymbolType;
|
|
51431
51496
|
}
|
|
@@ -52005,6 +52070,10 @@ var ts;
|
|
|
52005
52070
|
}
|
|
52006
52071
|
return type;
|
|
52007
52072
|
}
|
|
52073
|
+
function getUniqueLiteralFilledInstantiation(type) {
|
|
52074
|
+
return type.flags & (131068 | 3 | 131072) ? type :
|
|
52075
|
+
type.uniqueLiteralFilledInstantiation || (type.uniqueLiteralFilledInstantiation = instantiateType(type, uniqueLiteralMapper));
|
|
52076
|
+
}
|
|
52008
52077
|
function getPermissiveInstantiation(type) {
|
|
52009
52078
|
return type.flags & (131068 | 3 | 131072) ? type :
|
|
52010
52079
|
type.permissiveInstantiation || (type.permissiveInstantiation = instantiateType(type, permissiveMapper));
|
|
@@ -53301,7 +53370,7 @@ var ts;
|
|
|
53301
53370
|
reducedTarget = findMatchingDiscriminantType(source, target, isRelatedTo) || filterPrimitivesIfContainsNonPrimitive(target);
|
|
53302
53371
|
checkTypes = reducedTarget.flags & 1048576 ? reducedTarget.types : [reducedTarget];
|
|
53303
53372
|
}
|
|
53304
|
-
var
|
|
53373
|
+
var _loop_19 = function (prop) {
|
|
53305
53374
|
if (shouldCheckAsExcessProperty(prop, source.symbol) && !isIgnoredJsxProperty(source, prop)) {
|
|
53306
53375
|
if (!isKnownProperty(reducedTarget, prop.escapedName, isComparingJsxAttributes)) {
|
|
53307
53376
|
if (reportErrors) {
|
|
@@ -53354,9 +53423,9 @@ var ts;
|
|
|
53354
53423
|
};
|
|
53355
53424
|
for (var _i = 0, _b = getPropertiesOfType(source); _i < _b.length; _i++) {
|
|
53356
53425
|
var prop = _b[_i];
|
|
53357
|
-
var
|
|
53358
|
-
if (typeof
|
|
53359
|
-
return
|
|
53426
|
+
var state_6 = _loop_19(prop);
|
|
53427
|
+
if (typeof state_6 === "object")
|
|
53428
|
+
return state_6.value;
|
|
53360
53429
|
}
|
|
53361
53430
|
return false;
|
|
53362
53431
|
}
|
|
@@ -54133,11 +54202,11 @@ var ts;
|
|
|
54133
54202
|
}
|
|
54134
54203
|
var discriminantCombinations = ts.cartesianProduct(sourceDiscriminantTypes);
|
|
54135
54204
|
var matchingTypes = [];
|
|
54136
|
-
var
|
|
54205
|
+
var _loop_20 = function (combination) {
|
|
54137
54206
|
var hasMatch = false;
|
|
54138
54207
|
outer: for (var _c = 0, _d = target.types; _c < _d.length; _c++) {
|
|
54139
54208
|
var type = _d[_c];
|
|
54140
|
-
var
|
|
54209
|
+
var _loop_21 = function (i) {
|
|
54141
54210
|
var sourceProperty = sourcePropertiesFiltered[i];
|
|
54142
54211
|
var targetProperty = getPropertyOfType(type, sourceProperty.escapedName);
|
|
54143
54212
|
if (!targetProperty)
|
|
@@ -54150,8 +54219,8 @@ var ts;
|
|
|
54150
54219
|
}
|
|
54151
54220
|
};
|
|
54152
54221
|
for (var i = 0; i < sourcePropertiesFiltered.length; i++) {
|
|
54153
|
-
var
|
|
54154
|
-
switch (
|
|
54222
|
+
var state_8 = _loop_21(i);
|
|
54223
|
+
switch (state_8) {
|
|
54155
54224
|
case "continue-outer": continue outer;
|
|
54156
54225
|
}
|
|
54157
54226
|
}
|
|
@@ -54164,9 +54233,9 @@ var ts;
|
|
|
54164
54233
|
};
|
|
54165
54234
|
for (var _a = 0, discriminantCombinations_1 = discriminantCombinations; _a < discriminantCombinations_1.length; _a++) {
|
|
54166
54235
|
var combination = discriminantCombinations_1[_a];
|
|
54167
|
-
var
|
|
54168
|
-
if (typeof
|
|
54169
|
-
return
|
|
54236
|
+
var state_7 = _loop_20(combination);
|
|
54237
|
+
if (typeof state_7 === "object")
|
|
54238
|
+
return state_7.value;
|
|
54170
54239
|
}
|
|
54171
54240
|
var result = -1;
|
|
54172
54241
|
for (var _b = 0, matchingTypes_1 = matchingTypes; _b < matchingTypes_1.length; _b++) {
|
|
@@ -54814,7 +54883,7 @@ var ts;
|
|
|
54814
54883
|
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 });
|
|
54815
54884
|
cache.variances = ts.emptyArray;
|
|
54816
54885
|
variances = [];
|
|
54817
|
-
var
|
|
54886
|
+
var _loop_22 = function (tp) {
|
|
54818
54887
|
var unmeasurable = false;
|
|
54819
54888
|
var unreliable = false;
|
|
54820
54889
|
var oldHandler = outofbandVarianceMarkerHandler;
|
|
@@ -54839,7 +54908,7 @@ var ts;
|
|
|
54839
54908
|
};
|
|
54840
54909
|
for (var _i = 0, typeParameters_1 = typeParameters; _i < typeParameters_1.length; _i++) {
|
|
54841
54910
|
var tp = typeParameters_1[_i];
|
|
54842
|
-
|
|
54911
|
+
_loop_22(tp);
|
|
54843
54912
|
}
|
|
54844
54913
|
cache.variances = variances;
|
|
54845
54914
|
ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();
|
|
@@ -56890,7 +56959,7 @@ var ts;
|
|
|
56890
56959
|
function mapTypesByKeyProperty(types, name) {
|
|
56891
56960
|
var map = new ts.Map();
|
|
56892
56961
|
var count = 0;
|
|
56893
|
-
var
|
|
56962
|
+
var _loop_23 = function (type) {
|
|
56894
56963
|
if (type.flags & (524288 | 2097152 | 58982400)) {
|
|
56895
56964
|
var discriminant = getTypeOfPropertyOfType(type, name);
|
|
56896
56965
|
if (discriminant) {
|
|
@@ -56916,9 +56985,9 @@ var ts;
|
|
|
56916
56985
|
};
|
|
56917
56986
|
for (var _i = 0, types_16 = types; _i < types_16.length; _i++) {
|
|
56918
56987
|
var type = types_16[_i];
|
|
56919
|
-
var
|
|
56920
|
-
if (typeof
|
|
56921
|
-
return
|
|
56988
|
+
var state_9 = _loop_23(type);
|
|
56989
|
+
if (typeof state_9 === "object")
|
|
56990
|
+
return state_9.value;
|
|
56922
56991
|
}
|
|
56923
56992
|
return count >= 10 && count * 2 >= types.length ? map : undefined;
|
|
56924
56993
|
}
|
|
@@ -62299,7 +62368,7 @@ var ts;
|
|
|
62299
62368
|
var spreadIndex = getSpreadArgumentIndex(args);
|
|
62300
62369
|
if (spreadIndex >= 0) {
|
|
62301
62370
|
var effectiveArgs_1 = args.slice(0, spreadIndex);
|
|
62302
|
-
var
|
|
62371
|
+
var _loop_24 = function (i) {
|
|
62303
62372
|
var arg = args[i];
|
|
62304
62373
|
var spreadType = arg.kind === 224 && (flowLoopCount ? checkExpression(arg.expression) : checkExpressionCached(arg.expression));
|
|
62305
62374
|
if (spreadType && isTupleType(spreadType)) {
|
|
@@ -62315,7 +62384,7 @@ var ts;
|
|
|
62315
62384
|
}
|
|
62316
62385
|
};
|
|
62317
62386
|
for (var i = spreadIndex; i < args.length; i++) {
|
|
62318
|
-
|
|
62387
|
+
_loop_24(i);
|
|
62319
62388
|
}
|
|
62320
62389
|
return effectiveArgs_1;
|
|
62321
62390
|
}
|
|
@@ -62556,7 +62625,7 @@ var ts;
|
|
|
62556
62625
|
var min_3 = Number.MAX_VALUE;
|
|
62557
62626
|
var minIndex = 0;
|
|
62558
62627
|
var i_1 = 0;
|
|
62559
|
-
var
|
|
62628
|
+
var _loop_25 = function (c) {
|
|
62560
62629
|
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)); };
|
|
62561
62630
|
var diags_2 = getSignatureApplicabilityError(node, args, c, assignableRelation, 0, true, chain_2);
|
|
62562
62631
|
if (diags_2) {
|
|
@@ -62574,7 +62643,7 @@ var ts;
|
|
|
62574
62643
|
};
|
|
62575
62644
|
for (var _a = 0, candidatesForArgumentError_1 = candidatesForArgumentError; _a < candidatesForArgumentError_1.length; _a++) {
|
|
62576
62645
|
var c = candidatesForArgumentError_1[_a];
|
|
62577
|
-
|
|
62646
|
+
_loop_25(c);
|
|
62578
62647
|
}
|
|
62579
62648
|
var diags_3 = max > 1 ? allDiagnostics[minIndex] : ts.flatten(allDiagnostics);
|
|
62580
62649
|
ts.Debug.assert(diags_3.length > 0, "No errors reported for 3 or fewer overload signatures");
|
|
@@ -62717,7 +62786,7 @@ var ts;
|
|
|
62717
62786
|
}
|
|
62718
62787
|
var _a = ts.minAndMax(candidates, getNumNonRestParameters), minArgumentCount = _a.min, maxNonRestParam = _a.max;
|
|
62719
62788
|
var parameters = [];
|
|
62720
|
-
var
|
|
62789
|
+
var _loop_26 = function (i) {
|
|
62721
62790
|
var symbols = ts.mapDefined(candidates, function (s) { return signatureHasRestParameter(s) ?
|
|
62722
62791
|
i < s.parameters.length - 1 ? s.parameters[i] : ts.last(s.parameters) :
|
|
62723
62792
|
i < s.parameters.length ? s.parameters[i] : undefined; });
|
|
@@ -62725,7 +62794,7 @@ var ts;
|
|
|
62725
62794
|
parameters.push(createCombinedSymbolFromTypes(symbols, ts.mapDefined(candidates, function (candidate) { return tryGetTypeAtPosition(candidate, i); })));
|
|
62726
62795
|
};
|
|
62727
62796
|
for (var i = 0; i < maxNonRestParam; i++) {
|
|
62728
|
-
|
|
62797
|
+
_loop_26(i);
|
|
62729
62798
|
}
|
|
62730
62799
|
var restParameterSymbols = ts.mapDefined(candidates, function (c) { return signatureHasRestParameter(c) ? ts.last(c.parameters) : undefined; });
|
|
62731
62800
|
var flags = 0;
|
|
@@ -65589,7 +65658,7 @@ var ts;
|
|
|
65589
65658
|
}
|
|
65590
65659
|
function checkExpressionForMutableLocation(node, checkMode, contextualType, forceTuple) {
|
|
65591
65660
|
var type = checkExpression(node, checkMode, forceTuple);
|
|
65592
|
-
return isConstContext(node) ? getRegularTypeOfLiteralType(type) :
|
|
65661
|
+
return isConstContext(node) || ts.isCommonJsExportedExpression(node) ? getRegularTypeOfLiteralType(type) :
|
|
65593
65662
|
isTypeAssertion(node) ? type :
|
|
65594
65663
|
getWidenedLiteralLikeTypeForContextualType(type, instantiateContextualType(arguments.length === 2 ? getContextualType(node) : contextualType, node));
|
|
65595
65664
|
}
|
|
@@ -66265,7 +66334,7 @@ var ts;
|
|
|
66265
66334
|
var indexSymbol = getIndexSymbol(getSymbolOfNode(node));
|
|
66266
66335
|
if (indexSymbol === null || indexSymbol === void 0 ? void 0 : indexSymbol.declarations) {
|
|
66267
66336
|
var indexSignatureMap_1 = new ts.Map();
|
|
66268
|
-
var
|
|
66337
|
+
var _loop_27 = function (declaration) {
|
|
66269
66338
|
if (declaration.parameters.length === 1 && declaration.parameters[0].type) {
|
|
66270
66339
|
forEachType(getTypeFromTypeNode(declaration.parameters[0].type), function (type) {
|
|
66271
66340
|
var entry = indexSignatureMap_1.get(getTypeId(type));
|
|
@@ -66280,7 +66349,7 @@ var ts;
|
|
|
66280
66349
|
};
|
|
66281
66350
|
for (var _i = 0, _a = indexSymbol.declarations; _i < _a.length; _i++) {
|
|
66282
66351
|
var declaration = _a[_i];
|
|
66283
|
-
|
|
66352
|
+
_loop_27(declaration);
|
|
66284
66353
|
}
|
|
66285
66354
|
indexSignatureMap_1.forEach(function (entry) {
|
|
66286
66355
|
if (entry.declarations.length > 1) {
|
|
@@ -69019,7 +69088,7 @@ var ts;
|
|
|
69019
69088
|
var interfaceDeclaration = ts.getObjectFlags(type) & 2 ? ts.getDeclarationOfKind(type.symbol, 257) : undefined;
|
|
69020
69089
|
var localPropDeclaration = declaration && declaration.kind === 220 ||
|
|
69021
69090
|
name && name.kind === 161 || getParentOfSymbol(prop) === type.symbol ? declaration : undefined;
|
|
69022
|
-
var
|
|
69091
|
+
var _loop_28 = function (info) {
|
|
69023
69092
|
var localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfNode(info.declaration)) === type.symbol ? info.declaration : undefined;
|
|
69024
69093
|
var errorNode = localPropDeclaration || localIndexDeclaration ||
|
|
69025
69094
|
(interfaceDeclaration && !ts.some(getBaseTypes(type), function (base) { return !!getPropertyOfObjectType(base, prop.escapedName) && !!getIndexTypeOfType(base, info.keyType); }) ? interfaceDeclaration : undefined);
|
|
@@ -69029,7 +69098,7 @@ var ts;
|
|
|
69029
69098
|
};
|
|
69030
69099
|
for (var _i = 0, indexInfos_9 = indexInfos; _i < indexInfos_9.length; _i++) {
|
|
69031
69100
|
var info = indexInfos_9[_i];
|
|
69032
|
-
|
|
69101
|
+
_loop_28(info);
|
|
69033
69102
|
}
|
|
69034
69103
|
}
|
|
69035
69104
|
function checkIndexConstraintForIndexSignature(type, checkInfo) {
|
|
@@ -69037,7 +69106,7 @@ var ts;
|
|
|
69037
69106
|
var indexInfos = getApplicableIndexInfos(type, checkInfo.keyType);
|
|
69038
69107
|
var interfaceDeclaration = ts.getObjectFlags(type) & 2 ? ts.getDeclarationOfKind(type.symbol, 257) : undefined;
|
|
69039
69108
|
var localCheckDeclaration = declaration && getParentOfSymbol(getSymbolOfNode(declaration)) === type.symbol ? declaration : undefined;
|
|
69040
|
-
var
|
|
69109
|
+
var _loop_29 = function (info) {
|
|
69041
69110
|
if (info === checkInfo)
|
|
69042
69111
|
return "continue";
|
|
69043
69112
|
var localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfNode(info.declaration)) === type.symbol ? info.declaration : undefined;
|
|
@@ -69049,7 +69118,7 @@ var ts;
|
|
|
69049
69118
|
};
|
|
69050
69119
|
for (var _i = 0, indexInfos_10 = indexInfos; _i < indexInfos_10.length; _i++) {
|
|
69051
69120
|
var info = indexInfos_10[_i];
|
|
69052
|
-
|
|
69121
|
+
_loop_29(info);
|
|
69053
69122
|
}
|
|
69054
69123
|
}
|
|
69055
69124
|
function checkTypeNameIsReserved(name, message) {
|
|
@@ -69335,7 +69404,7 @@ var ts;
|
|
|
69335
69404
|
var baseTypes = baseTypeNode && getBaseTypes(type);
|
|
69336
69405
|
var baseWithThis = (baseTypes === null || baseTypes === void 0 ? void 0 : baseTypes.length) ? getTypeWithThisArgument(ts.first(baseTypes), type.thisType) : undefined;
|
|
69337
69406
|
var baseStaticType = getBaseConstructorTypeOfClass(type);
|
|
69338
|
-
var
|
|
69407
|
+
var _loop_30 = function (member) {
|
|
69339
69408
|
if (ts.hasAmbientModifier(member)) {
|
|
69340
69409
|
return "continue";
|
|
69341
69410
|
}
|
|
@@ -69350,7 +69419,7 @@ var ts;
|
|
|
69350
69419
|
};
|
|
69351
69420
|
for (var _i = 0, _a = node.members; _i < _a.length; _i++) {
|
|
69352
69421
|
var member = _a[_i];
|
|
69353
|
-
|
|
69422
|
+
_loop_30(member);
|
|
69354
69423
|
}
|
|
69355
69424
|
}
|
|
69356
69425
|
function checkExistingMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, member, memberIsParameterProperty, reportErrors) {
|
|
@@ -69425,7 +69494,7 @@ var ts;
|
|
|
69425
69494
|
}
|
|
69426
69495
|
function issueMemberSpecificError(node, typeWithThis, baseWithThis, broadDiag) {
|
|
69427
69496
|
var issuedMemberError = false;
|
|
69428
|
-
var
|
|
69497
|
+
var _loop_31 = function (member) {
|
|
69429
69498
|
if (ts.isStatic(member)) {
|
|
69430
69499
|
return "continue";
|
|
69431
69500
|
}
|
|
@@ -69443,7 +69512,7 @@ var ts;
|
|
|
69443
69512
|
};
|
|
69444
69513
|
for (var _i = 0, _a = node.members; _i < _a.length; _i++) {
|
|
69445
69514
|
var member = _a[_i];
|
|
69446
|
-
|
|
69515
|
+
_loop_31(member);
|
|
69447
69516
|
}
|
|
69448
69517
|
if (!issuedMemberError) {
|
|
69449
69518
|
checkTypeAssignableTo(typeWithThis, baseWithThis, node.name || node, broadDiag);
|
|
@@ -99766,7 +99835,7 @@ var ts;
|
|
|
99766
99835
|
importedFileFromNodeModules = importedFileFromNodeModules || isInNodeModules;
|
|
99767
99836
|
});
|
|
99768
99837
|
var sortedPaths = [];
|
|
99769
|
-
var
|
|
99838
|
+
var _loop_32 = function (directory) {
|
|
99770
99839
|
var directoryStart = ts.ensureTrailingDirectorySeparator(directory);
|
|
99771
99840
|
var pathsInDirectory;
|
|
99772
99841
|
allFileNames.forEach(function (_a, fileName) {
|
|
@@ -99790,9 +99859,9 @@ var ts;
|
|
|
99790
99859
|
};
|
|
99791
99860
|
var out_directory_1;
|
|
99792
99861
|
for (var directory = ts.getDirectoryPath(importingFileName); allFileNames.size !== 0;) {
|
|
99793
|
-
var
|
|
99862
|
+
var state_10 = _loop_32(directory);
|
|
99794
99863
|
directory = out_directory_1;
|
|
99795
|
-
if (
|
|
99864
|
+
if (state_10 === "break")
|
|
99796
99865
|
break;
|
|
99797
99866
|
}
|
|
99798
99867
|
if (allFileNames.size) {
|