@typescript-deploys/pr-build 4.7.0-pr-48112-6 → 4.7.0-pr-48168-4
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/cs/diagnosticMessages.generated.json +3 -0
- package/lib/es/diagnosticMessages.generated.json +3 -0
- package/lib/it/diagnosticMessages.generated.json +3 -0
- package/lib/pl/diagnosticMessages.generated.json +3 -0
- package/lib/tr/diagnosticMessages.generated.json +3 -0
- package/lib/tsc.js +193 -119
- package/lib/tsserver.js +576 -257
- package/lib/tsserverlibrary.d.ts +4 -1
- package/lib/tsserverlibrary.js +576 -257
- package/lib/typescript.d.ts +4 -1
- package/lib/typescript.js +453 -176
- package/lib/typescriptServices.d.ts +4 -1
- package/lib/typescriptServices.js +453 -176
- package/lib/typingsInstaller.js +209 -131
- 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-insiders.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-insiders.20220309";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -5915,7 +5915,6 @@ var ts;
|
|
|
5915
5915
|
Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Did_you_mean_0: diag(2835, ts.DiagnosticCategory.Error, "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835", "Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean '{0}'?"),
|
|
5916
5916
|
Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls: diag(2836, ts.DiagnosticCategory.Error, "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836", "Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),
|
|
5917
5917
|
Import_assertion_values_must_be_string_literal_expressions: diag(2837, ts.DiagnosticCategory.Error, "Import_assertion_values_must_be_string_literal_expressions_2837", "Import assertion values must be string literal expressions."),
|
|
5918
|
-
All_declarations_of_0_must_have_identical_constraints: diag(2838, ts.DiagnosticCategory.Error, "All_declarations_of_0_must_have_identical_constraints_2838", "All declarations of '{0}' must have identical constraints."),
|
|
5919
5918
|
Import_declaration_0_is_using_private_name_1: diag(4000, ts.DiagnosticCategory.Error, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
|
|
5920
5919
|
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
|
|
5921
5920
|
Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
|
|
@@ -6233,7 +6232,6 @@ var ts;
|
|
|
6233
6232
|
Command_line_Options: diag(6171, ts.DiagnosticCategory.Message, "Command_line_Options_6171", "Command-line Options"),
|
|
6234
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'."),
|
|
6235
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."),
|
|
6236
|
-
List_of_language_service_plugins: diag(6181, ts.DiagnosticCategory.Message, "List_of_language_service_plugins_6181", "List of language service plugins."),
|
|
6237
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}'"),
|
|
6238
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}'."),
|
|
6239
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}'."),
|
|
@@ -6340,7 +6338,7 @@ var ts;
|
|
|
6340
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"),
|
|
6341
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"),
|
|
6342
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"),
|
|
6343
|
-
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."),
|
|
6344
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')"),
|
|
6345
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."),
|
|
6346
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."),
|
|
@@ -6351,7 +6349,6 @@ var ts;
|
|
|
6351
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}'"),
|
|
6352
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}'"),
|
|
6353
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}'"),
|
|
6354
|
-
Enable_incremental_compilation: diag(6378, ts.DiagnosticCategory.Message, "Enable_incremental_compilation_6378", "Enable incremental compilation"),
|
|
6355
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."),
|
|
6356
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"),
|
|
6357
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}'"),
|
|
@@ -6379,13 +6376,13 @@ var ts;
|
|
|
6379
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?"),
|
|
6380
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."),
|
|
6381
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."),
|
|
6382
|
-
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."),
|
|
6383
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."),
|
|
6384
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."),
|
|
6385
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."),
|
|
6386
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."),
|
|
6387
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."),
|
|
6388
|
-
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."),
|
|
6389
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."),
|
|
6390
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."),
|
|
6391
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."),
|
|
@@ -6398,13 +6395,13 @@ var ts;
|
|
|
6398
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."),
|
|
6399
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."),
|
|
6400
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."),
|
|
6401
|
-
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."),
|
|
6402
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."),
|
|
6403
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."),
|
|
6404
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."),
|
|
6405
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."),
|
|
6406
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"),
|
|
6407
|
-
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."),
|
|
6408
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."),
|
|
6409
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."),
|
|
6410
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."),
|
|
@@ -6414,7 +6411,7 @@ var ts;
|
|
|
6414
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."),
|
|
6415
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."),
|
|
6416
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`."),
|
|
6417
|
-
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."),
|
|
6418
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."),
|
|
6419
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."),
|
|
6420
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."),
|
|
@@ -6424,77 +6421,76 @@ var ts;
|
|
|
6424
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."),
|
|
6425
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."),
|
|
6426
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."),
|
|
6427
|
-
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'."),
|
|
6428
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'."),
|
|
6429
|
-
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*'."),
|
|
6430
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."),
|
|
6431
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."),
|
|
6432
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."),
|
|
6433
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."),
|
|
6434
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."),
|
|
6435
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."),
|
|
6436
|
-
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'."),
|
|
6437
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."),
|
|
6438
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."),
|
|
6439
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."),
|
|
6440
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."),
|
|
6441
|
-
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."),
|
|
6442
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."),
|
|
6443
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."),
|
|
6444
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."),
|
|
6445
|
-
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."),
|
|
6446
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."),
|
|
6447
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."),
|
|
6448
|
-
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'."),
|
|
6449
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."),
|
|
6450
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."),
|
|
6451
|
-
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"),
|
|
6452
|
-
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."),
|
|
6453
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."),
|
|
6454
|
-
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
|
|
6455
|
-
|
|
6456
|
-
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"),
|
|
6457
|
-
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."),
|
|
6458
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."),
|
|
6459
|
-
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."),
|
|
6460
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."),
|
|
6461
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."),
|
|
6462
|
-
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."),
|
|
6463
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."),
|
|
6464
|
-
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"),
|
|
6465
|
-
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"),
|
|
6466
|
-
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."),
|
|
6467
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."),
|
|
6468
6465
|
Disable_emitting_comments: diag(6688, ts.DiagnosticCategory.Message, "Disable_emitting_comments_6688", "Disable emitting comments."),
|
|
6469
|
-
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."),
|
|
6470
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."),
|
|
6471
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."),
|
|
6472
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."),
|
|
6473
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."),
|
|
6474
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."),
|
|
6475
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."),
|
|
6476
|
-
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."),
|
|
6477
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."),
|
|
6478
|
-
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'."),
|
|
6479
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."),
|
|
6480
|
-
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."),
|
|
6481
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."),
|
|
6482
|
-
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."),
|
|
6483
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."),
|
|
6484
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."),
|
|
6485
|
-
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."),
|
|
6486
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."),
|
|
6487
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."),
|
|
6488
|
-
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'."),
|
|
6489
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."),
|
|
6490
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."),
|
|
6491
|
-
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."),
|
|
6492
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."),
|
|
6493
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."),
|
|
6494
|
-
Include_undefined_in_index_signature_results: diag(6716, ts.DiagnosticCategory.Message, "Include_undefined_in_index_signature_results_6716", "Include 'undefined' in index signature results"),
|
|
6495
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."),
|
|
6496
|
-
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"),
|
|
6497
|
-
|
|
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'."),
|
|
6498
6494
|
one_of_Colon: diag(6900, ts.DiagnosticCategory.Message, "one_of_Colon_6900", "one of:"),
|
|
6499
6495
|
one_or_more_Colon: diag(6901, ts.DiagnosticCategory.Message, "one_or_more_Colon_6901", "one or more:"),
|
|
6500
6496
|
type_Colon: diag(6902, ts.DiagnosticCategory.Message, "type_Colon_6902", "type:"),
|
|
@@ -11331,7 +11327,7 @@ var ts;
|
|
|
11331
11327
|
return name.kind === 161 && !isStringOrNumericLiteralLike(name.expression);
|
|
11332
11328
|
}
|
|
11333
11329
|
ts.isComputedNonLiteralName = isComputedNonLiteralName;
|
|
11334
|
-
function
|
|
11330
|
+
function tryGetTextOfPropertyName(name) {
|
|
11335
11331
|
switch (name.kind) {
|
|
11336
11332
|
case 79:
|
|
11337
11333
|
case 80:
|
|
@@ -11343,11 +11339,15 @@ var ts;
|
|
|
11343
11339
|
case 161:
|
|
11344
11340
|
if (isStringOrNumericLiteralLike(name.expression))
|
|
11345
11341
|
return ts.escapeLeadingUnderscores(name.expression.text);
|
|
11346
|
-
return
|
|
11342
|
+
return undefined;
|
|
11347
11343
|
default:
|
|
11348
11344
|
return ts.Debug.assertNever(name);
|
|
11349
11345
|
}
|
|
11350
11346
|
}
|
|
11347
|
+
ts.tryGetTextOfPropertyName = tryGetTextOfPropertyName;
|
|
11348
|
+
function getTextOfPropertyName(name) {
|
|
11349
|
+
return ts.Debug.checkDefined(tryGetTextOfPropertyName(name));
|
|
11350
|
+
}
|
|
11351
11351
|
ts.getTextOfPropertyName = getTextOfPropertyName;
|
|
11352
11352
|
function entityNameToString(name) {
|
|
11353
11353
|
switch (name.kind) {
|
|
@@ -11864,7 +11864,7 @@ var ts;
|
|
|
11864
11864
|
function getPropertyAssignment(objectLiteral, key, key2) {
|
|
11865
11865
|
return objectLiteral.properties.filter(function (property) {
|
|
11866
11866
|
if (property.kind === 295) {
|
|
11867
|
-
var propName =
|
|
11867
|
+
var propName = tryGetTextOfPropertyName(property.name);
|
|
11868
11868
|
return key === propName || (!!key2 && key2 === propName);
|
|
11869
11869
|
}
|
|
11870
11870
|
return false;
|
|
@@ -16717,7 +16717,6 @@ var ts;
|
|
|
16717
16717
|
parenthesizeExpressionForDisallowedComma: parenthesizeExpressionForDisallowedComma,
|
|
16718
16718
|
parenthesizeExpressionOfExpressionStatement: parenthesizeExpressionOfExpressionStatement,
|
|
16719
16719
|
parenthesizeConciseBodyOfArrowFunction: parenthesizeConciseBodyOfArrowFunction,
|
|
16720
|
-
parenthesizeCheckTypeOfConditionalType: parenthesizeCheckTypeOfConditionalType,
|
|
16721
16720
|
parenthesizeMemberOfConditionalType: parenthesizeMemberOfConditionalType,
|
|
16722
16721
|
parenthesizeMemberOfElementType: parenthesizeMemberOfElementType,
|
|
16723
16722
|
parenthesizeElementTypeOfArrayType: parenthesizeElementTypeOfArrayType,
|
|
@@ -16910,10 +16909,6 @@ var ts;
|
|
|
16910
16909
|
}
|
|
16911
16910
|
return body;
|
|
16912
16911
|
}
|
|
16913
|
-
function parenthesizeCheckTypeOfConditionalType(member) {
|
|
16914
|
-
return ts.isInferTypeNode(member) ? factory.createParenthesizedType(member) :
|
|
16915
|
-
parenthesizeMemberOfConditionalType(member);
|
|
16916
|
-
}
|
|
16917
16912
|
function parenthesizeMemberOfConditionalType(member) {
|
|
16918
16913
|
return member.kind === 188 ? factory.createParenthesizedType(member) : member;
|
|
16919
16914
|
}
|
|
@@ -16966,7 +16961,6 @@ var ts;
|
|
|
16966
16961
|
parenthesizeExpressionForDisallowedComma: ts.identity,
|
|
16967
16962
|
parenthesizeExpressionOfExpressionStatement: ts.identity,
|
|
16968
16963
|
parenthesizeConciseBodyOfArrowFunction: ts.identity,
|
|
16969
|
-
parenthesizeCheckTypeOfConditionalType: ts.identity,
|
|
16970
16964
|
parenthesizeMemberOfConditionalType: ts.identity,
|
|
16971
16965
|
parenthesizeMemberOfElementType: ts.identity,
|
|
16972
16966
|
parenthesizeElementTypeOfArrayType: ts.identity,
|
|
@@ -18398,7 +18392,7 @@ var ts;
|
|
|
18398
18392
|
}
|
|
18399
18393
|
function createConditionalTypeNode(checkType, extendsType, trueType, falseType) {
|
|
18400
18394
|
var node = createBaseNode(188);
|
|
18401
|
-
node.checkType = parenthesizerRules().
|
|
18395
|
+
node.checkType = parenthesizerRules().parenthesizeMemberOfConditionalType(checkType);
|
|
18402
18396
|
node.extendsType = parenthesizerRules().parenthesizeMemberOfConditionalType(extendsType);
|
|
18403
18397
|
node.trueType = trueType;
|
|
18404
18398
|
node.falseType = falseType;
|
|
@@ -26261,9 +26255,6 @@ var ts;
|
|
|
26261
26255
|
return finishNode(factory.createTypeQueryNode(entityName, typeArguments), pos);
|
|
26262
26256
|
}
|
|
26263
26257
|
function parseTypeParameter() {
|
|
26264
|
-
return parseTypeParameterWorker(true);
|
|
26265
|
-
}
|
|
26266
|
-
function parseTypeParameterWorker(canHaveDefault) {
|
|
26267
26258
|
var pos = getNodePos();
|
|
26268
26259
|
var name = parseIdentifier();
|
|
26269
26260
|
var constraint;
|
|
@@ -26276,7 +26267,7 @@ var ts;
|
|
|
26276
26267
|
expression = parseUnaryExpressionOrHigher();
|
|
26277
26268
|
}
|
|
26278
26269
|
}
|
|
26279
|
-
var defaultType =
|
|
26270
|
+
var defaultType = parseOptional(63) ? parseType() : undefined;
|
|
26280
26271
|
var node = factory.createTypeParameterDeclaration(name, constraint, defaultType);
|
|
26281
26272
|
node.expression = expression;
|
|
26282
26273
|
return finishNode(node, pos);
|
|
@@ -26851,10 +26842,14 @@ var ts;
|
|
|
26851
26842
|
parseExpected(operator);
|
|
26852
26843
|
return finishNode(factory.createTypeOperatorNode(operator, parseTypeOperatorOrHigher()), pos);
|
|
26853
26844
|
}
|
|
26845
|
+
function parseTypeParameterOfInferType() {
|
|
26846
|
+
var pos = getNodePos();
|
|
26847
|
+
return finishNode(factory.createTypeParameterDeclaration(parseIdentifier(), undefined, undefined), pos);
|
|
26848
|
+
}
|
|
26854
26849
|
function parseInferType() {
|
|
26855
26850
|
var pos = getNodePos();
|
|
26856
26851
|
parseExpected(137);
|
|
26857
|
-
return finishNode(factory.createInferTypeNode(
|
|
26852
|
+
return finishNode(factory.createInferTypeNode(parseTypeParameterOfInferType()), pos);
|
|
26858
26853
|
}
|
|
26859
26854
|
function parseTypeOperatorOrHigher() {
|
|
26860
26855
|
var operator = token();
|
|
@@ -31204,7 +31199,7 @@ var ts;
|
|
|
31204
31199
|
shortName: "i",
|
|
31205
31200
|
type: "boolean",
|
|
31206
31201
|
category: ts.Diagnostics.Projects,
|
|
31207
|
-
description: ts.Diagnostics.
|
|
31202
|
+
description: ts.Diagnostics.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,
|
|
31208
31203
|
transpileOptionValue: undefined,
|
|
31209
31204
|
defaultValueDescription: ts.Diagnostics.false_unless_composite_is_set
|
|
31210
31205
|
},
|
|
@@ -31598,7 +31593,7 @@ var ts;
|
|
|
31598
31593
|
affectsSemanticDiagnostics: true,
|
|
31599
31594
|
strictFlag: true,
|
|
31600
31595
|
category: ts.Diagnostics.Type_Checking,
|
|
31601
|
-
description: ts.Diagnostics.
|
|
31596
|
+
description: ts.Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,
|
|
31602
31597
|
defaultValueDescription: false,
|
|
31603
31598
|
},
|
|
31604
31599
|
{
|
|
@@ -31615,7 +31610,7 @@ var ts;
|
|
|
31615
31610
|
type: "boolean",
|
|
31616
31611
|
affectsSemanticDiagnostics: true,
|
|
31617
31612
|
category: ts.Diagnostics.Type_Checking,
|
|
31618
|
-
description: ts.Diagnostics.
|
|
31613
|
+
description: ts.Diagnostics.Enable_error_reporting_when_local_variables_aren_t_read,
|
|
31619
31614
|
defaultValueDescription: false,
|
|
31620
31615
|
},
|
|
31621
31616
|
{
|
|
@@ -31656,7 +31651,7 @@ var ts;
|
|
|
31656
31651
|
type: "boolean",
|
|
31657
31652
|
affectsSemanticDiagnostics: true,
|
|
31658
31653
|
category: ts.Diagnostics.Type_Checking,
|
|
31659
|
-
description: ts.Diagnostics.
|
|
31654
|
+
description: ts.Diagnostics.Add_undefined_to_a_type_when_accessed_using_an_index,
|
|
31660
31655
|
defaultValueDescription: false,
|
|
31661
31656
|
},
|
|
31662
31657
|
{
|
|
@@ -31839,7 +31834,8 @@ var ts;
|
|
|
31839
31834
|
name: "jsxFragmentFactory",
|
|
31840
31835
|
type: "string",
|
|
31841
31836
|
category: ts.Diagnostics.Language_and_Environment,
|
|
31842
|
-
description: ts.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment
|
|
31837
|
+
description: ts.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,
|
|
31838
|
+
defaultValueDescription: "React.Fragment",
|
|
31843
31839
|
},
|
|
31844
31840
|
{
|
|
31845
31841
|
name: "jsxImportSource",
|
|
@@ -32117,7 +32113,7 @@ var ts;
|
|
|
32117
32113
|
name: "plugin",
|
|
32118
32114
|
type: "object"
|
|
32119
32115
|
},
|
|
32120
|
-
description: ts.Diagnostics.
|
|
32116
|
+
description: ts.Diagnostics.Specify_a_list_of_language_service_plugins_to_include,
|
|
32121
32117
|
category: ts.Diagnostics.Editor_Support,
|
|
32122
32118
|
},
|
|
32123
32119
|
];
|
|
@@ -36241,7 +36237,7 @@ var ts;
|
|
|
36241
36237
|
return ts.isDottedName(expr)
|
|
36242
36238
|
|| (ts.isPropertyAccessExpression(expr) || ts.isNonNullExpression(expr) || ts.isParenthesizedExpression(expr)) && isNarrowableReference(expr.expression)
|
|
36243
36239
|
|| ts.isBinaryExpression(expr) && expr.operatorToken.kind === 27 && isNarrowableReference(expr.right)
|
|
36244
|
-
|| ts.isElementAccessExpression(expr) && ts.isStringOrNumericLiteralLike(expr.argumentExpression) && isNarrowableReference(expr.expression)
|
|
36240
|
+
|| ts.isElementAccessExpression(expr) && (ts.isStringOrNumericLiteralLike(expr.argumentExpression) || ts.isEntityNameExpression(expr.argumentExpression)) && isNarrowableReference(expr.expression)
|
|
36245
36241
|
|| ts.isAssignmentExpression(expr) && isNarrowableReference(expr.left);
|
|
36246
36242
|
}
|
|
36247
36243
|
function containsNarrowableReference(expr) {
|
|
@@ -43373,7 +43369,15 @@ var ts;
|
|
|
43373
43369
|
});
|
|
43374
43370
|
}
|
|
43375
43371
|
}
|
|
43376
|
-
if (
|
|
43372
|
+
if (symbolName === undefined) {
|
|
43373
|
+
var name = ts.firstDefined(symbol.declarations, ts.getNameOfDeclaration);
|
|
43374
|
+
if (name && ts.isComputedPropertyName(name) && ts.isEntityName(name.expression)) {
|
|
43375
|
+
var LHS = createAccessFromSymbolChain(chain, index - 1, stopper);
|
|
43376
|
+
if (ts.isEntityName(LHS)) {
|
|
43377
|
+
return ts.factory.createIndexedAccessTypeNode(ts.factory.createParenthesizedType(ts.factory.createTypeQueryNode(LHS)), ts.factory.createTypeQueryNode(name.expression));
|
|
43378
|
+
}
|
|
43379
|
+
return LHS;
|
|
43380
|
+
}
|
|
43377
43381
|
symbolName = getNameOfSymbolAsWritten(symbol, context);
|
|
43378
43382
|
}
|
|
43379
43383
|
context.approximateLength += symbolName.length + 1;
|
|
@@ -49778,6 +49782,9 @@ var ts;
|
|
|
49778
49782
|
return includes;
|
|
49779
49783
|
}
|
|
49780
49784
|
function removeSubtypes(types, hasObjectTypes) {
|
|
49785
|
+
if (types.length < 2) {
|
|
49786
|
+
return types;
|
|
49787
|
+
}
|
|
49781
49788
|
var id = getTypeListId(types);
|
|
49782
49789
|
var match = subtypeReductionCache.get(id);
|
|
49783
49790
|
if (match) {
|
|
@@ -54397,7 +54404,7 @@ var ts;
|
|
|
54397
54404
|
var requireOptionalProperties = (relation === subtypeRelation || relation === strictSubtypeRelation) && !isObjectLiteralType(source) && !isEmptyArrayLiteralType(source) && !isTupleType(source);
|
|
54398
54405
|
var unmatchedProperty = getUnmatchedProperty(source, target, requireOptionalProperties, false);
|
|
54399
54406
|
if (unmatchedProperty) {
|
|
54400
|
-
if (reportErrors) {
|
|
54407
|
+
if (reportErrors && shouldReportUnmatchedPropertyError(source, target)) {
|
|
54401
54408
|
reportUnmatchedProperty(source, target, unmatchedProperty, requireOptionalProperties);
|
|
54402
54409
|
}
|
|
54403
54410
|
return 0;
|
|
@@ -54537,6 +54544,19 @@ var ts;
|
|
|
54537
54544
|
}
|
|
54538
54545
|
return result;
|
|
54539
54546
|
}
|
|
54547
|
+
function shouldReportUnmatchedPropertyError(source, target) {
|
|
54548
|
+
var typeCallSignatures = getSignaturesOfStructuredType(source, 0);
|
|
54549
|
+
var typeConstructSignatures = getSignaturesOfStructuredType(source, 1);
|
|
54550
|
+
var typeProperties = getPropertiesOfObjectType(source);
|
|
54551
|
+
if ((typeCallSignatures.length || typeConstructSignatures.length) && !typeProperties.length) {
|
|
54552
|
+
if ((getSignaturesOfType(target, 0).length && typeCallSignatures.length) ||
|
|
54553
|
+
(getSignaturesOfType(target, 1).length && typeConstructSignatures.length)) {
|
|
54554
|
+
return true;
|
|
54555
|
+
}
|
|
54556
|
+
return false;
|
|
54557
|
+
}
|
|
54558
|
+
return true;
|
|
54559
|
+
}
|
|
54540
54560
|
function reportIncompatibleCallSignatureReturn(siga, sigb) {
|
|
54541
54561
|
if (siga.parameters.length === 0 && sigb.parameters.length === 0) {
|
|
54542
54562
|
return function (source, target) { return reportIncompatibleError(ts.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1, typeToString(source), typeToString(target)); };
|
|
@@ -56763,8 +56783,9 @@ var ts;
|
|
|
56763
56783
|
return isMatchingReference(source.expression, target);
|
|
56764
56784
|
case 205:
|
|
56765
56785
|
case 206:
|
|
56766
|
-
|
|
56767
|
-
|
|
56786
|
+
var sourcePropertyName = getAccessedPropertyName(source);
|
|
56787
|
+
var targetPropertyName = ts.isAccessExpression(target) ? getAccessedPropertyName(target) : undefined;
|
|
56788
|
+
return sourcePropertyName !== undefined && targetPropertyName !== undefined && targetPropertyName === sourcePropertyName &&
|
|
56768
56789
|
isMatchingReference(source.expression, target.expression);
|
|
56769
56790
|
case 160:
|
|
56770
56791
|
return ts.isAccessExpression(target) &&
|
|
@@ -56776,12 +56797,49 @@ var ts;
|
|
|
56776
56797
|
return false;
|
|
56777
56798
|
}
|
|
56778
56799
|
function getAccessedPropertyName(access) {
|
|
56779
|
-
|
|
56780
|
-
|
|
56781
|
-
|
|
56782
|
-
|
|
56783
|
-
|
|
56784
|
-
|
|
56800
|
+
if (ts.isPropertyAccessExpression(access)) {
|
|
56801
|
+
return access.name.escapedText;
|
|
56802
|
+
}
|
|
56803
|
+
if (ts.isElementAccessExpression(access)) {
|
|
56804
|
+
return tryGetElementAccessExpressionName(access);
|
|
56805
|
+
}
|
|
56806
|
+
if (ts.isBindingElement(access)) {
|
|
56807
|
+
var name = getDestructuringPropertyName(access);
|
|
56808
|
+
return name ? ts.escapeLeadingUnderscores(name) : undefined;
|
|
56809
|
+
}
|
|
56810
|
+
if (ts.isParameter(access)) {
|
|
56811
|
+
return ("" + access.parent.parameters.indexOf(access));
|
|
56812
|
+
}
|
|
56813
|
+
return undefined;
|
|
56814
|
+
}
|
|
56815
|
+
function tryGetNameFromType(type) {
|
|
56816
|
+
return type.flags & 8192 ? type.escapedName :
|
|
56817
|
+
type.flags & 384 ? ts.escapeLeadingUnderscores("" + type.value) : undefined;
|
|
56818
|
+
}
|
|
56819
|
+
function tryGetElementAccessExpressionName(node) {
|
|
56820
|
+
if (ts.isStringOrNumericLiteralLike(node.argumentExpression)) {
|
|
56821
|
+
return ts.escapeLeadingUnderscores(node.argumentExpression.text);
|
|
56822
|
+
}
|
|
56823
|
+
if (ts.isEntityNameExpression(node.argumentExpression)) {
|
|
56824
|
+
var symbol = resolveEntityName(node.argumentExpression, 111551, true);
|
|
56825
|
+
if (!symbol || !isConstVariable(symbol))
|
|
56826
|
+
return undefined;
|
|
56827
|
+
var declaration = symbol.valueDeclaration;
|
|
56828
|
+
if (declaration === undefined)
|
|
56829
|
+
return undefined;
|
|
56830
|
+
var type = tryGetTypeFromEffectiveTypeNode(declaration);
|
|
56831
|
+
if (type) {
|
|
56832
|
+
var name = tryGetNameFromType(type);
|
|
56833
|
+
if (name !== undefined) {
|
|
56834
|
+
return name;
|
|
56835
|
+
}
|
|
56836
|
+
}
|
|
56837
|
+
if (ts.hasOnlyExpressionInitializer(declaration)) {
|
|
56838
|
+
var initializer = ts.getEffectiveInitializer(declaration);
|
|
56839
|
+
return initializer && tryGetNameFromType(getTypeOfExpression(initializer));
|
|
56840
|
+
}
|
|
56841
|
+
}
|
|
56842
|
+
return undefined;
|
|
56785
56843
|
}
|
|
56786
56844
|
function containsMatchingReference(source, target) {
|
|
56787
56845
|
while (ts.isAccessExpression(source)) {
|
|
@@ -59764,11 +59822,21 @@ var ts;
|
|
|
59764
59822
|
}
|
|
59765
59823
|
return false;
|
|
59766
59824
|
}
|
|
59825
|
+
function uniqueStrings(strings) {
|
|
59826
|
+
var unique = new ts.Set(strings);
|
|
59827
|
+
var result = [];
|
|
59828
|
+
unique.forEach(function (str) { return result.push(str); });
|
|
59829
|
+
return result;
|
|
59830
|
+
}
|
|
59767
59831
|
function discriminateContextualTypeByObjectMembers(node, contextualType) {
|
|
59768
|
-
return getMatchingUnionConstituentForObjectLiteral(contextualType, node) || discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 295 && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName); }), function (prop) { return [function () { return getContextFreeTypeOfExpression(prop.initializer); }, prop.symbol.escapedName]; }), ts.map(ts.
|
|
59832
|
+
return getMatchingUnionConstituentForObjectLiteral(contextualType, node) || discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 295 && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName); }), function (prop) { return [function () { return getContextFreeTypeOfExpression(prop.initializer); }, prop.symbol.escapedName]; }), ts.map(uniqueStrings(ts.flatMap(contextualType.types, function (memberType) {
|
|
59833
|
+
return ts.map(ts.filter(getPropertiesOfType(memberType), function (s) { var _a; return !!(s.flags & 16777216) && !!((_a = node === null || node === void 0 ? void 0 : node.symbol) === null || _a === void 0 ? void 0 : _a.members) && !node.symbol.members.has(s.escapedName) && isDiscriminantProperty(contextualType, s.escapedName); }), function (s) { return s.escapedName; });
|
|
59834
|
+
})), function (name) { return [function () { return undefinedType; }, name]; })), isTypeAssignableTo, contextualType);
|
|
59769
59835
|
}
|
|
59770
59836
|
function discriminateContextualTypeByJSXAttributes(node, contextualType) {
|
|
59771
|
-
return discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 284 && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer)); }), function (prop) { return [!prop.initializer ? (function () { return trueType; }) : (function () { return getContextFreeTypeOfExpression(prop.initializer); }), prop.symbol.escapedName]; }), ts.map(ts.
|
|
59837
|
+
return discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 284 && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer)); }), function (prop) { return [!prop.initializer ? (function () { return trueType; }) : (function () { return getContextFreeTypeOfExpression(prop.initializer); }), prop.symbol.escapedName]; }), ts.map(uniqueStrings(ts.flatMap(contextualType.types, function (memberType) {
|
|
59838
|
+
return ts.map(ts.filter(getPropertiesOfType(memberType), function (s) { var _a; return !!(s.flags & 16777216) && !!((_a = node === null || node === void 0 ? void 0 : node.symbol) === null || _a === void 0 ? void 0 : _a.members) && !node.symbol.members.has(s.escapedName) && isDiscriminantProperty(contextualType, s.escapedName); }), function (s) { return s.escapedName; });
|
|
59839
|
+
})), function (name) { return [function () { return undefinedType; }, name]; })), isTypeAssignableTo, contextualType);
|
|
59772
59840
|
}
|
|
59773
59841
|
function getApparentTypeOfContextualType(node, contextFlags) {
|
|
59774
59842
|
var contextualType = ts.isObjectLiteralMethod(node) ?
|
|
@@ -61008,18 +61076,17 @@ var ts;
|
|
|
61008
61076
|
}
|
|
61009
61077
|
var enclosingClass = forEachEnclosingClass(location, function (enclosingDeclaration) {
|
|
61010
61078
|
var enclosingClass = getDeclaredTypeOfSymbol(getSymbolOfNode(enclosingDeclaration));
|
|
61011
|
-
return isClassDerivedFromDeclaringClasses(enclosingClass, prop, writing)
|
|
61079
|
+
return isClassDerivedFromDeclaringClasses(enclosingClass, prop, writing);
|
|
61012
61080
|
});
|
|
61013
61081
|
if (!enclosingClass) {
|
|
61014
|
-
|
|
61015
|
-
|
|
61082
|
+
enclosingClass = getEnclosingClassFromThisParameter(location);
|
|
61083
|
+
enclosingClass = enclosingClass && isClassDerivedFromDeclaringClasses(enclosingClass, prop, writing);
|
|
61084
|
+
if (flags & 32 || !enclosingClass) {
|
|
61016
61085
|
if (errorNode) {
|
|
61017
61086
|
error(errorNode, ts.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses, symbolToString(prop), typeToString(getDeclaringClass(prop) || containingType));
|
|
61018
61087
|
}
|
|
61019
61088
|
return false;
|
|
61020
61089
|
}
|
|
61021
|
-
var thisType = getTypeFromTypeNode(thisParameter.type);
|
|
61022
|
-
enclosingClass = ((thisType.flags & 262144) ? getConstraintOfTypeParameter(thisType) : thisType).target;
|
|
61023
61090
|
}
|
|
61024
61091
|
if (flags & 32) {
|
|
61025
61092
|
return true;
|
|
@@ -61035,6 +61102,17 @@ var ts;
|
|
|
61035
61102
|
}
|
|
61036
61103
|
return true;
|
|
61037
61104
|
}
|
|
61105
|
+
function getEnclosingClassFromThisParameter(node) {
|
|
61106
|
+
var thisParameter = getThisParameterFromNodeContext(node);
|
|
61107
|
+
var thisType = (thisParameter === null || thisParameter === void 0 ? void 0 : thisParameter.type) && getTypeFromTypeNode(thisParameter.type);
|
|
61108
|
+
if (thisType && thisType.flags & 262144) {
|
|
61109
|
+
thisType = getConstraintOfTypeParameter(thisType);
|
|
61110
|
+
}
|
|
61111
|
+
if (thisType && ts.getObjectFlags(thisType) & (3 | 4)) {
|
|
61112
|
+
return getTargetType(thisType);
|
|
61113
|
+
}
|
|
61114
|
+
return undefined;
|
|
61115
|
+
}
|
|
61038
61116
|
function getThisParameterFromNodeContext(node) {
|
|
61039
61117
|
var thisContainer = ts.getThisContainer(node, false);
|
|
61040
61118
|
return thisContainer && ts.isFunctionLike(thisContainer) ? ts.getThisParameter(thisContainer) : undefined;
|
|
@@ -62822,7 +62900,7 @@ var ts;
|
|
|
62822
62900
|
if (!isConstructorAccessible(node, constructSignatures[0])) {
|
|
62823
62901
|
return resolveErrorCall(node);
|
|
62824
62902
|
}
|
|
62825
|
-
if (constructSignatures
|
|
62903
|
+
if (someSignature(constructSignatures, function (signature) { return !!(signature.flags & 4); })) {
|
|
62826
62904
|
error(node, ts.Diagnostics.Cannot_create_an_instance_of_an_abstract_class);
|
|
62827
62905
|
return resolveErrorCall(node);
|
|
62828
62906
|
}
|
|
@@ -62849,6 +62927,12 @@ var ts;
|
|
|
62849
62927
|
invocationError(node.expression, expressionType, 1);
|
|
62850
62928
|
return resolveErrorCall(node);
|
|
62851
62929
|
}
|
|
62930
|
+
function someSignature(signatures, f) {
|
|
62931
|
+
if (ts.isArray(signatures)) {
|
|
62932
|
+
return ts.some(signatures, function (signature) { return someSignature(signature, f); });
|
|
62933
|
+
}
|
|
62934
|
+
return signatures.compositeKind === 1048576 ? ts.some(signatures.compositeSignatures, f) : f(signatures);
|
|
62935
|
+
}
|
|
62852
62936
|
function typeHasProtectedAccessibleBase(target, type) {
|
|
62853
62937
|
var baseTypes = getBaseTypes(type);
|
|
62854
62938
|
if (!ts.length(baseTypes)) {
|
|
@@ -64505,7 +64589,7 @@ var ts;
|
|
|
64505
64589
|
case 40:
|
|
64506
64590
|
case 54:
|
|
64507
64591
|
checkNonNullType(operandType, node.operand);
|
|
64508
|
-
if (
|
|
64592
|
+
if (maybeTypeOfKindConsideringBaseConstraint(operandType, 12288)) {
|
|
64509
64593
|
error(node.operand, ts.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, ts.tokenToString(node.operator));
|
|
64510
64594
|
}
|
|
64511
64595
|
if (node.operator === 39) {
|
|
@@ -64550,6 +64634,13 @@ var ts;
|
|
|
64550
64634
|
}
|
|
64551
64635
|
return numberType;
|
|
64552
64636
|
}
|
|
64637
|
+
function maybeTypeOfKindConsideringBaseConstraint(type, kind) {
|
|
64638
|
+
if (maybeTypeOfKind(type, kind)) {
|
|
64639
|
+
return true;
|
|
64640
|
+
}
|
|
64641
|
+
var baseConstraint = getBaseConstraintOrType(type);
|
|
64642
|
+
return !!baseConstraint && maybeTypeOfKind(baseConstraint, kind);
|
|
64643
|
+
}
|
|
64553
64644
|
function maybeTypeOfKind(type, kind) {
|
|
64554
64645
|
if (type.flags & kind) {
|
|
64555
64646
|
return true;
|
|
@@ -65183,8 +65274,8 @@ var ts;
|
|
|
65183
65274
|
return node.kind === 79 && node.escapedText === "eval";
|
|
65184
65275
|
}
|
|
65185
65276
|
function checkForDisallowedESSymbolOperand(operator) {
|
|
65186
|
-
var offendingSymbolOperand =
|
|
65187
|
-
|
|
65277
|
+
var offendingSymbolOperand = maybeTypeOfKindConsideringBaseConstraint(leftType, 12288) ? left :
|
|
65278
|
+
maybeTypeOfKindConsideringBaseConstraint(rightType, 12288) ? right :
|
|
65188
65279
|
undefined;
|
|
65189
65280
|
if (offendingSymbolOperand) {
|
|
65190
65281
|
error(offendingSymbolOperand, ts.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, ts.tokenToString(operator));
|
|
@@ -65370,7 +65461,7 @@ var ts;
|
|
|
65370
65461
|
for (var _i = 0, _a = node.templateSpans; _i < _a.length; _i++) {
|
|
65371
65462
|
var span = _a[_i];
|
|
65372
65463
|
var type = checkExpression(span.expression);
|
|
65373
|
-
if (
|
|
65464
|
+
if (maybeTypeOfKindConsideringBaseConstraint(type, 12288)) {
|
|
65374
65465
|
error(span.expression, ts.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String);
|
|
65375
65466
|
}
|
|
65376
65467
|
texts.push(span.literal.text);
|
|
@@ -66575,22 +66666,6 @@ var ts;
|
|
|
66575
66666
|
grammarErrorOnNode(node, ts.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type);
|
|
66576
66667
|
}
|
|
66577
66668
|
checkSourceElement(node.typeParameter);
|
|
66578
|
-
var symbol = getSymbolOfNode(node.typeParameter);
|
|
66579
|
-
if (symbol.declarations && symbol.declarations.length > 1) {
|
|
66580
|
-
var links = getSymbolLinks(symbol);
|
|
66581
|
-
if (!links.typeParametersChecked) {
|
|
66582
|
-
links.typeParametersChecked = true;
|
|
66583
|
-
var typeParameter = getDeclaredTypeOfTypeParameter(symbol);
|
|
66584
|
-
var declarations = ts.getDeclarationsOfKind(symbol, 162);
|
|
66585
|
-
if (!areTypeParametersIdentical(declarations, [typeParameter], function (decl) { return [decl]; })) {
|
|
66586
|
-
var name = symbolToString(symbol);
|
|
66587
|
-
for (var _i = 0, declarations_4 = declarations; _i < declarations_4.length; _i++) {
|
|
66588
|
-
var declaration = declarations_4[_i];
|
|
66589
|
-
error(declaration.name, ts.Diagnostics.All_declarations_of_0_must_have_identical_constraints, name);
|
|
66590
|
-
}
|
|
66591
|
-
}
|
|
66592
|
-
}
|
|
66593
|
-
}
|
|
66594
66669
|
registerForUnusedIdentifiersCheck(node);
|
|
66595
66670
|
}
|
|
66596
66671
|
function checkTemplateLiteralType(node) {
|
|
@@ -66747,8 +66822,8 @@ var ts;
|
|
|
66747
66822
|
var hasNonAmbientClass = false;
|
|
66748
66823
|
var functionDeclarations = [];
|
|
66749
66824
|
if (declarations) {
|
|
66750
|
-
for (var _i = 0,
|
|
66751
|
-
var current =
|
|
66825
|
+
for (var _i = 0, declarations_4 = declarations; _i < declarations_4.length; _i++) {
|
|
66826
|
+
var current = declarations_4[_i];
|
|
66752
66827
|
var node = current;
|
|
66753
66828
|
var inAmbientContext = node.flags & 8388608;
|
|
66754
66829
|
var inAmbientContextOrInterface = node.parent && (node.parent.kind === 257 || node.parent.kind === 181) || inAmbientContext;
|
|
@@ -67650,8 +67725,8 @@ var ts;
|
|
|
67650
67725
|
: ts.createDiagnosticForNode(declarationList.parent.kind === 236 ? declarationList.parent : declarationList, ts.Diagnostics.All_variables_are_unused));
|
|
67651
67726
|
}
|
|
67652
67727
|
else {
|
|
67653
|
-
for (var _i = 0,
|
|
67654
|
-
var decl =
|
|
67728
|
+
for (var _i = 0, declarations_5 = declarations; _i < declarations_5.length; _i++) {
|
|
67729
|
+
var decl = declarations_5[_i];
|
|
67655
67730
|
addDiagnostic(decl, 0, ts.createDiagnosticForNode(decl, ts.Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(decl.name)));
|
|
67656
67731
|
}
|
|
67657
67732
|
}
|
|
@@ -69090,21 +69165,21 @@ var ts;
|
|
|
69090
69165
|
return;
|
|
69091
69166
|
}
|
|
69092
69167
|
var type = getDeclaredTypeOfSymbol(symbol);
|
|
69093
|
-
if (!areTypeParametersIdentical(declarations, type.localTypeParameters
|
|
69168
|
+
if (!areTypeParametersIdentical(declarations, type.localTypeParameters)) {
|
|
69094
69169
|
var name = symbolToString(symbol);
|
|
69095
|
-
for (var _i = 0,
|
|
69096
|
-
var declaration =
|
|
69170
|
+
for (var _i = 0, declarations_6 = declarations; _i < declarations_6.length; _i++) {
|
|
69171
|
+
var declaration = declarations_6[_i];
|
|
69097
69172
|
error(declaration.name, ts.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters, name);
|
|
69098
69173
|
}
|
|
69099
69174
|
}
|
|
69100
69175
|
}
|
|
69101
69176
|
}
|
|
69102
|
-
function areTypeParametersIdentical(declarations, targetParameters
|
|
69177
|
+
function areTypeParametersIdentical(declarations, targetParameters) {
|
|
69103
69178
|
var maxTypeArgumentCount = ts.length(targetParameters);
|
|
69104
69179
|
var minTypeArgumentCount = getMinTypeArgumentCount(targetParameters);
|
|
69105
|
-
for (var _i = 0,
|
|
69106
|
-
var declaration =
|
|
69107
|
-
var sourceParameters =
|
|
69180
|
+
for (var _i = 0, declarations_7 = declarations; _i < declarations_7.length; _i++) {
|
|
69181
|
+
var declaration = declarations_7[_i];
|
|
69182
|
+
var sourceParameters = ts.getEffectiveTypeParameterDeclarations(declaration);
|
|
69108
69183
|
var numTypeParameters = sourceParameters.length;
|
|
69109
69184
|
if (numTypeParameters < minTypeArgumentCount || numTypeParameters > maxTypeArgumentCount) {
|
|
69110
69185
|
return false;
|
|
@@ -69578,7 +69653,7 @@ var ts;
|
|
|
69578
69653
|
}
|
|
69579
69654
|
if (!ts.isStatic(member) && isPropertyWithoutInitializer(member)) {
|
|
69580
69655
|
var propName = member.name;
|
|
69581
|
-
if (ts.isIdentifier(propName) || ts.isPrivateIdentifier(propName)) {
|
|
69656
|
+
if (ts.isIdentifier(propName) || ts.isPrivateIdentifier(propName) || ts.isComputedPropertyName(propName)) {
|
|
69582
69657
|
var type = getTypeOfSymbol(getSymbolOfNode(member));
|
|
69583
69658
|
if (!(type.flags & 3 || getFalsyFlags(type) & 32768)) {
|
|
69584
69659
|
if (!constructor || !isPropertyInitializedInConstructor(propName, type, constructor)) {
|
|
@@ -69612,7 +69687,9 @@ var ts;
|
|
|
69612
69687
|
return false;
|
|
69613
69688
|
}
|
|
69614
69689
|
function isPropertyInitializedInConstructor(propName, propType, constructor) {
|
|
69615
|
-
var reference = ts.
|
|
69690
|
+
var reference = ts.isComputedPropertyName(propName)
|
|
69691
|
+
? ts.factory.createElementAccessExpression(ts.factory.createThis(), propName.expression)
|
|
69692
|
+
: ts.factory.createPropertyAccessExpression(ts.factory.createThis(), propName);
|
|
69616
69693
|
ts.setParent(reference.expression, reference);
|
|
69617
69694
|
ts.setParent(reference, constructor);
|
|
69618
69695
|
reference.flowNode = constructor.returnFlowNode;
|
|
@@ -69881,8 +69958,8 @@ var ts;
|
|
|
69881
69958
|
function getFirstNonAmbientClassOrFunctionDeclaration(symbol) {
|
|
69882
69959
|
var declarations = symbol.declarations;
|
|
69883
69960
|
if (declarations) {
|
|
69884
|
-
for (var _i = 0,
|
|
69885
|
-
var declaration =
|
|
69961
|
+
for (var _i = 0, declarations_8 = declarations; _i < declarations_8.length; _i++) {
|
|
69962
|
+
var declaration = declarations_8[_i];
|
|
69886
69963
|
if ((declaration.kind === 256 ||
|
|
69887
69964
|
(declaration.kind === 255 && ts.nodeIsPresent(declaration.body))) &&
|
|
69888
69965
|
!(declaration.flags & 8388608)) {
|
|
@@ -77418,10 +77495,7 @@ var ts;
|
|
|
77418
77495
|
var substitute = typeof constantValue === "string" ? factory.createStringLiteral(constantValue) : factory.createNumericLiteral(constantValue);
|
|
77419
77496
|
if (!compilerOptions.removeComments) {
|
|
77420
77497
|
var originalNode = ts.getOriginalNode(node, ts.isAccessExpression);
|
|
77421
|
-
|
|
77422
|
-
? ts.declarationNameToString(originalNode.name)
|
|
77423
|
-
: safeMultiLineComment(ts.getTextOfNode(originalNode.argumentExpression));
|
|
77424
|
-
ts.addSyntheticTrailingComment(substitute, 3, " " + propertyName + " ");
|
|
77498
|
+
ts.addSyntheticTrailingComment(substitute, 3, " " + safeMultiLineComment(ts.getTextOfNode(originalNode)) + " ");
|
|
77425
77499
|
}
|
|
77426
77500
|
return substitute;
|
|
77427
77501
|
}
|
|
@@ -81974,8 +82048,8 @@ var ts;
|
|
|
81974
82048
|
}
|
|
81975
82049
|
function getRangeUnion(declarations) {
|
|
81976
82050
|
var pos = -1, end = -1;
|
|
81977
|
-
for (var _i = 0,
|
|
81978
|
-
var node =
|
|
82051
|
+
for (var _i = 0, declarations_9 = declarations; _i < declarations_9.length; _i++) {
|
|
82052
|
+
var node = declarations_9[_i];
|
|
81979
82053
|
pos = pos === -1 ? node.pos : node.pos === -1 ? pos : Math.min(pos, node.pos);
|
|
81980
82054
|
end = Math.max(end, node.end);
|
|
81981
82055
|
}
|