@typescript-deploys/pr-build 4.7.0-pr-48080-37 → 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/tsc.js +176 -204
- package/lib/tsserver.js +467 -294
- package/lib/tsserverlibrary.d.ts +11 -7
- package/lib/tsserverlibrary.js +467 -294
- package/lib/typescript.d.ts +11 -7
- package/lib/typescript.js +467 -294
- package/lib/typescriptServices.d.ts +11 -7
- package/lib/typescriptServices.js +467 -294
- package/lib/typingsInstaller.js +227 -251
- 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 :
|
|
@@ -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:"),
|
|
@@ -11330,7 +11327,7 @@ var ts;
|
|
|
11330
11327
|
return name.kind === 161 && !isStringOrNumericLiteralLike(name.expression);
|
|
11331
11328
|
}
|
|
11332
11329
|
ts.isComputedNonLiteralName = isComputedNonLiteralName;
|
|
11333
|
-
function
|
|
11330
|
+
function tryGetTextOfPropertyName(name) {
|
|
11334
11331
|
switch (name.kind) {
|
|
11335
11332
|
case 79:
|
|
11336
11333
|
case 80:
|
|
@@ -11342,11 +11339,15 @@ var ts;
|
|
|
11342
11339
|
case 161:
|
|
11343
11340
|
if (isStringOrNumericLiteralLike(name.expression))
|
|
11344
11341
|
return ts.escapeLeadingUnderscores(name.expression.text);
|
|
11345
|
-
return
|
|
11342
|
+
return undefined;
|
|
11346
11343
|
default:
|
|
11347
11344
|
return ts.Debug.assertNever(name);
|
|
11348
11345
|
}
|
|
11349
11346
|
}
|
|
11347
|
+
ts.tryGetTextOfPropertyName = tryGetTextOfPropertyName;
|
|
11348
|
+
function getTextOfPropertyName(name) {
|
|
11349
|
+
return ts.Debug.checkDefined(tryGetTextOfPropertyName(name));
|
|
11350
|
+
}
|
|
11350
11351
|
ts.getTextOfPropertyName = getTextOfPropertyName;
|
|
11351
11352
|
function entityNameToString(name) {
|
|
11352
11353
|
switch (name.kind) {
|
|
@@ -11863,7 +11864,7 @@ var ts;
|
|
|
11863
11864
|
function getPropertyAssignment(objectLiteral, key, key2) {
|
|
11864
11865
|
return objectLiteral.properties.filter(function (property) {
|
|
11865
11866
|
if (property.kind === 295) {
|
|
11866
|
-
var propName =
|
|
11867
|
+
var propName = tryGetTextOfPropertyName(property.name);
|
|
11867
11868
|
return key === propName || (!!key2 && key2 === propName);
|
|
11868
11869
|
}
|
|
11869
11870
|
return false;
|
|
@@ -31198,7 +31199,7 @@ var ts;
|
|
|
31198
31199
|
shortName: "i",
|
|
31199
31200
|
type: "boolean",
|
|
31200
31201
|
category: ts.Diagnostics.Projects,
|
|
31201
|
-
description: ts.Diagnostics.
|
|
31202
|
+
description: ts.Diagnostics.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,
|
|
31202
31203
|
transpileOptionValue: undefined,
|
|
31203
31204
|
defaultValueDescription: ts.Diagnostics.false_unless_composite_is_set
|
|
31204
31205
|
},
|
|
@@ -31592,7 +31593,7 @@ var ts;
|
|
|
31592
31593
|
affectsSemanticDiagnostics: true,
|
|
31593
31594
|
strictFlag: true,
|
|
31594
31595
|
category: ts.Diagnostics.Type_Checking,
|
|
31595
|
-
description: ts.Diagnostics.
|
|
31596
|
+
description: ts.Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,
|
|
31596
31597
|
defaultValueDescription: false,
|
|
31597
31598
|
},
|
|
31598
31599
|
{
|
|
@@ -31609,7 +31610,7 @@ var ts;
|
|
|
31609
31610
|
type: "boolean",
|
|
31610
31611
|
affectsSemanticDiagnostics: true,
|
|
31611
31612
|
category: ts.Diagnostics.Type_Checking,
|
|
31612
|
-
description: ts.Diagnostics.
|
|
31613
|
+
description: ts.Diagnostics.Enable_error_reporting_when_local_variables_aren_t_read,
|
|
31613
31614
|
defaultValueDescription: false,
|
|
31614
31615
|
},
|
|
31615
31616
|
{
|
|
@@ -31650,7 +31651,7 @@ var ts;
|
|
|
31650
31651
|
type: "boolean",
|
|
31651
31652
|
affectsSemanticDiagnostics: true,
|
|
31652
31653
|
category: ts.Diagnostics.Type_Checking,
|
|
31653
|
-
description: ts.Diagnostics.
|
|
31654
|
+
description: ts.Diagnostics.Add_undefined_to_a_type_when_accessed_using_an_index,
|
|
31654
31655
|
defaultValueDescription: false,
|
|
31655
31656
|
},
|
|
31656
31657
|
{
|
|
@@ -32112,7 +32113,7 @@ var ts;
|
|
|
32112
32113
|
name: "plugin",
|
|
32113
32114
|
type: "object"
|
|
32114
32115
|
},
|
|
32115
|
-
description: ts.Diagnostics.
|
|
32116
|
+
description: ts.Diagnostics.Specify_a_list_of_language_service_plugins_to_include,
|
|
32116
32117
|
category: ts.Diagnostics.Editor_Support,
|
|
32117
32118
|
},
|
|
32118
32119
|
];
|
|
@@ -38617,7 +38618,7 @@ var ts;
|
|
|
38617
38618
|
var noImplicitThis = ts.getStrictOptionValue(compilerOptions, "noImplicitThis");
|
|
38618
38619
|
var useUnknownInCatchVariables = ts.getStrictOptionValue(compilerOptions, "useUnknownInCatchVariables");
|
|
38619
38620
|
var keyofStringsOnly = !!compilerOptions.keyofStringsOnly;
|
|
38620
|
-
var freshObjectLiteralFlag = compilerOptions.suppressExcessPropertyErrors ? 0 :
|
|
38621
|
+
var freshObjectLiteralFlag = compilerOptions.suppressExcessPropertyErrors ? 0 : 16384;
|
|
38621
38622
|
var exactOptionalPropertyTypes = compilerOptions.exactOptionalPropertyTypes;
|
|
38622
38623
|
var checkBinaryExpression = createCheckBinaryExpression();
|
|
38623
38624
|
var emitResolver = createResolver();
|
|
@@ -38988,16 +38989,16 @@ var ts;
|
|
|
38988
38989
|
var wildcardType = createIntrinsicType(1, "any");
|
|
38989
38990
|
var errorType = createIntrinsicType(1, "error");
|
|
38990
38991
|
var unresolvedType = createIntrinsicType(1, "unresolved");
|
|
38991
|
-
var nonInferrableAnyType = createIntrinsicType(1, "any",
|
|
38992
|
+
var nonInferrableAnyType = createIntrinsicType(1, "any", 131072);
|
|
38992
38993
|
var intrinsicMarkerType = createIntrinsicType(1, "intrinsic");
|
|
38993
38994
|
var unknownType = createIntrinsicType(2, "unknown");
|
|
38994
38995
|
var nonNullUnknownType = createIntrinsicType(2, "unknown");
|
|
38995
38996
|
var undefinedType = createIntrinsicType(32768, "undefined");
|
|
38996
|
-
var undefinedWideningType = strictNullChecks ? undefinedType : createIntrinsicType(32768, "undefined",
|
|
38997
|
+
var undefinedWideningType = strictNullChecks ? undefinedType : createIntrinsicType(32768, "undefined", 131072);
|
|
38997
38998
|
var optionalType = createIntrinsicType(32768, "undefined");
|
|
38998
38999
|
var missingType = exactOptionalPropertyTypes ? createIntrinsicType(32768, "undefined") : undefinedType;
|
|
38999
39000
|
var nullType = createIntrinsicType(65536, "null");
|
|
39000
|
-
var nullWideningType = strictNullChecks ? nullType : createIntrinsicType(65536, "null",
|
|
39001
|
+
var nullWideningType = strictNullChecks ? nullType : createIntrinsicType(65536, "null", 131072);
|
|
39001
39002
|
var stringType = createIntrinsicType(4, "string");
|
|
39002
39003
|
var numberType = createIntrinsicType(8, "number");
|
|
39003
39004
|
var bigintType = createIntrinsicType(64, "bigint");
|
|
@@ -39018,7 +39019,7 @@ var ts;
|
|
|
39018
39019
|
var voidType = createIntrinsicType(16384, "void");
|
|
39019
39020
|
var neverType = createIntrinsicType(131072, "never");
|
|
39020
39021
|
var silentNeverType = createIntrinsicType(131072, "never");
|
|
39021
|
-
var nonInferrableType = createIntrinsicType(131072, "never",
|
|
39022
|
+
var nonInferrableType = createIntrinsicType(131072, "never", 524288);
|
|
39022
39023
|
var implicitNeverType = createIntrinsicType(131072, "never");
|
|
39023
39024
|
var unreachableNeverType = createIntrinsicType(131072, "never");
|
|
39024
39025
|
var nonPrimitiveType = createIntrinsicType(67108864, "object");
|
|
@@ -39038,7 +39039,7 @@ var ts;
|
|
|
39038
39039
|
var emptyGenericType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);
|
|
39039
39040
|
emptyGenericType.instantiations = new ts.Map();
|
|
39040
39041
|
var anyFunctionType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);
|
|
39041
|
-
anyFunctionType.objectFlags |=
|
|
39042
|
+
anyFunctionType.objectFlags |= 524288;
|
|
39042
39043
|
var noConstraintType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);
|
|
39043
39044
|
var circularConstraintType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);
|
|
39044
39045
|
var resolvingDefaultType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);
|
|
@@ -42113,7 +42114,7 @@ var ts;
|
|
|
42113
42114
|
return flags & 814775659;
|
|
42114
42115
|
}
|
|
42115
42116
|
function isClassInstanceSide(type) {
|
|
42116
|
-
return !!type.symbol && !!(type.symbol.flags & 32) && (type === getDeclaredTypeOfClassOrInterface(type.symbol) || (!!(type.flags & 524288) && !!(ts.getObjectFlags(type) &
|
|
42117
|
+
return !!type.symbol && !!(type.symbol.flags & 32) && (type === getDeclaredTypeOfClassOrInterface(type.symbol) || (!!(type.flags & 524288) && !!(ts.getObjectFlags(type) & 33554432)));
|
|
42117
42118
|
}
|
|
42118
42119
|
function createNodeBuilder() {
|
|
42119
42120
|
return {
|
|
@@ -45050,7 +45051,7 @@ var ts;
|
|
|
45050
45051
|
members.set(prop.escapedName, getSpreadSymbol(prop, false));
|
|
45051
45052
|
}
|
|
45052
45053
|
var result = createAnonymousType(symbol, members, ts.emptyArray, ts.emptyArray, getIndexInfosOfType(source));
|
|
45053
|
-
result.objectFlags |=
|
|
45054
|
+
result.objectFlags |= 8388608;
|
|
45054
45055
|
return result;
|
|
45055
45056
|
}
|
|
45056
45057
|
function isGenericTypeWithUndefinedConstraint(type) {
|
|
@@ -45463,7 +45464,7 @@ var ts;
|
|
|
45463
45464
|
mergeSymbolTable(exports, s.exports);
|
|
45464
45465
|
}
|
|
45465
45466
|
var type = createAnonymousType(symbol, exports, ts.emptyArray, ts.emptyArray, ts.emptyArray);
|
|
45466
|
-
type.objectFlags |=
|
|
45467
|
+
type.objectFlags |= 8192;
|
|
45467
45468
|
return type;
|
|
45468
45469
|
}
|
|
45469
45470
|
function getAnnotatedTypeForAssignmentDeclaration(declaredType, expression, symbol, declaration) {
|
|
@@ -45555,9 +45556,9 @@ var ts;
|
|
|
45555
45556
|
}
|
|
45556
45557
|
});
|
|
45557
45558
|
var result = createAnonymousType(initialSize !== members_4.size ? undefined : exportedType.symbol, members_4, exportedType.callSignatures, exportedType.constructSignatures, exportedType.indexInfos);
|
|
45558
|
-
result.objectFlags |= (ts.getObjectFlags(type) &
|
|
45559
|
+
result.objectFlags |= (ts.getObjectFlags(type) & 8192);
|
|
45559
45560
|
if (result.symbol && result.symbol.flags & 32 && type === getDeclaredTypeOfClassOrInterface(result.symbol)) {
|
|
45560
|
-
result.objectFlags |=
|
|
45561
|
+
result.objectFlags |= 33554432;
|
|
45561
45562
|
}
|
|
45562
45563
|
return result;
|
|
45563
45564
|
}
|
|
@@ -45603,7 +45604,7 @@ var ts;
|
|
|
45603
45604
|
function getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors) {
|
|
45604
45605
|
var members = ts.createSymbolTable();
|
|
45605
45606
|
var stringIndexInfo;
|
|
45606
|
-
var objectFlags = 128 |
|
|
45607
|
+
var objectFlags = 128 | 262144;
|
|
45607
45608
|
ts.forEach(pattern.elements, function (e) {
|
|
45608
45609
|
var name = e.propertyName || e.name;
|
|
45609
45610
|
if (e.dotDotDotToken) {
|
|
@@ -45626,7 +45627,7 @@ var ts;
|
|
|
45626
45627
|
result.objectFlags |= objectFlags;
|
|
45627
45628
|
if (includePatternInType) {
|
|
45628
45629
|
result.pattern = pattern;
|
|
45629
|
-
result.objectFlags |=
|
|
45630
|
+
result.objectFlags |= 262144;
|
|
45630
45631
|
}
|
|
45631
45632
|
return result;
|
|
45632
45633
|
}
|
|
@@ -45644,7 +45645,7 @@ var ts;
|
|
|
45644
45645
|
if (includePatternInType) {
|
|
45645
45646
|
result = cloneTypeReference(result);
|
|
45646
45647
|
result.pattern = pattern;
|
|
45647
|
-
result.objectFlags |=
|
|
45648
|
+
result.objectFlags |= 262144;
|
|
45648
45649
|
}
|
|
45649
45650
|
return result;
|
|
45650
45651
|
}
|
|
@@ -48067,7 +48068,7 @@ var ts;
|
|
|
48067
48068
|
checkFlags |= 32 | (indexInfo.isReadonly ? 8 : 0);
|
|
48068
48069
|
indexTypes = ts.append(indexTypes, isTupleType(type) ? getRestTypeOfTupleType(type) || undefinedType : indexInfo.type);
|
|
48069
48070
|
}
|
|
48070
|
-
else if (isObjectLiteralType(type) && !(ts.getObjectFlags(type) &
|
|
48071
|
+
else if (isObjectLiteralType(type) && !(ts.getObjectFlags(type) & 4194304)) {
|
|
48071
48072
|
checkFlags |= 32;
|
|
48072
48073
|
indexTypes = ts.append(indexTypes, undefinedType);
|
|
48073
48074
|
}
|
|
@@ -48172,15 +48173,15 @@ var ts;
|
|
|
48172
48173
|
return property && !(ts.getCheckFlags(property) & 16) ? property : undefined;
|
|
48173
48174
|
}
|
|
48174
48175
|
function getReducedType(type) {
|
|
48175
|
-
if (type.flags & 1048576 && type.objectFlags &
|
|
48176
|
+
if (type.flags & 1048576 && type.objectFlags & 33554432) {
|
|
48176
48177
|
return type.resolvedReducedType || (type.resolvedReducedType = getReducedUnionType(type));
|
|
48177
48178
|
}
|
|
48178
48179
|
else if (type.flags & 2097152) {
|
|
48179
|
-
if (!(type.objectFlags &
|
|
48180
|
-
type.objectFlags |=
|
|
48181
|
-
(ts.some(getPropertiesOfUnionOrIntersectionType(type), isNeverReducedProperty) ?
|
|
48180
|
+
if (!(type.objectFlags & 33554432)) {
|
|
48181
|
+
type.objectFlags |= 33554432 |
|
|
48182
|
+
(ts.some(getPropertiesOfUnionOrIntersectionType(type), isNeverReducedProperty) ? 67108864 : 0);
|
|
48182
48183
|
}
|
|
48183
|
-
return type.objectFlags &
|
|
48184
|
+
return type.objectFlags & 67108864 ? neverType : type;
|
|
48184
48185
|
}
|
|
48185
48186
|
return type;
|
|
48186
48187
|
}
|
|
@@ -48207,7 +48208,7 @@ var ts;
|
|
|
48207
48208
|
return !prop.valueDeclaration && !!(ts.getCheckFlags(prop) & 1024);
|
|
48208
48209
|
}
|
|
48209
48210
|
function elaborateNeverIntersection(errorInfo, type) {
|
|
48210
|
-
if (type.flags & 2097152 && ts.getObjectFlags(type) &
|
|
48211
|
+
if (type.flags & 2097152 && ts.getObjectFlags(type) & 67108864) {
|
|
48211
48212
|
var neverProp = ts.find(getPropertiesOfUnionOrIntersectionType(type), isDiscriminantWithNeverType);
|
|
48212
48213
|
if (neverProp) {
|
|
48213
48214
|
return ts.chainDiagnosticMessages(errorInfo, ts.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents, typeToString(type, undefined, 536870912), symbolToString(neverProp));
|
|
@@ -48920,7 +48921,7 @@ var ts;
|
|
|
48920
48921
|
result |= ts.getObjectFlags(type);
|
|
48921
48922
|
}
|
|
48922
48923
|
}
|
|
48923
|
-
return result &
|
|
48924
|
+
return result & 917504;
|
|
48924
48925
|
}
|
|
48925
48926
|
function createTypeReference(target, typeArguments) {
|
|
48926
48927
|
var id = getTypeListId(typeArguments);
|
|
@@ -49760,7 +49761,7 @@ var ts;
|
|
|
49760
49761
|
if (type === wildcardType)
|
|
49761
49762
|
includes |= 8388608;
|
|
49762
49763
|
if (!strictNullChecks && flags & 98304) {
|
|
49763
|
-
if (!(ts.getObjectFlags(type) &
|
|
49764
|
+
if (!(ts.getObjectFlags(type) & 131072))
|
|
49764
49765
|
includes |= 4194304;
|
|
49765
49766
|
}
|
|
49766
49767
|
else {
|
|
@@ -49781,6 +49782,9 @@ var ts;
|
|
|
49781
49782
|
return includes;
|
|
49782
49783
|
}
|
|
49783
49784
|
function removeSubtypes(types, hasObjectTypes) {
|
|
49785
|
+
if (types.length < 2) {
|
|
49786
|
+
return types;
|
|
49787
|
+
}
|
|
49784
49788
|
var id = getTypeListId(types);
|
|
49785
49789
|
var match = subtypeReductionCache.get(id);
|
|
49786
49790
|
if (match) {
|
|
@@ -49949,8 +49953,8 @@ var ts;
|
|
|
49949
49953
|
origin = createOriginUnionOrIntersectionType(1048576, reducedTypes);
|
|
49950
49954
|
}
|
|
49951
49955
|
}
|
|
49952
|
-
var objectFlags = (includes & 36323363 ? 0 :
|
|
49953
|
-
(includes & 2097152 ?
|
|
49956
|
+
var objectFlags = (includes & 36323363 ? 0 : 65536) |
|
|
49957
|
+
(includes & 2097152 ? 33554432 : 0);
|
|
49954
49958
|
return getUnionTypeFromSortedList(typeSet, objectFlags, aliasSymbol, aliasTypeArguments, origin);
|
|
49955
49959
|
}
|
|
49956
49960
|
function getUnionOrIntersectionTypePredicate(signatures, kind) {
|
|
@@ -50122,14 +50126,14 @@ var ts;
|
|
|
50122
50126
|
}
|
|
50123
50127
|
function intersectUnionsOfPrimitiveTypes(types) {
|
|
50124
50128
|
var unionTypes;
|
|
50125
|
-
var index = ts.findIndex(types, function (t) { return !!(ts.getObjectFlags(t) &
|
|
50129
|
+
var index = ts.findIndex(types, function (t) { return !!(ts.getObjectFlags(t) & 65536); });
|
|
50126
50130
|
if (index < 0) {
|
|
50127
50131
|
return false;
|
|
50128
50132
|
}
|
|
50129
50133
|
var i = index + 1;
|
|
50130
50134
|
while (i < types.length) {
|
|
50131
50135
|
var t = types[i];
|
|
50132
|
-
if (ts.getObjectFlags(t) &
|
|
50136
|
+
if (ts.getObjectFlags(t) & 65536) {
|
|
50133
50137
|
(unionTypes || (unionTypes = [types[index]])).push(t);
|
|
50134
50138
|
ts.orderedRemoveItemAt(types, i);
|
|
50135
50139
|
}
|
|
@@ -50153,7 +50157,7 @@ var ts;
|
|
|
50153
50157
|
}
|
|
50154
50158
|
}
|
|
50155
50159
|
}
|
|
50156
|
-
types[index] = getUnionTypeFromSortedList(result,
|
|
50160
|
+
types[index] = getUnionTypeFromSortedList(result, 65536);
|
|
50157
50161
|
return true;
|
|
50158
50162
|
}
|
|
50159
50163
|
function createIntersectionType(types, aliasSymbol, aliasTypeArguments) {
|
|
@@ -50532,7 +50536,7 @@ var ts;
|
|
|
50532
50536
|
if (noImplicitAny) {
|
|
50533
50537
|
return false;
|
|
50534
50538
|
}
|
|
50535
|
-
if (ts.getObjectFlags(type) &
|
|
50539
|
+
if (ts.getObjectFlags(type) & 8192) {
|
|
50536
50540
|
return true;
|
|
50537
50541
|
}
|
|
50538
50542
|
if (type.flags & 1048576) {
|
|
@@ -50743,28 +50747,28 @@ var ts;
|
|
|
50743
50747
|
return !!getGenericObjectFlags(type);
|
|
50744
50748
|
}
|
|
50745
50749
|
function isGenericObjectType(type) {
|
|
50746
|
-
return !!(getGenericObjectFlags(type) &
|
|
50750
|
+
return !!(getGenericObjectFlags(type) & 8388608);
|
|
50747
50751
|
}
|
|
50748
50752
|
function isGenericIndexType(type) {
|
|
50749
|
-
return !!(getGenericObjectFlags(type) &
|
|
50753
|
+
return !!(getGenericObjectFlags(type) & 16777216);
|
|
50750
50754
|
}
|
|
50751
50755
|
function getGenericObjectFlags(type) {
|
|
50752
50756
|
if (type.flags & 3145728) {
|
|
50753
|
-
if (!(type.objectFlags &
|
|
50754
|
-
type.objectFlags |=
|
|
50757
|
+
if (!(type.objectFlags & 4194304)) {
|
|
50758
|
+
type.objectFlags |= 4194304 |
|
|
50755
50759
|
ts.reduceLeft(type.types, function (flags, t) { return flags | getGenericObjectFlags(t); }, 0);
|
|
50756
50760
|
}
|
|
50757
|
-
return type.objectFlags &
|
|
50761
|
+
return type.objectFlags & 25165824;
|
|
50758
50762
|
}
|
|
50759
50763
|
if (type.flags & 33554432) {
|
|
50760
|
-
if (!(type.objectFlags &
|
|
50761
|
-
type.objectFlags |=
|
|
50764
|
+
if (!(type.objectFlags & 4194304)) {
|
|
50765
|
+
type.objectFlags |= 4194304 |
|
|
50762
50766
|
getGenericObjectFlags(type.substitute) | getGenericObjectFlags(type.baseType);
|
|
50763
50767
|
}
|
|
50764
|
-
return type.objectFlags &
|
|
50768
|
+
return type.objectFlags & 25165824;
|
|
50765
50769
|
}
|
|
50766
|
-
return (type.flags & 58982400 || isGenericMappedType(type) || isGenericTupleType(type) ?
|
|
50767
|
-
(type.flags & (58982400 | 4194304 | 134217728 | 268435456) && !isPatternLiteralType(type) ?
|
|
50770
|
+
return (type.flags & 58982400 || isGenericMappedType(type) || isGenericTupleType(type) ? 8388608 : 0) |
|
|
50771
|
+
(type.flags & (58982400 | 4194304 | 134217728 | 268435456) && !isPatternLiteralType(type) ? 16777216 : 0);
|
|
50768
50772
|
}
|
|
50769
50773
|
function getSimplifiedType(type, writing) {
|
|
50770
50774
|
return type.flags & 8388608 ? getSimplifiedIndexedAccessType(type, writing) :
|
|
@@ -51244,7 +51248,7 @@ var ts;
|
|
|
51244
51248
|
}
|
|
51245
51249
|
}
|
|
51246
51250
|
var spread = createAnonymousType(type.symbol, members, ts.emptyArray, ts.emptyArray, getIndexInfosOfType(type));
|
|
51247
|
-
spread.objectFlags |= 128 |
|
|
51251
|
+
spread.objectFlags |= 128 | 262144;
|
|
51248
51252
|
return spread;
|
|
51249
51253
|
}
|
|
51250
51254
|
}
|
|
@@ -51326,7 +51330,7 @@ var ts;
|
|
|
51326
51330
|
}
|
|
51327
51331
|
}
|
|
51328
51332
|
var spread = createAnonymousType(symbol, members, ts.emptyArray, ts.emptyArray, ts.sameMap(indexInfos, function (info) { return getIndexInfoWithReadonly(info, readonly); }));
|
|
51329
|
-
spread.objectFlags |= 128 |
|
|
51333
|
+
spread.objectFlags |= 128 | 262144 | 4194304 | objectFlags;
|
|
51330
51334
|
return spread;
|
|
51331
51335
|
}
|
|
51332
51336
|
function isSpreadableProperty(prop) {
|
|
@@ -51711,7 +51715,7 @@ var ts;
|
|
|
51711
51715
|
}
|
|
51712
51716
|
function getObjectTypeInstantiation(type, mapper, aliasSymbol, aliasTypeArguments) {
|
|
51713
51717
|
var declaration = type.objectFlags & 4 ? type.node :
|
|
51714
|
-
type.objectFlags &
|
|
51718
|
+
type.objectFlags & 16777216 ? type.node :
|
|
51715
51719
|
type.symbol.declarations[0];
|
|
51716
51720
|
var links = getNodeLinks(declaration);
|
|
51717
51721
|
var target = type.objectFlags & 4 ? links.resolvedType :
|
|
@@ -51724,8 +51728,8 @@ var ts;
|
|
|
51724
51728
|
outerTypeParameters = ts.addRange(outerTypeParameters, templateTagParameters);
|
|
51725
51729
|
}
|
|
51726
51730
|
typeParameters = outerTypeParameters || ts.emptyArray;
|
|
51727
|
-
var allDeclarations_1 = type.objectFlags & (4 |
|
|
51728
|
-
typeParameters = (target.objectFlags & (4 |
|
|
51731
|
+
var allDeclarations_1 = type.objectFlags & (4 | 16777216) ? [declaration] : type.symbol.declarations;
|
|
51732
|
+
typeParameters = (target.objectFlags & (4 | 16777216) || target.symbol.flags & 8192 || target.symbol.flags & 2048) && !target.aliasTypeArguments ?
|
|
51729
51733
|
ts.filter(typeParameters, function (tp) { return ts.some(allDeclarations_1, function (d) { return isTypeParameterPossiblyReferenced(tp, d); }); }) :
|
|
51730
51734
|
typeParameters;
|
|
51731
51735
|
links.outerTypeParameters = typeParameters;
|
|
@@ -51757,13 +51761,12 @@ var ts;
|
|
|
51757
51761
|
node.parent.kind === 199 && node.parent.typeArguments && node === node.parent.qualifier);
|
|
51758
51762
|
}
|
|
51759
51763
|
function isTypeParameterPossiblyReferenced(tp, node) {
|
|
51760
|
-
if (tp.symbol && tp.symbol.declarations) {
|
|
51761
|
-
var
|
|
51762
|
-
|
|
51763
|
-
if (!
|
|
51764
|
+
if (tp.symbol && tp.symbol.declarations && tp.symbol.declarations.length === 1) {
|
|
51765
|
+
var container = tp.symbol.declarations[0].parent;
|
|
51766
|
+
for (var n = node; n !== container; n = n.parent) {
|
|
51767
|
+
if (!n || n.kind === 234 || n.kind === 188 && ts.forEachChild(n.extendsType, containsReference)) {
|
|
51764
51768
|
return true;
|
|
51765
51769
|
}
|
|
51766
|
-
n_1 = n_1.parent;
|
|
51767
51770
|
}
|
|
51768
51771
|
return containsReference(node);
|
|
51769
51772
|
}
|
|
@@ -51875,7 +51878,7 @@ var ts;
|
|
|
51875
51878
|
mapper = combineTypeMappers(makeUnaryTypeMapper(origTypeParameter, freshTypeParameter), mapper);
|
|
51876
51879
|
freshTypeParameter.mapper = mapper;
|
|
51877
51880
|
}
|
|
51878
|
-
if (type.objectFlags &
|
|
51881
|
+
if (type.objectFlags & 16777216) {
|
|
51879
51882
|
result.node = type.node;
|
|
51880
51883
|
}
|
|
51881
51884
|
result.target = type;
|
|
@@ -52810,7 +52813,7 @@ var ts;
|
|
|
52810
52813
|
}
|
|
52811
52814
|
if (source.flags & 524288 && target.flags & 524288) {
|
|
52812
52815
|
var related = relation.get(getRelationKey(source, target, 0, relation, false));
|
|
52813
|
-
if (related !== undefined
|
|
52816
|
+
if (related !== undefined) {
|
|
52814
52817
|
return !!(related & 1);
|
|
52815
52818
|
}
|
|
52816
52819
|
}
|
|
@@ -53157,7 +53160,7 @@ var ts;
|
|
|
53157
53160
|
isSimpleTypeRelatedTo(source, target, relation, reportErrors ? reportError : undefined))
|
|
53158
53161
|
return -1;
|
|
53159
53162
|
if (source.flags & 469499904 || target.flags & 469499904) {
|
|
53160
|
-
var isPerformingExcessPropertyChecks = !(intersectionState & 2) && (isObjectLiteralType(source) && ts.getObjectFlags(source) &
|
|
53163
|
+
var isPerformingExcessPropertyChecks = !(intersectionState & 2) && (isObjectLiteralType(source) && ts.getObjectFlags(source) & 16384);
|
|
53161
53164
|
if (isPerformingExcessPropertyChecks) {
|
|
53162
53165
|
if (hasExcessProperties(source, target, reportErrors)) {
|
|
53163
53166
|
if (reportErrors) {
|
|
@@ -53194,7 +53197,7 @@ var ts;
|
|
|
53194
53197
|
unionOrIntersectionRelatedTo(source, target, reportErrors, intersectionState) :
|
|
53195
53198
|
recursiveTypeRelatedTo(source, target, reportErrors, intersectionState, recursionFlags);
|
|
53196
53199
|
if (result_7 && !inPropertyCheck && (target.flags & 2097152 && (isPerformingExcessPropertyChecks || isPerformingCommonPropertyChecks) ||
|
|
53197
|
-
isNonGenericObjectType(target) && !isArrayType(target) && !isTupleType(target) && source.flags & 2097152 && getApparentType(source).flags & 3670016 && !ts.some(source.types, function (t) { return !!(ts.getObjectFlags(t) &
|
|
53200
|
+
isNonGenericObjectType(target) && !isArrayType(target) && !isTupleType(target) && source.flags & 2097152 && getApparentType(source).flags & 3670016 && !ts.some(source.types, function (t) { return !!(ts.getObjectFlags(t) & 524288); }))) {
|
|
53198
53201
|
inPropertyCheck = true;
|
|
53199
53202
|
result_7 &= recursiveTypeRelatedTo(source, target, reportErrors, 4, recursionFlags);
|
|
53200
53203
|
inPropertyCheck = false;
|
|
@@ -53255,7 +53258,7 @@ var ts;
|
|
|
53255
53258
|
if ((source.flags & 3145728) && (target.flags & 3145728)) {
|
|
53256
53259
|
var sourceUnionOrIntersection = source;
|
|
53257
53260
|
var targetUnionOrIntersection = target;
|
|
53258
|
-
if (sourceUnionOrIntersection.objectFlags & targetUnionOrIntersection.objectFlags &
|
|
53261
|
+
if (sourceUnionOrIntersection.objectFlags & targetUnionOrIntersection.objectFlags & 65536) {
|
|
53259
53262
|
return;
|
|
53260
53263
|
}
|
|
53261
53264
|
var sourceSize = sourceUnionOrIntersection.types.length;
|
|
@@ -53284,7 +53287,7 @@ var ts;
|
|
|
53284
53287
|
}
|
|
53285
53288
|
function hasExcessProperties(source, target, reportErrors) {
|
|
53286
53289
|
var _a;
|
|
53287
|
-
if (!isExcessPropertyCheckTarget(target) || !noImplicitAny && ts.getObjectFlags(target) &
|
|
53290
|
+
if (!isExcessPropertyCheckTarget(target) || !noImplicitAny && ts.getObjectFlags(target) & 8192) {
|
|
53288
53291
|
return false;
|
|
53289
53292
|
}
|
|
53290
53293
|
var isComparingJsxAttributes = !!(ts.getObjectFlags(source) & 2048);
|
|
@@ -53700,17 +53703,17 @@ var ts;
|
|
|
53700
53703
|
return 0;
|
|
53701
53704
|
}
|
|
53702
53705
|
}
|
|
53703
|
-
if (sourceFlags & (524288 | 16777216) && source.aliasSymbol &&
|
|
53706
|
+
if (sourceFlags & (524288 | 16777216) && source.aliasSymbol &&
|
|
53707
|
+
source.aliasTypeArguments && source.aliasSymbol === target.aliasSymbol &&
|
|
53708
|
+
!(source.aliasTypeArgumentsContainsMarker || target.aliasTypeArgumentsContainsMarker)) {
|
|
53704
53709
|
var variances = getAliasVariances(source.aliasSymbol);
|
|
53705
|
-
if (variances
|
|
53706
|
-
var varianceResult = relateVariances(source.aliasTypeArguments, target.aliasTypeArguments, variances, intersectionState);
|
|
53707
|
-
if (varianceResult !== undefined) {
|
|
53708
|
-
return varianceResult;
|
|
53709
|
-
}
|
|
53710
|
-
}
|
|
53711
|
-
else if (!someContainsMarkerType(source.aliasTypeArguments) && !someContainsMarkerType(target.aliasTypeArguments)) {
|
|
53710
|
+
if (variances === ts.emptyArray) {
|
|
53712
53711
|
return 1;
|
|
53713
53712
|
}
|
|
53713
|
+
var varianceResult = relateVariances(source.aliasTypeArguments, target.aliasTypeArguments, variances, intersectionState);
|
|
53714
|
+
if (varianceResult !== undefined) {
|
|
53715
|
+
return varianceResult;
|
|
53716
|
+
}
|
|
53714
53717
|
}
|
|
53715
53718
|
if (isSingleElementGenericTupleType(source) && !source.target.readonly && (result = isRelatedTo(getTypeArguments(source)[0], target, 1)) ||
|
|
53716
53719
|
isSingleElementGenericTupleType(target) && (target.target.readonly || isMutableArrayOrTuple(getBaseConstraintOfType(source) || source)) && (result = isRelatedTo(source, getTypeArguments(target)[0], 2))) {
|
|
@@ -53996,20 +53999,19 @@ var ts;
|
|
|
53996
53999
|
else if (isGenericMappedType(source)) {
|
|
53997
54000
|
return 0;
|
|
53998
54001
|
}
|
|
53999
|
-
if (ts.getObjectFlags(source) & 4 && ts.getObjectFlags(target) & 4 && source.target === target.target &&
|
|
54002
|
+
if (ts.getObjectFlags(source) & 4 && ts.getObjectFlags(target) & 4 && source.target === target.target &&
|
|
54003
|
+
!isTupleType(source) && !(ts.getObjectFlags(source) & 4096 || ts.getObjectFlags(target) & 4096)) {
|
|
54000
54004
|
if (isEmptyArrayLiteralType(source)) {
|
|
54001
54005
|
return -1;
|
|
54002
54006
|
}
|
|
54003
54007
|
var variances = getVariances(source.target);
|
|
54004
|
-
if (variances
|
|
54005
|
-
var varianceResult = relateVariances(getTypeArguments(source), getTypeArguments(target), variances, intersectionState);
|
|
54006
|
-
if (varianceResult !== undefined) {
|
|
54007
|
-
return varianceResult;
|
|
54008
|
-
}
|
|
54009
|
-
}
|
|
54010
|
-
else if (!someContainsMarkerType(getTypeArguments(source)) && !someContainsMarkerType(getTypeArguments(target))) {
|
|
54008
|
+
if (variances === ts.emptyArray) {
|
|
54011
54009
|
return 1;
|
|
54012
54010
|
}
|
|
54011
|
+
var varianceResult = relateVariances(getTypeArguments(source), getTypeArguments(target), variances, intersectionState);
|
|
54012
|
+
if (varianceResult !== undefined) {
|
|
54013
|
+
return varianceResult;
|
|
54014
|
+
}
|
|
54013
54015
|
}
|
|
54014
54016
|
else if (isReadonlyArrayType(target) ? isArrayType(source) || isTupleType(source) : isArrayType(target) && isTupleType(source) && !source.target.readonly) {
|
|
54015
54017
|
if (relation !== identityRelation) {
|
|
@@ -54019,7 +54021,7 @@ var ts;
|
|
|
54019
54021
|
return 0;
|
|
54020
54022
|
}
|
|
54021
54023
|
}
|
|
54022
|
-
else if ((relation === subtypeRelation || relation === strictSubtypeRelation) && isEmptyObjectType(target) && ts.getObjectFlags(target) &
|
|
54024
|
+
else if ((relation === subtypeRelation || relation === strictSubtypeRelation) && isEmptyObjectType(target) && ts.getObjectFlags(target) & 16384 && !isEmptyObjectType(source)) {
|
|
54023
54025
|
return 0;
|
|
54024
54026
|
}
|
|
54025
54027
|
if (sourceFlags & (524288 | 2097152) && targetFlags & 524288) {
|
|
@@ -54791,31 +54793,37 @@ var ts;
|
|
|
54791
54793
|
}
|
|
54792
54794
|
return false;
|
|
54793
54795
|
}
|
|
54794
|
-
function
|
|
54795
|
-
|
|
54796
|
-
|
|
54797
|
-
|
|
54796
|
+
function getMarkerTypeReference(type, source, target) {
|
|
54797
|
+
var result = createTypeReference(type, ts.map(type.typeParameters, function (t) { return t === source ? target : t; }));
|
|
54798
|
+
result.objectFlags |= 4096;
|
|
54799
|
+
return result;
|
|
54798
54800
|
}
|
|
54799
54801
|
function getAliasVariances(symbol) {
|
|
54800
|
-
|
|
54802
|
+
var links = getSymbolLinks(symbol);
|
|
54803
|
+
return getVariancesWorker(links.typeParameters, links, function (_links, param, marker) {
|
|
54804
|
+
var type = getTypeAliasInstantiation(symbol, instantiateTypes(links.typeParameters, makeUnaryTypeMapper(param, marker)));
|
|
54805
|
+
type.aliasTypeArgumentsContainsMarker = true;
|
|
54806
|
+
return type;
|
|
54807
|
+
});
|
|
54801
54808
|
}
|
|
54802
|
-
function getVariancesWorker(
|
|
54809
|
+
function getVariancesWorker(typeParameters, cache, createMarkerType) {
|
|
54810
|
+
var _a, _b, _c;
|
|
54803
54811
|
if (typeParameters === void 0) { typeParameters = ts.emptyArray; }
|
|
54804
|
-
var
|
|
54805
|
-
if (!
|
|
54806
|
-
ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push("checkTypes", "getVariancesWorker", { arity: typeParameters.length, id:
|
|
54807
|
-
|
|
54808
|
-
|
|
54812
|
+
var variances = cache.variances;
|
|
54813
|
+
if (!variances) {
|
|
54814
|
+
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
|
+
cache.variances = ts.emptyArray;
|
|
54816
|
+
variances = [];
|
|
54809
54817
|
var _loop_21 = function (tp) {
|
|
54810
54818
|
var unmeasurable = false;
|
|
54811
54819
|
var unreliable = false;
|
|
54812
54820
|
var oldHandler = outofbandVarianceMarkerHandler;
|
|
54813
54821
|
outofbandVarianceMarkerHandler = function (onlyUnreliable) { return onlyUnreliable ? unreliable = true : unmeasurable = true; };
|
|
54814
|
-
var typeWithSuper = createMarkerType(
|
|
54815
|
-
var typeWithSub = createMarkerType(
|
|
54822
|
+
var typeWithSuper = createMarkerType(cache, tp, markerSuperType);
|
|
54823
|
+
var typeWithSub = createMarkerType(cache, tp, markerSubType);
|
|
54816
54824
|
var variance = (isTypeAssignableTo(typeWithSub, typeWithSuper) ? 1 : 0) |
|
|
54817
54825
|
(isTypeAssignableTo(typeWithSuper, typeWithSub) ? 2 : 0);
|
|
54818
|
-
if (variance === 3 && isTypeAssignableTo(createMarkerType(
|
|
54826
|
+
if (variance === 3 && isTypeAssignableTo(createMarkerType(cache, tp, markerOtherType), typeWithSuper)) {
|
|
54819
54827
|
variance = 4;
|
|
54820
54828
|
}
|
|
54821
54829
|
outofbandVarianceMarkerHandler = oldHandler;
|
|
@@ -54833,52 +54841,16 @@ var ts;
|
|
|
54833
54841
|
var tp = typeParameters_1[_i];
|
|
54834
54842
|
_loop_21(tp);
|
|
54835
54843
|
}
|
|
54836
|
-
|
|
54844
|
+
cache.variances = variances;
|
|
54837
54845
|
ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();
|
|
54838
54846
|
}
|
|
54839
|
-
return
|
|
54840
|
-
}
|
|
54841
|
-
function createMarkerType(symbol, source, target) {
|
|
54842
|
-
var mapper = makeUnaryTypeMapper(source, target);
|
|
54843
|
-
if (symbol.flags & 524288) {
|
|
54844
|
-
return getTypeAliasInstantiation(symbol, instantiateTypes(getSymbolLinks(symbol).typeParameters, mapper));
|
|
54845
|
-
}
|
|
54846
|
-
var type = getDeclaredTypeOfSymbol(symbol);
|
|
54847
|
-
return createTypeReference(type, instantiateTypes(type.typeParameters, mapper));
|
|
54848
|
-
}
|
|
54849
|
-
function someContainsMarkerType(types, maxDepth) {
|
|
54850
|
-
if (maxDepth === void 0) { maxDepth = 4; }
|
|
54851
|
-
return ts.some(types, function (t) { return containsMarkerType(t, maxDepth); });
|
|
54852
|
-
}
|
|
54853
|
-
function containsMarkerType(type, maxDepth) {
|
|
54854
|
-
return maxDepth > 0 && (type.flags & 262144 ? type === markerSubType || type === markerSubType || type === markerOtherType :
|
|
54855
|
-
type.aliasSymbol ? someContainsMarkerType(type.aliasTypeArguments, maxDepth) :
|
|
54856
|
-
type.flags & 524288 ? objectTypeContainsMarkerType(type, maxDepth) :
|
|
54857
|
-
type.flags & (3145728 | 134217728) && !(type.flags & 1024) ? someContainsMarkerType(type.types, maxDepth) :
|
|
54858
|
-
type.flags & (4194304 | 268435456) ? containsMarkerType(type.type, maxDepth) :
|
|
54859
|
-
false);
|
|
54847
|
+
return variances;
|
|
54860
54848
|
}
|
|
54861
|
-
function
|
|
54862
|
-
|
|
54863
|
-
|
|
54864
|
-
return someContainsMarkerType(getTypeArguments(type), maxDepth - (type.node ? 1 : 0));
|
|
54865
|
-
}
|
|
54866
|
-
if (objectFlags & 16 && type.symbol && type.symbol.flags & 2048) {
|
|
54867
|
-
var resolved = resolveStructuredTypeMembers(type);
|
|
54868
|
-
return ts.some(resolved.properties, function (prop) { return containsMarkerType(getTypeOfSymbol(prop), maxDepth - 1); }) ||
|
|
54869
|
-
ts.some(resolved.callSignatures, function (sig) { return signatureContainsMarkerType(sig, maxDepth); }) ||
|
|
54870
|
-
ts.some(resolved.constructSignatures, function (sig) { return signatureContainsMarkerType(sig, maxDepth); }) ||
|
|
54871
|
-
ts.some(resolved.indexInfos, function (info) { return containsMarkerType(info.type, maxDepth - 1); });
|
|
54872
|
-
}
|
|
54873
|
-
if (objectFlags & 32) {
|
|
54874
|
-
return containsMarkerType(getConstraintTypeFromMappedType(type), maxDepth - 1) ||
|
|
54875
|
-
containsMarkerType(getTemplateTypeFromMappedType(type), maxDepth - 1);
|
|
54849
|
+
function getVariances(type) {
|
|
54850
|
+
if (type === globalArrayType || type === globalReadonlyArrayType || type.objectFlags & 8) {
|
|
54851
|
+
return arrayVariances;
|
|
54876
54852
|
}
|
|
54877
|
-
return
|
|
54878
|
-
}
|
|
54879
|
-
function signatureContainsMarkerType(sig, maxDepth) {
|
|
54880
|
-
return ts.some(sig.parameters, function (param) { return containsMarkerType(getTypeOfSymbol(param), maxDepth - 1); }) ||
|
|
54881
|
-
containsMarkerType(getReturnTypeOfSignature(sig), maxDepth - 1);
|
|
54853
|
+
return getVariancesWorker(type.typeParameters, type, getMarkerTypeReference);
|
|
54882
54854
|
}
|
|
54883
54855
|
function hasCovariantVoidArgument(typeArguments, variances) {
|
|
54884
54856
|
for (var i = 0; i < variances.length; i++) {
|
|
@@ -55181,10 +55153,10 @@ var ts;
|
|
|
55181
55153
|
if (!(ts.getObjectFlags(type) & 4) || !(ts.getObjectFlags(type.target) & 3)) {
|
|
55182
55154
|
return undefined;
|
|
55183
55155
|
}
|
|
55184
|
-
if (ts.getObjectFlags(type) &
|
|
55185
|
-
return ts.getObjectFlags(type) &
|
|
55156
|
+
if (ts.getObjectFlags(type) & 67108864) {
|
|
55157
|
+
return ts.getObjectFlags(type) & 134217728 ? type.cachedEquivalentBaseType : undefined;
|
|
55186
55158
|
}
|
|
55187
|
-
type.objectFlags |=
|
|
55159
|
+
type.objectFlags |= 67108864;
|
|
55188
55160
|
var target = type.target;
|
|
55189
55161
|
if (ts.getObjectFlags(target) & 1) {
|
|
55190
55162
|
var baseTypeNode = getBaseTypeNodeOfClass(target);
|
|
@@ -55203,7 +55175,7 @@ var ts;
|
|
|
55203
55175
|
if (ts.length(getTypeArguments(type)) > ts.length(target.typeParameters)) {
|
|
55204
55176
|
instantiatedBase = getTypeWithThisArgument(instantiatedBase, ts.last(getTypeArguments(type)));
|
|
55205
55177
|
}
|
|
55206
|
-
type.objectFlags |=
|
|
55178
|
+
type.objectFlags |= 134217728;
|
|
55207
55179
|
return type.cachedEquivalentBaseType = instantiatedBase;
|
|
55208
55180
|
}
|
|
55209
55181
|
function isEmptyLiteralType(type) {
|
|
@@ -55453,7 +55425,7 @@ var ts;
|
|
|
55453
55425
|
return members;
|
|
55454
55426
|
}
|
|
55455
55427
|
function getRegularTypeOfObjectLiteral(type) {
|
|
55456
|
-
if (!(isObjectLiteralType(type) && ts.getObjectFlags(type) &
|
|
55428
|
+
if (!(isObjectLiteralType(type) && ts.getObjectFlags(type) & 16384)) {
|
|
55457
55429
|
return type;
|
|
55458
55430
|
}
|
|
55459
55431
|
var regularType = type.regularType;
|
|
@@ -55464,7 +55436,7 @@ var ts;
|
|
|
55464
55436
|
var members = transformTypeOfMembers(type, getRegularTypeOfObjectLiteral);
|
|
55465
55437
|
var regularNew = createAnonymousType(resolved.symbol, members, resolved.callSignatures, resolved.constructSignatures, resolved.indexInfos);
|
|
55466
55438
|
regularNew.flags = resolved.flags;
|
|
55467
|
-
regularNew.objectFlags |= resolved.objectFlags & ~
|
|
55439
|
+
regularNew.objectFlags |= resolved.objectFlags & ~16384;
|
|
55468
55440
|
type.regularType = regularNew;
|
|
55469
55441
|
return regularNew;
|
|
55470
55442
|
}
|
|
@@ -55494,7 +55466,7 @@ var ts;
|
|
|
55494
55466
|
var names = new ts.Map();
|
|
55495
55467
|
for (var _i = 0, _a = getSiblingsOfContext(context); _i < _a.length; _i++) {
|
|
55496
55468
|
var t = _a[_i];
|
|
55497
|
-
if (isObjectLiteralType(t) && !(ts.getObjectFlags(t) &
|
|
55469
|
+
if (isObjectLiteralType(t) && !(ts.getObjectFlags(t) & 4194304)) {
|
|
55498
55470
|
for (var _b = 0, _c = getPropertiesOfType(t); _b < _c.length; _b++) {
|
|
55499
55471
|
var prop = _c[_b];
|
|
55500
55472
|
names.set(prop.escapedName, prop);
|
|
@@ -55539,14 +55511,14 @@ var ts;
|
|
|
55539
55511
|
}
|
|
55540
55512
|
}
|
|
55541
55513
|
var result = createAnonymousType(type.symbol, members, ts.emptyArray, ts.emptyArray, ts.sameMap(getIndexInfosOfType(type), function (info) { return createIndexInfo(info.keyType, getWidenedType(info.type), info.isReadonly); }));
|
|
55542
|
-
result.objectFlags |= (ts.getObjectFlags(type) & (
|
|
55514
|
+
result.objectFlags |= (ts.getObjectFlags(type) & (8192 | 524288));
|
|
55543
55515
|
return result;
|
|
55544
55516
|
}
|
|
55545
55517
|
function getWidenedType(type) {
|
|
55546
55518
|
return getWidenedTypeWithContext(type, undefined);
|
|
55547
55519
|
}
|
|
55548
55520
|
function getWidenedTypeWithContext(type, context) {
|
|
55549
|
-
if (ts.getObjectFlags(type) &
|
|
55521
|
+
if (ts.getObjectFlags(type) & 393216) {
|
|
55550
55522
|
if (context === undefined && type.widened) {
|
|
55551
55523
|
return type.widened;
|
|
55552
55524
|
}
|
|
@@ -55577,7 +55549,7 @@ var ts;
|
|
|
55577
55549
|
}
|
|
55578
55550
|
function reportWideningErrorsInType(type) {
|
|
55579
55551
|
var errorReported = false;
|
|
55580
|
-
if (ts.getObjectFlags(type) &
|
|
55552
|
+
if (ts.getObjectFlags(type) & 131072) {
|
|
55581
55553
|
if (type.flags & 1048576) {
|
|
55582
55554
|
if (ts.some(type.types, isEmptyObjectType)) {
|
|
55583
55555
|
errorReported = true;
|
|
@@ -55603,7 +55575,7 @@ var ts;
|
|
|
55603
55575
|
for (var _d = 0, _e = getPropertiesOfObjectType(type); _d < _e.length; _d++) {
|
|
55604
55576
|
var p = _e[_d];
|
|
55605
55577
|
var t = getTypeOfSymbol(p);
|
|
55606
|
-
if (ts.getObjectFlags(t) &
|
|
55578
|
+
if (ts.getObjectFlags(t) & 131072) {
|
|
55607
55579
|
if (!reportWideningErrorsInType(t)) {
|
|
55608
55580
|
error(p.valueDeclaration, ts.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p), typeToString(getWidenedType(t)));
|
|
55609
55581
|
}
|
|
@@ -55682,7 +55654,7 @@ var ts;
|
|
|
55682
55654
|
errorOrSuggestion(noImplicitAny, declaration, diagnostic, ts.declarationNameToString(ts.getNameOfDeclaration(declaration)), typeAsString);
|
|
55683
55655
|
}
|
|
55684
55656
|
function reportErrorsFromWidening(declaration, type, wideningKind) {
|
|
55685
|
-
if (produceDiagnostics && noImplicitAny && ts.getObjectFlags(type) &
|
|
55657
|
+
if (produceDiagnostics && noImplicitAny && ts.getObjectFlags(type) & 131072 && (!wideningKind || !getContextualSignatureForFunctionLikeDeclaration(declaration))) {
|
|
55686
55658
|
if (!reportWideningErrorsInType(type)) {
|
|
55687
55659
|
reportImplicitAny(declaration, type, wideningKind);
|
|
55688
55660
|
}
|
|
@@ -55794,16 +55766,16 @@ var ts;
|
|
|
55794
55766
|
}
|
|
55795
55767
|
function couldContainTypeVariables(type) {
|
|
55796
55768
|
var objectFlags = ts.getObjectFlags(type);
|
|
55797
|
-
if (objectFlags &
|
|
55798
|
-
return !!(objectFlags &
|
|
55769
|
+
if (objectFlags & 1048576) {
|
|
55770
|
+
return !!(objectFlags & 2097152);
|
|
55799
55771
|
}
|
|
55800
55772
|
var result = !!(type.flags & 465829888 ||
|
|
55801
55773
|
type.flags & 524288 && !isNonGenericTopLevelType(type) && (objectFlags & 4 && (type.node || ts.forEach(getTypeArguments(type), couldContainTypeVariables)) ||
|
|
55802
55774
|
objectFlags & 16 && type.symbol && type.symbol.flags & (16 | 8192 | 32 | 2048 | 4096) && type.symbol.declarations ||
|
|
55803
|
-
objectFlags & (32 | 1024 |
|
|
55775
|
+
objectFlags & (32 | 1024 | 8388608 | 16777216)) ||
|
|
55804
55776
|
type.flags & 3145728 && !(type.flags & 1024) && !isNonGenericTopLevelType(type) && ts.some(type.types, couldContainTypeVariables));
|
|
55805
55777
|
if (type.flags & 3899393) {
|
|
55806
|
-
type.objectFlags |=
|
|
55778
|
+
type.objectFlags |= 1048576 | (result ? 2097152 : 0);
|
|
55807
55779
|
}
|
|
55808
55780
|
return result;
|
|
55809
55781
|
}
|
|
@@ -55852,7 +55824,7 @@ var ts;
|
|
|
55852
55824
|
return type;
|
|
55853
55825
|
}
|
|
55854
55826
|
function isPartiallyInferableType(type) {
|
|
55855
|
-
return !(ts.getObjectFlags(type) &
|
|
55827
|
+
return !(ts.getObjectFlags(type) & 524288) ||
|
|
55856
55828
|
isObjectLiteralType(type) && ts.some(getPropertiesOfType(type), function (prop) { return isPartiallyInferableType(getTypeOfSymbol(prop)); }) ||
|
|
55857
55829
|
isTupleType(type) && ts.some(getTypeArguments(type), isPartiallyInferableType);
|
|
55858
55830
|
}
|
|
@@ -56127,7 +56099,7 @@ var ts;
|
|
|
56127
56099
|
}
|
|
56128
56100
|
var inference = getInferenceInfoForType(target);
|
|
56129
56101
|
if (inference) {
|
|
56130
|
-
if (ts.getObjectFlags(source) &
|
|
56102
|
+
if (ts.getObjectFlags(source) & 524288) {
|
|
56131
56103
|
return;
|
|
56132
56104
|
}
|
|
56133
56105
|
if (!inference.isFixed) {
|
|
@@ -56408,7 +56380,7 @@ var ts;
|
|
|
56408
56380
|
if (inference && !inference.isFixed && !isFromInferenceBlockedSource(source)) {
|
|
56409
56381
|
var inferredType = inferTypeForHomomorphicMappedType(source, target, constraintType);
|
|
56410
56382
|
if (inferredType) {
|
|
56411
|
-
inferWithPriority(inferredType, inference.typeParameter, ts.getObjectFlags(source) &
|
|
56383
|
+
inferWithPriority(inferredType, inference.typeParameter, ts.getObjectFlags(source) & 524288 ?
|
|
56412
56384
|
16 :
|
|
56413
56385
|
8);
|
|
56414
56386
|
}
|
|
@@ -56548,7 +56520,7 @@ var ts;
|
|
|
56548
56520
|
var sourceLen = sourceSignatures.length;
|
|
56549
56521
|
var targetLen = targetSignatures.length;
|
|
56550
56522
|
var len = sourceLen < targetLen ? sourceLen : targetLen;
|
|
56551
|
-
var skipParameters = !!(ts.getObjectFlags(source) &
|
|
56523
|
+
var skipParameters = !!(ts.getObjectFlags(source) & 524288);
|
|
56552
56524
|
for (var i = 0; i < len; i++) {
|
|
56553
56525
|
inferFromSignature(getBaseSignature(sourceSignatures[sourceLen - len + i]), getErasedSignature(targetSignatures[targetLen - len + i]), skipParameters);
|
|
56554
56526
|
}
|
|
@@ -56613,7 +56585,7 @@ var ts;
|
|
|
56613
56585
|
return !!(ts.getObjectFlags(type) & 128);
|
|
56614
56586
|
}
|
|
56615
56587
|
function isObjectOrArrayLiteralType(type) {
|
|
56616
|
-
return !!(ts.getObjectFlags(type) & (128 |
|
|
56588
|
+
return !!(ts.getObjectFlags(type) & (128 | 32768));
|
|
56617
56589
|
}
|
|
56618
56590
|
function unionObjectAndArrayLiteralCandidates(candidates) {
|
|
56619
56591
|
if (candidates.length > 1) {
|
|
@@ -56952,7 +56924,7 @@ var ts;
|
|
|
56952
56924
|
}
|
|
56953
56925
|
function getKeyPropertyName(unionType) {
|
|
56954
56926
|
var types = unionType.types;
|
|
56955
|
-
if (types.length < 10 || ts.getObjectFlags(unionType) &
|
|
56927
|
+
if (types.length < 10 || ts.getObjectFlags(unionType) & 65536 ||
|
|
56956
56928
|
ts.countWhere(types, function (t) { return !!(t.flags & (524288 | 58982400)); }) < 10) {
|
|
56957
56929
|
return undefined;
|
|
56958
56930
|
}
|
|
@@ -60295,7 +60267,7 @@ var ts;
|
|
|
60295
60267
|
var literalType = type.literalType;
|
|
60296
60268
|
if (!literalType) {
|
|
60297
60269
|
literalType = type.literalType = cloneTypeReference(type);
|
|
60298
|
-
literalType.objectFlags |=
|
|
60270
|
+
literalType.objectFlags |= 32768 | 262144;
|
|
60299
60271
|
}
|
|
60300
60272
|
return literalType;
|
|
60301
60273
|
}
|
|
@@ -60424,7 +60396,7 @@ var ts;
|
|
|
60424
60396
|
checkTypeAssignableTo(type, getTypeFromTypeNode(enumTag.typeExpression), memberDecl);
|
|
60425
60397
|
}
|
|
60426
60398
|
}
|
|
60427
|
-
objectFlags |= ts.getObjectFlags(type) &
|
|
60399
|
+
objectFlags |= ts.getObjectFlags(type) & 917504;
|
|
60428
60400
|
var nameType = computedNameType && isTypeUsableAsPropertyName(computedNameType) ? computedNameType : undefined;
|
|
60429
60401
|
var prop = nameType ?
|
|
60430
60402
|
createSymbol(4 | member.flags, getPropertyNameFromType(nameType), checkFlags | 4096) :
|
|
@@ -60548,9 +60520,9 @@ var ts;
|
|
|
60548
60520
|
if (hasComputedSymbolProperty)
|
|
60549
60521
|
indexInfos.push(getObjectLiteralIndexInfo(node, offset, propertiesArray, esSymbolType));
|
|
60550
60522
|
var result = createAnonymousType(node.symbol, propertiesTable, ts.emptyArray, ts.emptyArray, indexInfos);
|
|
60551
|
-
result.objectFlags |= objectFlags | 128 |
|
|
60523
|
+
result.objectFlags |= objectFlags | 128 | 262144;
|
|
60552
60524
|
if (isJSObjectLiteral) {
|
|
60553
|
-
result.objectFlags |=
|
|
60525
|
+
result.objectFlags |= 8192;
|
|
60554
60526
|
}
|
|
60555
60527
|
if (patternWithComputedProperties) {
|
|
60556
60528
|
result.objectFlags |= 512;
|
|
@@ -60625,7 +60597,7 @@ var ts;
|
|
|
60625
60597
|
var member = attributeDecl.symbol;
|
|
60626
60598
|
if (ts.isJsxAttribute(attributeDecl)) {
|
|
60627
60599
|
var exprType = checkJsxAttribute(attributeDecl, checkMode);
|
|
60628
|
-
objectFlags |= ts.getObjectFlags(exprType) &
|
|
60600
|
+
objectFlags |= ts.getObjectFlags(exprType) & 917504;
|
|
60629
60601
|
var attributeSymbol = createSymbol(4 | member.flags, member.escapedName);
|
|
60630
60602
|
attributeSymbol.declarations = member.declarations;
|
|
60631
60603
|
attributeSymbol.parent = member.parent;
|
|
@@ -60697,7 +60669,7 @@ var ts;
|
|
|
60697
60669
|
function createJsxAttributesType() {
|
|
60698
60670
|
objectFlags |= freshObjectLiteralFlag;
|
|
60699
60671
|
var result = createAnonymousType(attributes.symbol, attributesTable, ts.emptyArray, ts.emptyArray, ts.emptyArray);
|
|
60700
|
-
result.objectFlags |= objectFlags | 128 |
|
|
60672
|
+
result.objectFlags |= objectFlags | 128 | 262144;
|
|
60701
60673
|
return result;
|
|
60702
60674
|
}
|
|
60703
60675
|
}
|
|
@@ -63393,7 +63365,7 @@ var ts;
|
|
|
63393
63365
|
var jsSymbol = getSymbolOfExpando(node, false);
|
|
63394
63366
|
if ((_a = jsSymbol === null || jsSymbol === void 0 ? void 0 : jsSymbol.exports) === null || _a === void 0 ? void 0 : _a.size) {
|
|
63395
63367
|
var jsAssignmentType = createAnonymousType(jsSymbol, jsSymbol.exports, ts.emptyArray, ts.emptyArray, ts.emptyArray);
|
|
63396
|
-
jsAssignmentType.objectFlags |=
|
|
63368
|
+
jsAssignmentType.objectFlags |= 8192;
|
|
63397
63369
|
return getIntersectionType([returnType, jsAssignmentType]);
|
|
63398
63370
|
}
|
|
63399
63371
|
}
|
|
@@ -63653,7 +63625,7 @@ var ts;
|
|
|
63653
63625
|
hasApplicableSignature || (hasApplicableSignature = callSignatures.length !== 0 || constructSignatures.length !== 0);
|
|
63654
63626
|
if (callSignatures !== resolved.callSignatures || constructSignatures !== resolved.constructSignatures) {
|
|
63655
63627
|
var result_11 = createAnonymousType(undefined, resolved.members, callSignatures, constructSignatures, resolved.indexInfos);
|
|
63656
|
-
result_11.objectFlags |=
|
|
63628
|
+
result_11.objectFlags |= 16777216;
|
|
63657
63629
|
result_11.node = node;
|
|
63658
63630
|
return result_11;
|
|
63659
63631
|
}
|
|
@@ -64336,7 +64308,7 @@ var ts;
|
|
|
64336
64308
|
var returnType = getReturnTypeFromBody(node, checkMode);
|
|
64337
64309
|
var returnOnlySignature = createSignature(undefined, undefined, undefined, ts.emptyArray, returnType, undefined, 0, 0);
|
|
64338
64310
|
var returnOnlyType = createAnonymousType(node.symbol, emptySymbols, [returnOnlySignature], ts.emptyArray, ts.emptyArray);
|
|
64339
|
-
returnOnlyType.objectFlags |=
|
|
64311
|
+
returnOnlyType.objectFlags |= 524288;
|
|
64340
64312
|
return links.contextFreeType = returnOnlyType;
|
|
64341
64313
|
}
|
|
64342
64314
|
}
|