typescript 4.6.0-dev.20220128 → 4.6.0-dev.20220129

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.
@@ -89,7 +89,8 @@
89
89
  "A_set_accessor_must_have_exactly_one_parameter_1049": "Una funzione di accesso 'set' deve contenere un solo parametro.",
90
90
  "A_set_accessor_parameter_cannot_have_an_initializer_1052": "Un parametro della funzione di accesso 'set' non può contenere un inizializzatore.",
91
91
  "A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556": "Un argomento spread deve avere un tipo di tupla o essere passato a un parametro rest.",
92
- "A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376": "Una chiamata 'super' deve essere la prima istruzione del costruttore quando una classe contiene proprietà inizializzate, proprietà di parametri o identificatori privati.",
92
+ "A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401": "Una chiamata 'super' deve essere un'istruzione a livello radice all'interno di un costruttore di una classe derivata che contiene proprietà inizializzate, proprietà dei parametri o identificatori privati.",
93
+ "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "Una chiamata 'super' deve essere la prima istruzione del costruttore a fare riferimento a 'super' o 'this' quando una classe derivata contiene proprietà inizializzate, proprietà di parametri o identificatori privati.",
93
94
  "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "Un guard di tipo basato su 'this' non è compatibile con uno basato su parametri.",
94
95
  "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "Un tipo 'this' è disponibile solo in un membro non statico di una classe o di interfaccia.",
95
96
  "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Un file 'tsconfig.json' è già definito in: '{0}'.",
@@ -227,7 +228,7 @@
227
228
  "An_iterator_must_have_a_next_method_2489": "Un iteratore deve contenere un metodo 'next()'.",
228
229
  "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "Quando si usa un'istruzione @jsx con frammenti JSX, è necessaria un'istruzione pragma @jsxFrag.",
229
230
  "An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118": "Un valore letterale di oggetto non può contenere più funzioni di accesso get/set con lo stesso nome.",
230
- "An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117": "Un valore letterale di oggetto non può contenere più proprietà con lo stesso nome in modalità strict.",
231
+ "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "Un valore letterale di oggetto non può contenere più proprietà con lo stesso nome.",
231
232
  "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "Un valore letterale di oggetto non può contenere proprietà e funzioni di accesso con lo stesso nome.",
232
233
  "An_object_member_cannot_be_declared_optional_1162": "Un membro di oggetto non può essere dichiarato come facoltativo.",
233
234
  "An_optional_chain_cannot_contain_private_identifiers_18030": "Una catena facoltativa non può contenere identificatori privati.",
@@ -314,6 +315,7 @@
314
315
  "Cannot_find_name_0_Did_you_mean_1_2552": "Il nome '{0}' non è stato trovato. Si intendeva '{1}'?",
315
316
  "Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663": "Il nome '{0}' non è stato trovato. Si intendeva il membro di istanza 'this.{0}'?",
316
317
  "Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662": "Il nome '{0}' non è stato trovato. Si intendeva il membro statico '{1}.{0}'?",
318
+ "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "Impossibile trovare il nome '{0}'. Si intendeva scrivere questo elemento in una funzione asincrona?",
317
319
  "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "Non è possibile trovare il nome '{0}'. È necessario modificare la libreria di destinazione? Provare a impostare l'opzione 'lib' del compilatore su '{1}' o versioni successive.",
318
320
  "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "Non è possibile trovare il nome '{0}'. È necessario modificare la libreria di destinazione? Provare a modificare l'opzione 'lib' del compilatore in modo che includa 'dom'.",
319
321
  "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "Non è possibile trovare il nome '{0}'. È necessario installare le definizioni di tipo per un test runner? Provare con `npm i --save-dev @types/jest` o `npm i --save-dev @types/mocha`.",
@@ -387,6 +389,7 @@
387
389
  "Compiler_option_0_expects_an_argument_6044": "Con l'opzione '{0}' del compilatore è previsto un argomento.",
388
390
  "Compiler_option_0_may_not_be_used_with_build_5094": "L'opzione del compilatore '--{0}' potrebbe non essere usata con '--build'.",
389
391
  "Compiler_option_0_may_only_be_used_with_build_5093": "L'opzione del compilatore '--{0}' potrebbe essere usata solo con '--build'.",
392
+ "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124": "L'opzione del compilatore '{0}' del valore '{1}' è instabile. Usare TypeScript notturno per disattivare l'errore. Provare ad eseguire l'aggiornamento con 'npm install -D typescript@next'.",
390
393
  "Compiler_option_0_requires_a_value_of_type_1_5024": "Con l'opzione '{0}' del compilatore è richiesto un valore di tipo {1}.",
391
394
  "Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027": "Il compilatore riserva il nome '{0}' quando si crea l'identificatore privato per browser meno recenti.",
392
395
  "Compiles_the_TypeScript_project_located_at_the_specified_path_6927": "Compila il progetto TypeScript presente nel percorso specificato.",
@@ -565,7 +568,7 @@
565
568
  "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "L'identificatore dell'importazione dinamica deve essere di tipo 'string', ma il tipo specificato qui è '{0}'.",
566
569
  "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Le importazioni dinamiche sono supportate solo quando il flag '--module' è impostato su 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node12' o 'nodenext'.",
567
570
  "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "Le importazioni dinamiche possono accettare come argomenti solo un identificatore di modulo e un'asserzione facoltativa",
568
- "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_1324": "Le importazioni dinamiche supportano un secondo argomento solo quando l'opzione '--module' è impostata su 'esnext'.",
571
+ "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_or_nodenext_1324": "Le importazioni dinamiche supportano un secondo argomento solo quando l'opzione “--modulo” è impostata su “esnext” o “nodenext”.",
569
572
  "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "Ogni membro del tipo di unione '{0}' contiene firme di costrutto, ma nessuna di tali firme è compatibile con le altre.",
570
573
  "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "Ogni membro del tipo di unione '{0}' contiene firme, ma nessuna di tali firme è compatibile con le altre.",
571
574
  "Editor_Support_6249": "Supporto Editor",
@@ -623,6 +626,7 @@
623
626
  "Enum_member_must_have_initializer_1061": "Il membro di enumerazione deve contenere l'inizializzatore.",
624
627
  "Enum_name_cannot_be_0_2431": "Il nome dell'enumerazione non può essere '{0}'.",
625
628
  "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "Il tipo di enumerazione '{0}' contiene membri i cui inizializzatori non sono valori letterali.",
629
+ "Errors_Files_6041": "File di errori",
626
630
  "Examples_Colon_0_6026": "Esempi: {0}",
627
631
  "Excessive_stack_depth_comparing_types_0_and_1_2321": "La profondità dello stack per il confronto dei tipi '{0}' e '{1}' è eccessiva.",
628
632
  "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "Sono previsti argomento tipo {0}-{1}. Per specificarli, usare un tag '@extends'.",
@@ -708,8 +712,11 @@
708
712
  "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "Non è possibile usare i cicli 'for await' all'interno di un blocco statico di classe.",
709
713
  "Found_0_errors_6217": "Sono stati trovati {0} errori.",
710
714
  "Found_0_errors_Watching_for_file_changes_6194": "Sono stati trovati {0} errori. Verranno individuate le modifiche ai file.",
715
+ "Found_0_errors_in_1_files_6261": "Sono stati trovati {0} errori nei file {1}.",
716
+ "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "Sono stati trovati {0} errori nello stesso file, a partire da: {1}",
711
717
  "Found_1_error_6216": "È stato trovato 1 errore.",
712
718
  "Found_1_error_Watching_for_file_changes_6193": "È stato trovato 1 errore. Verranno individuate le modifiche ai file.",
719
+ "Found_1_error_in_1_6259": "È stato trovato 1 errore in {1}",
713
720
  "Found_package_json_at_0_6099": "Il file 'package.json' è stato trovato in '{0}'.",
714
721
  "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "Le dichiarazioni di funzione non sono consentite all'interno di blocchi in modalità strict quando la destinazione è 'ES3' o 'ES5'.",
715
722
  "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "Le dichiarazioni di funzione non sono consentite all'interno di blocchi in modalità strict quando la destinazione è 'ES3' o 'ES5'. Le definizioni di classe sono impostate automaticamente nella modalità strict.",
@@ -764,7 +771,9 @@
764
771
  "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "La clausola implements della classe esportata '{0}' contiene o usa il nome privato '{1}'.",
765
772
  "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "La conversione implicita di un valore 'symbol' in 'string' non riuscirà in fase di esecuzione. Provare a eseguire il wrapping di questa espressione in 'String(...)'.",
766
773
  "Import_0_from_module_1_90013": "Importare '{0}' dal modulo \"{1}\"",
767
- "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_2821": "Le asserzioni di importazione sono supportate solo quando l'opzione '--module' è impostata su 'esnext'.",
774
+ "Import_assertion_values_must_be_string_literal_expressions_2837": "I valori di asserzione di importazione devono essere espressioni letterali delle stringhe.",
775
+ "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "Le asserzioni di importazione non sono consentite nelle istruzioni che eseguono il transpile nelle chiamate 'require' di commonjs.",
776
+ "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "Le asserzioni di importazione sono supportate solo quando l'opzione “--module” è impostata su “esnext” o “nodenext”.",
768
777
  "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "Non è possibile usare asserzioni di importazione con importazioni o esportazioni di solo tipo.",
769
778
  "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "Non è possibile usare l'assegnazione di importazione se destinata a moduli ECMAScript. Provare a usare 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"' o un altro formato di modulo.",
770
779
  "Import_declaration_0_is_using_private_name_1_4000": "La dichiarazione di importazione '{0}' usa il nome privato '{1}'.",
@@ -790,6 +799,7 @@
790
799
  "Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644": "Include il codice sorgente nei mapping di origine all'interno del codice JavaScript creato.",
791
800
  "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "Include i file dei mapping di origine all'interno del codice JavaScript creato.",
792
801
  "Include_undefined_in_index_signature_results_6716": "Includere 'undefined' nei risultati della firma dell'indice",
802
+ "Includes_imports_of_types_referenced_by_0_90054": "Include importazioni di tipi a cui fa riferimento '{0}'",
793
803
  "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "Se si include --watch, l'opzione -w consentirà di iniziare a controllare il progetto corrente per individuare modifiche ai file. Dopo l'impostazione, è possibile configurare la modalità espressione di controllo con:",
794
804
  "Index_signature_for_type_0_is_missing_in_type_1_2329": "La firma dell'indice per il tipo '{0}' manca nel tipo '{1}'.",
795
805
  "Index_signature_in_type_0_only_permits_reading_2542": "La firma dell'indice nel tipo '{0}' consente solo la lettura.",
@@ -1144,6 +1154,8 @@
1144
1154
  "Referenced_project_0_may_not_disable_emit_6310": "Il progetto di riferimento '{0}' non può disabilitare la creazione.",
1145
1155
  "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "Il progetto di riferimento '{0}' deve includere l'impostazione \"composite\": true.",
1146
1156
  "Referenced_via_0_from_file_1_1400": "Riferimento tramite '{0}' dal file '{1}'",
1157
+ "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "I percorsi di importazione relativi necessitano di estensioni di file esplicite nelle importazioni EcmaScript quando '--moduleResolution' è 'node12' o 'nodenext'. Provare ad aggiungere un'estensione al percorso di importazione.",
1158
+ "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "I percorsi di importazione relativi necessitano di estensioni di file esplicite nelle importazioni EcmaScript quando '--moduleResolution' è 'node12' o 'nodenext'. Si intendeva \"{0}\"?",
1147
1159
  "Remove_a_list_of_directories_from_the_watch_process_6628": "Rimuove un elenco di directory dal processo dell'espressione di controllo.",
1148
1160
  "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "Rimuove un elenco di file dall'elaborazione della modalità espressione di controllo.",
1149
1161
  "Remove_all_unnecessary_override_modifiers_95163": "Rimuovere tutti i modificatori 'override' non necessari",
@@ -1158,6 +1170,8 @@
1158
1170
  "Remove_parentheses_95126": "Rimuovere le parentesi",
1159
1171
  "Remove_template_tag_90011": "Rimuovere il tag template",
1160
1172
  "Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618": "Rimuove il limite di 20 MB per le dimensioni totali del codice sorgente relativo ai file JavaScript nel server di linguaggio TypeScript.",
1173
+ "Remove_type_from_import_declaration_from_0_90055": "Remove 'type' from import declaration from \"{0}\"",
1174
+ "Remove_type_from_import_of_0_from_1_90056": "Remove 'type' from import of '{0}' from \"{1}\"",
1161
1175
  "Remove_type_parameters_90012": "Rimuovere i parametri di tipo",
1162
1176
  "Remove_unnecessary_await_95086": "Rimuovere l'elemento 'await' non necessario",
1163
1177
  "Remove_unreachable_code_95050": "Rimuovere il codice non eseguibile",
@@ -1706,6 +1720,7 @@
1706
1720
  "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "L'opzione 'baseUrl' è impostata su '{0}'. Verrà usato questo valore per risolvere il nome del modulo non relativo '{1}'.",
1707
1721
  "can_only_be_used_at_the_start_of_a_file_18026": "'#!' può essere usato solo all'inizio di un file.",
1708
1722
  "case_or_default_expected_1130": "È previsto 'case' o 'default'.",
1723
+ "catch_or_finally_expected_1472": "È previsto 'catch' o 'finally'.",
1709
1724
  "const_declarations_can_only_be_declared_inside_a_block_1156": "Le dichiarazioni 'const' possono essere dichiarate solo all'interno di un blocco.",
1710
1725
  "const_declarations_must_be_initialized_1155": "Le dichiarazioni 'const' devono essere inizializzate.",
1711
1726
  "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "L'inizializzatore del membro di enumerazione 'const' è stato valutato come valore non finito.",
@@ -1170,6 +1170,8 @@
1170
1170
  "Remove_parentheses_95126": "Usuń nawiasy",
1171
1171
  "Remove_template_tag_90011": "Usuń znacznik szablonu",
1172
1172
  "Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618": "Usuń ograniczenie 20 MB dotyczące łącznego rozmiaru kodu źródłowego dla plików JavaScript na serwerze języka TypeScript.",
1173
+ "Remove_type_from_import_declaration_from_0_90055": "Usuń element „type” z deklaracji importu z elementu „ {0}”",
1174
+ "Remove_type_from_import_of_0_from_1_90056": "Usuń element „type” z importu elementu „{0}” z „{1}”",
1173
1175
  "Remove_type_parameters_90012": "Usuń parametry typu",
1174
1176
  "Remove_unnecessary_await_95086": "Usuń niepotrzebny operator „await”",
1175
1177
  "Remove_unreachable_code_95050": "Usuń nieosiągalny kod",
@@ -1170,6 +1170,8 @@
1170
1170
  "Remove_parentheses_95126": "Parantezleri kaldır",
1171
1171
  "Remove_template_tag_90011": "Şablon etiketini kaldırın",
1172
1172
  "Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618": "TypeScript dil sunucusundaki JavaScript dosyaları için toplam kaynak kodu boyutuna yönelik 20 MB sınırını kaldırın.",
1173
+ "Remove_type_from_import_declaration_from_0_90055": "\"{0}\" içindeki içeri aktarma bildiriminden “type”ı kaldırın",
1174
+ "Remove_type_from_import_of_0_from_1_90056": "\"{1}\" içindeki “{0}” içe aktarımından “type”ı kaldırın",
1173
1175
  "Remove_type_parameters_90012": "Tür parametrelerini kaldırın",
1174
1176
  "Remove_unnecessary_await_95086": "Gereksiz 'await' öğesini kaldırın",
1175
1177
  "Remove_unreachable_code_95050": "Erişilemeyen kodları kaldır",
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.6";
72
- ts.version = ts.versionMajorMinor + ".0-dev.20220128";
72
+ ts.version = ts.versionMajorMinor + ".0-dev.20220129";
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -71960,7 +71960,7 @@ var ts;
71960
71960
  if (quickResult !== undefined) {
71961
71961
  return quickResult;
71962
71962
  }
71963
- var lastStatic, lastDeclare, lastAsync, lastReadonly, lastOverride;
71963
+ var lastStatic, lastDeclare, lastAsync, lastOverride;
71964
71964
  var flags = 0;
71965
71965
  for (var _i = 0, _a = node.modifiers; _i < _a.length; _i++) {
71966
71966
  var modifier = _a[_i];
@@ -72062,7 +72062,6 @@ var ts;
72062
72062
  return grammarErrorOnNode(modifier, ts.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);
72063
72063
  }
72064
72064
  flags |= 64;
72065
- lastReadonly = modifier;
72066
72065
  break;
72067
72066
  case 93:
72068
72067
  if (flags & 1) {
@@ -72175,18 +72174,12 @@ var ts;
72175
72174
  if (flags & 32) {
72176
72175
  return grammarErrorOnNode(lastStatic, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "static");
72177
72176
  }
72178
- if (flags & 128) {
72179
- return grammarErrorOnNode(lastStatic, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "abstract");
72180
- }
72181
72177
  if (flags & 16384) {
72182
72178
  return grammarErrorOnNode(lastOverride, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "override");
72183
72179
  }
72184
- else if (flags & 256) {
72180
+ if (flags & 256) {
72185
72181
  return grammarErrorOnNode(lastAsync, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "async");
72186
72182
  }
72187
- else if (flags & 64) {
72188
- return grammarErrorOnNode(lastReadonly, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "readonly");
72189
- }
72190
72183
  return false;
72191
72184
  }
72192
72185
  else if ((node.kind === 265 || node.kind === 264) && flags & 2) {
package/lib/tsserver.js CHANGED
@@ -100,7 +100,7 @@ var ts;
100
100
  // The following is baselined as a literal template type without intervention
101
101
  /** The version of the TypeScript compiler release */
102
102
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
103
- ts.version = ts.versionMajorMinor + ".0-dev.20220128";
103
+ ts.version = ts.versionMajorMinor + ".0-dev.20220129";
104
104
  /* @internal */
105
105
  var Comparison;
106
106
  (function (Comparison) {
@@ -7855,7 +7855,7 @@ var ts;
7855
7855
  }
7856
7856
  })(ts || (ts = {}));
7857
7857
  // <auto-generated />
7858
- // generated from './diagnosticInformationMap.generated.ts' by 'src/compiler'
7858
+ // generated from './diagnosticMessages.json' in 'src/compiler'
7859
7859
  /* @internal */
7860
7860
  var ts;
7861
7861
  (function (ts) {
@@ -85728,7 +85728,7 @@ var ts;
85728
85728
  if (quickResult !== undefined) {
85729
85729
  return quickResult;
85730
85730
  }
85731
- var lastStatic, lastDeclare, lastAsync, lastReadonly, lastOverride;
85731
+ var lastStatic, lastDeclare, lastAsync, lastOverride;
85732
85732
  var flags = 0 /* None */;
85733
85733
  for (var _i = 0, _a = node.modifiers; _i < _a.length; _i++) {
85734
85734
  var modifier = _a[_i];
@@ -85832,7 +85832,6 @@ var ts;
85832
85832
  return grammarErrorOnNode(modifier, ts.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);
85833
85833
  }
85834
85834
  flags |= 64 /* Readonly */;
85835
- lastReadonly = modifier;
85836
85835
  break;
85837
85836
  case 93 /* ExportKeyword */:
85838
85837
  if (flags & 1 /* Export */) {
@@ -85945,18 +85944,12 @@ var ts;
85945
85944
  if (flags & 32 /* Static */) {
85946
85945
  return grammarErrorOnNode(lastStatic, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "static");
85947
85946
  }
85948
- if (flags & 128 /* Abstract */) {
85949
- return grammarErrorOnNode(lastStatic, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "abstract"); // TODO: GH#18217
85950
- }
85951
85947
  if (flags & 16384 /* Override */) {
85952
85948
  return grammarErrorOnNode(lastOverride, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "override"); // TODO: GH#18217
85953
85949
  }
85954
- else if (flags & 256 /* Async */) {
85950
+ if (flags & 256 /* Async */) {
85955
85951
  return grammarErrorOnNode(lastAsync, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "async");
85956
85952
  }
85957
- else if (flags & 64 /* Readonly */) {
85958
- return grammarErrorOnNode(lastReadonly, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "readonly");
85959
- }
85960
85953
  return false;
85961
85954
  }
85962
85955
  else if ((node.kind === 265 /* ImportDeclaration */ || node.kind === 264 /* ImportEqualsDeclaration */) && flags & 2 /* Ambient */) {
@@ -157925,14 +157918,22 @@ var ts;
157925
157918
  var result = [];
157926
157919
  return visitor(selection) ? undefined : result;
157927
157920
  function visitor(node) {
157928
- var _a;
157929
157921
  if (ts.isTypeReferenceNode(node)) {
157930
157922
  if (ts.isIdentifier(node.typeName)) {
157931
- var symbol = checker.resolveName(node.typeName.text, node.typeName, 262144 /* TypeParameter */, /* excludeGlobals */ true);
157932
- var declaration = ts.tryCast((_a = symbol === null || symbol === void 0 ? void 0 : symbol.declarations) === null || _a === void 0 ? void 0 : _a[0], ts.isTypeParameterDeclaration);
157933
- if (declaration) {
157934
- if (rangeContainsSkipTrivia(statement, declaration, file) && !rangeContainsSkipTrivia(selection, declaration, file)) {
157935
- ts.pushIfUnique(result, declaration);
157923
+ var typeName = node.typeName;
157924
+ var symbol = checker.resolveName(typeName.text, typeName, 262144 /* TypeParameter */, /* excludeGlobals */ true);
157925
+ for (var _i = 0, _a = (symbol === null || symbol === void 0 ? void 0 : symbol.declarations) || ts.emptyArray; _i < _a.length; _i++) {
157926
+ var decl = _a[_i];
157927
+ if (ts.isTypeParameterDeclaration(decl) && decl.getSourceFile() === file) {
157928
+ // skip extraction if the type node is in the range of the type parameter declaration.
157929
+ // function foo<T extends { a?: /**/T }>(): void;
157930
+ if (decl.name.escapedText === typeName.escapedText && rangeContainsSkipTrivia(decl, selection, file)) {
157931
+ return true;
157932
+ }
157933
+ if (rangeContainsSkipTrivia(statement, decl, file) && !rangeContainsSkipTrivia(selection, decl, file)) {
157934
+ ts.pushIfUnique(result, decl);
157935
+ break;
157936
+ }
157936
157937
  }
157937
157938
  }
157938
157939
  }
@@ -294,7 +294,7 @@ var ts;
294
294
  // The following is baselined as a literal template type without intervention
295
295
  /** The version of the TypeScript compiler release */
296
296
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
297
- ts.version = ts.versionMajorMinor + ".0-dev.20220128";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20220129";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -8049,7 +8049,7 @@ var ts;
8049
8049
  }
8050
8050
  })(ts || (ts = {}));
8051
8051
  // <auto-generated />
8052
- // generated from './diagnosticInformationMap.generated.ts' by 'src/compiler'
8052
+ // generated from './diagnosticMessages.json' in 'src/compiler'
8053
8053
  /* @internal */
8054
8054
  var ts;
8055
8055
  (function (ts) {
@@ -85922,7 +85922,7 @@ var ts;
85922
85922
  if (quickResult !== undefined) {
85923
85923
  return quickResult;
85924
85924
  }
85925
- var lastStatic, lastDeclare, lastAsync, lastReadonly, lastOverride;
85925
+ var lastStatic, lastDeclare, lastAsync, lastOverride;
85926
85926
  var flags = 0 /* None */;
85927
85927
  for (var _i = 0, _a = node.modifiers; _i < _a.length; _i++) {
85928
85928
  var modifier = _a[_i];
@@ -86026,7 +86026,6 @@ var ts;
86026
86026
  return grammarErrorOnNode(modifier, ts.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);
86027
86027
  }
86028
86028
  flags |= 64 /* Readonly */;
86029
- lastReadonly = modifier;
86030
86029
  break;
86031
86030
  case 93 /* ExportKeyword */:
86032
86031
  if (flags & 1 /* Export */) {
@@ -86139,18 +86138,12 @@ var ts;
86139
86138
  if (flags & 32 /* Static */) {
86140
86139
  return grammarErrorOnNode(lastStatic, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "static");
86141
86140
  }
86142
- if (flags & 128 /* Abstract */) {
86143
- return grammarErrorOnNode(lastStatic, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "abstract"); // TODO: GH#18217
86144
- }
86145
86141
  if (flags & 16384 /* Override */) {
86146
86142
  return grammarErrorOnNode(lastOverride, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "override"); // TODO: GH#18217
86147
86143
  }
86148
- else if (flags & 256 /* Async */) {
86144
+ if (flags & 256 /* Async */) {
86149
86145
  return grammarErrorOnNode(lastAsync, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "async");
86150
86146
  }
86151
- else if (flags & 64 /* Readonly */) {
86152
- return grammarErrorOnNode(lastReadonly, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "readonly");
86153
- }
86154
86147
  return false;
86155
86148
  }
86156
86149
  else if ((node.kind === 265 /* ImportDeclaration */ || node.kind === 264 /* ImportEqualsDeclaration */) && flags & 2 /* Ambient */) {
@@ -158536,14 +158529,22 @@ var ts;
158536
158529
  var result = [];
158537
158530
  return visitor(selection) ? undefined : result;
158538
158531
  function visitor(node) {
158539
- var _a;
158540
158532
  if (ts.isTypeReferenceNode(node)) {
158541
158533
  if (ts.isIdentifier(node.typeName)) {
158542
- var symbol = checker.resolveName(node.typeName.text, node.typeName, 262144 /* TypeParameter */, /* excludeGlobals */ true);
158543
- var declaration = ts.tryCast((_a = symbol === null || symbol === void 0 ? void 0 : symbol.declarations) === null || _a === void 0 ? void 0 : _a[0], ts.isTypeParameterDeclaration);
158544
- if (declaration) {
158545
- if (rangeContainsSkipTrivia(statement, declaration, file) && !rangeContainsSkipTrivia(selection, declaration, file)) {
158546
- ts.pushIfUnique(result, declaration);
158534
+ var typeName = node.typeName;
158535
+ var symbol = checker.resolveName(typeName.text, typeName, 262144 /* TypeParameter */, /* excludeGlobals */ true);
158536
+ for (var _i = 0, _a = (symbol === null || symbol === void 0 ? void 0 : symbol.declarations) || ts.emptyArray; _i < _a.length; _i++) {
158537
+ var decl = _a[_i];
158538
+ if (ts.isTypeParameterDeclaration(decl) && decl.getSourceFile() === file) {
158539
+ // skip extraction if the type node is in the range of the type parameter declaration.
158540
+ // function foo<T extends { a?: /**/T }>(): void;
158541
+ if (decl.name.escapedText === typeName.escapedText && rangeContainsSkipTrivia(decl, selection, file)) {
158542
+ return true;
158543
+ }
158544
+ if (rangeContainsSkipTrivia(statement, decl, file) && !rangeContainsSkipTrivia(selection, decl, file)) {
158545
+ ts.pushIfUnique(result, decl);
158546
+ break;
158547
+ }
158547
158548
  }
158548
158549
  }
158549
158550
  }
package/lib/typescript.js CHANGED
@@ -294,7 +294,7 @@ var ts;
294
294
  // The following is baselined as a literal template type without intervention
295
295
  /** The version of the TypeScript compiler release */
296
296
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
297
- ts.version = ts.versionMajorMinor + ".0-dev.20220128";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20220129";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -8049,7 +8049,7 @@ var ts;
8049
8049
  }
8050
8050
  })(ts || (ts = {}));
8051
8051
  // <auto-generated />
8052
- // generated from './diagnosticInformationMap.generated.ts' by 'src/compiler'
8052
+ // generated from './diagnosticMessages.json' in 'src/compiler'
8053
8053
  /* @internal */
8054
8054
  var ts;
8055
8055
  (function (ts) {
@@ -85922,7 +85922,7 @@ var ts;
85922
85922
  if (quickResult !== undefined) {
85923
85923
  return quickResult;
85924
85924
  }
85925
- var lastStatic, lastDeclare, lastAsync, lastReadonly, lastOverride;
85925
+ var lastStatic, lastDeclare, lastAsync, lastOverride;
85926
85926
  var flags = 0 /* None */;
85927
85927
  for (var _i = 0, _a = node.modifiers; _i < _a.length; _i++) {
85928
85928
  var modifier = _a[_i];
@@ -86026,7 +86026,6 @@ var ts;
86026
86026
  return grammarErrorOnNode(modifier, ts.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);
86027
86027
  }
86028
86028
  flags |= 64 /* Readonly */;
86029
- lastReadonly = modifier;
86030
86029
  break;
86031
86030
  case 93 /* ExportKeyword */:
86032
86031
  if (flags & 1 /* Export */) {
@@ -86139,18 +86138,12 @@ var ts;
86139
86138
  if (flags & 32 /* Static */) {
86140
86139
  return grammarErrorOnNode(lastStatic, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "static");
86141
86140
  }
86142
- if (flags & 128 /* Abstract */) {
86143
- return grammarErrorOnNode(lastStatic, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "abstract"); // TODO: GH#18217
86144
- }
86145
86141
  if (flags & 16384 /* Override */) {
86146
86142
  return grammarErrorOnNode(lastOverride, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "override"); // TODO: GH#18217
86147
86143
  }
86148
- else if (flags & 256 /* Async */) {
86144
+ if (flags & 256 /* Async */) {
86149
86145
  return grammarErrorOnNode(lastAsync, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "async");
86150
86146
  }
86151
- else if (flags & 64 /* Readonly */) {
86152
- return grammarErrorOnNode(lastReadonly, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "readonly");
86153
- }
86154
86147
  return false;
86155
86148
  }
86156
86149
  else if ((node.kind === 265 /* ImportDeclaration */ || node.kind === 264 /* ImportEqualsDeclaration */) && flags & 2 /* Ambient */) {
@@ -158536,14 +158529,22 @@ var ts;
158536
158529
  var result = [];
158537
158530
  return visitor(selection) ? undefined : result;
158538
158531
  function visitor(node) {
158539
- var _a;
158540
158532
  if (ts.isTypeReferenceNode(node)) {
158541
158533
  if (ts.isIdentifier(node.typeName)) {
158542
- var symbol = checker.resolveName(node.typeName.text, node.typeName, 262144 /* TypeParameter */, /* excludeGlobals */ true);
158543
- var declaration = ts.tryCast((_a = symbol === null || symbol === void 0 ? void 0 : symbol.declarations) === null || _a === void 0 ? void 0 : _a[0], ts.isTypeParameterDeclaration);
158544
- if (declaration) {
158545
- if (rangeContainsSkipTrivia(statement, declaration, file) && !rangeContainsSkipTrivia(selection, declaration, file)) {
158546
- ts.pushIfUnique(result, declaration);
158534
+ var typeName = node.typeName;
158535
+ var symbol = checker.resolveName(typeName.text, typeName, 262144 /* TypeParameter */, /* excludeGlobals */ true);
158536
+ for (var _i = 0, _a = (symbol === null || symbol === void 0 ? void 0 : symbol.declarations) || ts.emptyArray; _i < _a.length; _i++) {
158537
+ var decl = _a[_i];
158538
+ if (ts.isTypeParameterDeclaration(decl) && decl.getSourceFile() === file) {
158539
+ // skip extraction if the type node is in the range of the type parameter declaration.
158540
+ // function foo<T extends { a?: /**/T }>(): void;
158541
+ if (decl.name.escapedText === typeName.escapedText && rangeContainsSkipTrivia(decl, selection, file)) {
158542
+ return true;
158543
+ }
158544
+ if (rangeContainsSkipTrivia(statement, decl, file) && !rangeContainsSkipTrivia(selection, decl, file)) {
158545
+ ts.pushIfUnique(result, decl);
158546
+ break;
158547
+ }
158547
158548
  }
158548
158549
  }
158549
158550
  }
@@ -294,7 +294,7 @@ var ts;
294
294
  // The following is baselined as a literal template type without intervention
295
295
  /** The version of the TypeScript compiler release */
296
296
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
297
- ts.version = ts.versionMajorMinor + ".0-dev.20220128";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20220129";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -8049,7 +8049,7 @@ var ts;
8049
8049
  }
8050
8050
  })(ts || (ts = {}));
8051
8051
  // <auto-generated />
8052
- // generated from './diagnosticInformationMap.generated.ts' by 'src/compiler'
8052
+ // generated from './diagnosticMessages.json' in 'src/compiler'
8053
8053
  /* @internal */
8054
8054
  var ts;
8055
8055
  (function (ts) {
@@ -85922,7 +85922,7 @@ var ts;
85922
85922
  if (quickResult !== undefined) {
85923
85923
  return quickResult;
85924
85924
  }
85925
- var lastStatic, lastDeclare, lastAsync, lastReadonly, lastOverride;
85925
+ var lastStatic, lastDeclare, lastAsync, lastOverride;
85926
85926
  var flags = 0 /* None */;
85927
85927
  for (var _i = 0, _a = node.modifiers; _i < _a.length; _i++) {
85928
85928
  var modifier = _a[_i];
@@ -86026,7 +86026,6 @@ var ts;
86026
86026
  return grammarErrorOnNode(modifier, ts.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);
86027
86027
  }
86028
86028
  flags |= 64 /* Readonly */;
86029
- lastReadonly = modifier;
86030
86029
  break;
86031
86030
  case 93 /* ExportKeyword */:
86032
86031
  if (flags & 1 /* Export */) {
@@ -86139,18 +86138,12 @@ var ts;
86139
86138
  if (flags & 32 /* Static */) {
86140
86139
  return grammarErrorOnNode(lastStatic, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "static");
86141
86140
  }
86142
- if (flags & 128 /* Abstract */) {
86143
- return grammarErrorOnNode(lastStatic, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "abstract"); // TODO: GH#18217
86144
- }
86145
86141
  if (flags & 16384 /* Override */) {
86146
86142
  return grammarErrorOnNode(lastOverride, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "override"); // TODO: GH#18217
86147
86143
  }
86148
- else if (flags & 256 /* Async */) {
86144
+ if (flags & 256 /* Async */) {
86149
86145
  return grammarErrorOnNode(lastAsync, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "async");
86150
86146
  }
86151
- else if (flags & 64 /* Readonly */) {
86152
- return grammarErrorOnNode(lastReadonly, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "readonly");
86153
- }
86154
86147
  return false;
86155
86148
  }
86156
86149
  else if ((node.kind === 265 /* ImportDeclaration */ || node.kind === 264 /* ImportEqualsDeclaration */) && flags & 2 /* Ambient */) {
@@ -158536,14 +158529,22 @@ var ts;
158536
158529
  var result = [];
158537
158530
  return visitor(selection) ? undefined : result;
158538
158531
  function visitor(node) {
158539
- var _a;
158540
158532
  if (ts.isTypeReferenceNode(node)) {
158541
158533
  if (ts.isIdentifier(node.typeName)) {
158542
- var symbol = checker.resolveName(node.typeName.text, node.typeName, 262144 /* TypeParameter */, /* excludeGlobals */ true);
158543
- var declaration = ts.tryCast((_a = symbol === null || symbol === void 0 ? void 0 : symbol.declarations) === null || _a === void 0 ? void 0 : _a[0], ts.isTypeParameterDeclaration);
158544
- if (declaration) {
158545
- if (rangeContainsSkipTrivia(statement, declaration, file) && !rangeContainsSkipTrivia(selection, declaration, file)) {
158546
- ts.pushIfUnique(result, declaration);
158534
+ var typeName = node.typeName;
158535
+ var symbol = checker.resolveName(typeName.text, typeName, 262144 /* TypeParameter */, /* excludeGlobals */ true);
158536
+ for (var _i = 0, _a = (symbol === null || symbol === void 0 ? void 0 : symbol.declarations) || ts.emptyArray; _i < _a.length; _i++) {
158537
+ var decl = _a[_i];
158538
+ if (ts.isTypeParameterDeclaration(decl) && decl.getSourceFile() === file) {
158539
+ // skip extraction if the type node is in the range of the type parameter declaration.
158540
+ // function foo<T extends { a?: /**/T }>(): void;
158541
+ if (decl.name.escapedText === typeName.escapedText && rangeContainsSkipTrivia(decl, selection, file)) {
158542
+ return true;
158543
+ }
158544
+ if (rangeContainsSkipTrivia(statement, decl, file) && !rangeContainsSkipTrivia(selection, decl, file)) {
158545
+ ts.pushIfUnique(result, decl);
158546
+ break;
158547
+ }
158547
158548
  }
158548
158549
  }
158549
158550
  }
@@ -89,7 +89,7 @@ var ts;
89
89
  // The following is baselined as a literal template type without intervention
90
90
  /** The version of the TypeScript compiler release */
91
91
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
92
- ts.version = ts.versionMajorMinor + ".0-dev.20220128";
92
+ ts.version = ts.versionMajorMinor + ".0-dev.20220129";
93
93
  /* @internal */
94
94
  var Comparison;
95
95
  (function (Comparison) {
@@ -7844,7 +7844,7 @@ var ts;
7844
7844
  }
7845
7845
  })(ts || (ts = {}));
7846
7846
  // <auto-generated />
7847
- // generated from './diagnosticInformationMap.generated.ts' by 'src/compiler'
7847
+ // generated from './diagnosticMessages.json' in 'src/compiler'
7848
7848
  /* @internal */
7849
7849
  var ts;
7850
7850
  (function (ts) {
@@ -85717,7 +85717,7 @@ var ts;
85717
85717
  if (quickResult !== undefined) {
85718
85718
  return quickResult;
85719
85719
  }
85720
- var lastStatic, lastDeclare, lastAsync, lastReadonly, lastOverride;
85720
+ var lastStatic, lastDeclare, lastAsync, lastOverride;
85721
85721
  var flags = 0 /* None */;
85722
85722
  for (var _i = 0, _a = node.modifiers; _i < _a.length; _i++) {
85723
85723
  var modifier = _a[_i];
@@ -85821,7 +85821,6 @@ var ts;
85821
85821
  return grammarErrorOnNode(modifier, ts.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);
85822
85822
  }
85823
85823
  flags |= 64 /* Readonly */;
85824
- lastReadonly = modifier;
85825
85824
  break;
85826
85825
  case 93 /* ExportKeyword */:
85827
85826
  if (flags & 1 /* Export */) {
@@ -85934,18 +85933,12 @@ var ts;
85934
85933
  if (flags & 32 /* Static */) {
85935
85934
  return grammarErrorOnNode(lastStatic, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "static");
85936
85935
  }
85937
- if (flags & 128 /* Abstract */) {
85938
- return grammarErrorOnNode(lastStatic, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "abstract"); // TODO: GH#18217
85939
- }
85940
85936
  if (flags & 16384 /* Override */) {
85941
85937
  return grammarErrorOnNode(lastOverride, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "override"); // TODO: GH#18217
85942
85938
  }
85943
- else if (flags & 256 /* Async */) {
85939
+ if (flags & 256 /* Async */) {
85944
85940
  return grammarErrorOnNode(lastAsync, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "async");
85945
85941
  }
85946
- else if (flags & 64 /* Readonly */) {
85947
- return grammarErrorOnNode(lastReadonly, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "readonly");
85948
- }
85949
85942
  return false;
85950
85943
  }
85951
85944
  else if ((node.kind === 265 /* ImportDeclaration */ || node.kind === 264 /* ImportEqualsDeclaration */) && flags & 2 /* Ambient */) {
@@ -89,8 +89,8 @@
89
89
  "A_set_accessor_must_have_exactly_one_parameter_1049": "\"set\" 访问器必须正好具有一个参数。",
90
90
  "A_set_accessor_parameter_cannot_have_an_initializer_1052": "\"set\" 访问器参数不能包含初始化表达式。",
91
91
  "A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556": "扩张参数必须具有元组类型或传递给 rest 参数。",
92
- "A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401": "A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers.",
93
- "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers.",
92
+ "A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401": "“super” 调用必须是包含初始化属性、参数属性或专用标识符的派生类的构造函数中的根级语句。",
93
+ "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "当派生类包含初始化属性、参数属性或专用标识符时,“super” 调用必须是构造函数中用来引用 “super” 或 “this” 的第一个语句。",
94
94
  "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "基于 \"this\" 的类型防护与基于参数的类型防护不兼容。",
95
95
  "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "\"this\" 类型仅在类或接口的非静态成员中可用。",
96
96
  "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "已在“{0}”中定义了 \"tsconfig.json\" 文件。",
@@ -228,7 +228,7 @@
228
228
  "An_iterator_must_have_a_next_method_2489": "迭代器必须具有 \"next()\" 方法。",
229
229
  "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "将 @jsx 杂注与 JSX 片段一起使用时,需要使用 @jsxFrag 杂注。",
230
230
  "An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118": "对象文字不能具有多个具有相同名称的 get/set 访问器。",
231
- "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "An object literal cannot have multiple properties with the same name.",
231
+ "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "对象文本不能具有多个名称相同的属性。",
232
232
  "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "对象文字不能包含具有相同名称的属性和访问器。",
233
233
  "An_object_member_cannot_be_declared_optional_1162": "对象成员无法声明为可选。",
234
234
  "An_optional_chain_cannot_contain_private_identifiers_18030": "可选链不能包含专用标识符。",
@@ -315,7 +315,7 @@
315
315
  "Cannot_find_name_0_Did_you_mean_1_2552": "找不到名称“{0}”。你是否指的是“{1}”?",
316
316
  "Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663": "找不到名称“{0}”。你的意思是实例成员“this.{0}”?",
317
317
  "Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662": "找不到名称“{0}”。你的意思是静态成员“{1}.{0}”?",
318
- "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "Cannot find name '{0}'. Did you mean to write this in an async function?",
318
+ "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "找不到名称“{0}”。你是否要在异步函数中写入此内容?",
319
319
  "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "找不到名称“{0}”。是否需要更改目标库? 请尝试将 “lib” 编译器选项更改为“{1}”或更高版本。",
320
320
  "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "找不到名称“{0}”。是否需要更改目标库? 请尝试更改 “lib” 编译器选项以包括 “dom”。",
321
321
  "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "找不到名称 \"{0}\"。是否需要安装测试运行器的类型定义? 请尝试使用 `npm i --save-dev @types/jest` 或 `npm i --save-dev @types/mocha`。",
@@ -389,7 +389,7 @@
389
389
  "Compiler_option_0_expects_an_argument_6044": "编译器选项“{0}”需要参数。",
390
390
  "Compiler_option_0_may_not_be_used_with_build_5094": "编译器选项“--{0}”不能与 “--build” 一起使用。",
391
391
  "Compiler_option_0_may_only_be_used_with_build_5093": "编译器选项“--{0}”只能与 “--build” 一起使用。",
392
- "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124": "Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.",
392
+ "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124": "值“{1}”的编译器选项“{0}”不稳定。使用夜间 TypeScript 消除此错误。请尝试使用 “npm install -D typescript@next” 进行更新。",
393
393
  "Compiler_option_0_requires_a_value_of_type_1_5024": "编译器选项“{0}”需要类型 {1} 的值。",
394
394
  "Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027": "当发出专用标识符下层时,编译器会预留名称“{0}”。",
395
395
  "Compiles_the_TypeScript_project_located_at_the_specified_path_6927": "编译位于指定路径的 TypeScript 项目。",
@@ -568,7 +568,7 @@
568
568
  "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "动态导入的说明符类型必须是 \"string\",但此处类型是 \"{0}\"。",
569
569
  "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "仅当 '--module' 标志设置为 'es2020'、'es2022'、'esnext'、 'commonjs'、'amd'、'system'、'umd'、'node12' 或 'nodenext' 时,才支持动态导入。",
570
570
  "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "动态导入只能接受模块说明符和可选断言作为参数",
571
- "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_or_nodenext_1324": "Dynamic imports only support a second argument when the '--module' option is set to 'esnext' or 'nodenext'.",
571
+ "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_or_nodenext_1324": "只有当 “--module” 选项设置为 “esnext” 或 “nodenext” 时,动态导入才支持第二个参数。",
572
572
  "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "联合类型 \"{0}\" 的每个成员都有构造签名,但这些签名都不能互相兼容。",
573
573
  "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "联合类型 \"{0}\" 的每个成员都有签名,但这些签名都不能互相兼容。",
574
574
  "Editor_Support_6249": "编辑器支持",
@@ -626,7 +626,7 @@
626
626
  "Enum_member_must_have_initializer_1061": "枚举成员必须具有初始化表达式。",
627
627
  "Enum_name_cannot_be_0_2431": "枚举名不能为“{0}”。",
628
628
  "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "枚举类型“{0}”包含具有不是文本的初始值设定项的成员。",
629
- "Errors_Files_6041": "Errors Files",
629
+ "Errors_Files_6041": "错误文件",
630
630
  "Examples_Colon_0_6026": "示例: {0}",
631
631
  "Excessive_stack_depth_comparing_types_0_and_1_2321": "与类型“{0}”和“{1}”相比,堆栈深度过高。",
632
632
  "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "应为 {0}-{1} 类型参数;请为这些参数添加 \"@extends\" 标记。",
@@ -712,11 +712,11 @@
712
712
  "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "无法在类静态块内使用 “For await 循环。",
713
713
  "Found_0_errors_6217": "找到 {0} 个错误。",
714
714
  "Found_0_errors_Watching_for_file_changes_6194": "找到 {0} 个错误。注意文件更改。",
715
- "Found_0_errors_in_1_files_6261": "Found {0} errors in {1} files.",
716
- "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "Found {0} errors in the same file, starting at: {1}",
715
+ "Found_0_errors_in_1_files_6261": "在 {1} 个文件中找到 {0} 个错误。",
716
+ "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "在同一文件中找到 {0} 个错误,起始位置为: {1}",
717
717
  "Found_1_error_6216": "找到 1 个错误。",
718
718
  "Found_1_error_Watching_for_file_changes_6193": "找到 1 个错误。注意文件更改。",
719
- "Found_1_error_in_1_6259": "Found 1 error in {1}",
719
+ "Found_1_error_in_1_6259": "在 {1} 中找到 1 个错误",
720
720
  "Found_package_json_at_0_6099": "在“{0}”处找到了 \"package.json\"。",
721
721
  "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "面向 \"ES3\" 或 \"ES5\" 时,在严格模式下,块内不允许函数声明。",
722
722
  "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "面向 \"ES3\" 或 \"ES5\" 时,在严格模式下,块内不允许函数声明。类定义自动处于严格模式。",
@@ -771,9 +771,9 @@
771
771
  "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "导出的类“{0}”的 Implements 子句具有或正在使用专用名称“{1}”。",
772
772
  "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "\"symbol\" 到 \"string\" 的隐式转换将在运行时失败。请考虑在 \"String(...)\" 中包装此表达式。",
773
773
  "Import_0_from_module_1_90013": "从模块“{1}”导入“{0}”",
774
- "Import_assertion_values_must_be_string_literal_expressions_2837": "Import assertion values must be string literal expressions.",
775
- "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "Import assertions are not allowed on statements that transpile to commonjs 'require' calls.",
776
- "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.",
774
+ "Import_assertion_values_must_be_string_literal_expressions_2837": "导入断言值必须为字符串字面量表达式。",
775
+ "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "不允许在转译到 commonjs “require” 调用的语句导入断言。",
776
+ "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "仅在将 “--module” 选项设置为 “esnext” 或 “nodenext” 时,才支持导入断言。",
777
777
  "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "导入断言不能用于仅类型导入或导出。",
778
778
  "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "面向 ECMAScript 模块时,不能使用导入分配。请考虑改用 \"import * as ns from \"mod\"\"、\"import {a} from \"mod\"\"、\"import d from \"mod\"\" 或另一种模块格式。",
779
779
  "Import_declaration_0_is_using_private_name_1_4000": "导入声明“{0}”使用的是专用名称“{1}”。",
@@ -799,7 +799,7 @@
799
799
  "Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644": "在发出的 JavaScript 内的源映射中包含源代码。",
800
800
  "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "在发出的 JavaScript 中包括源映射文件。",
801
801
  "Include_undefined_in_index_signature_results_6716": "在索引签名结果中包含“未定义”",
802
- "Includes_imports_of_types_referenced_by_0_90054": "Includes imports of types referenced by '{0}'",
802
+ "Includes_imports_of_types_referenced_by_0_90054": "包含由“{0}”引用的类型的导入",
803
803
  "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "包括 --watch,-w 将开始监视当前项目的文件更改。设置后,可以使用以下内容配置监视模式:",
804
804
  "Index_signature_for_type_0_is_missing_in_type_1_2329": "类型“{1}”中缺少类型“{0}”的索引签名。",
805
805
  "Index_signature_in_type_0_only_permits_reading_2542": "类型“{0}”中的索引签名仅允许读取。",
@@ -1154,8 +1154,8 @@
1154
1154
  "Referenced_project_0_may_not_disable_emit_6310": "引用的项目“{0}”可能不会禁用发出。",
1155
1155
  "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "引用的项目“{0}”必须拥有设置 \"composite\": true。",
1156
1156
  "Referenced_via_0_from_file_1_1400": "通过 \"{0}\" 从文件 \"{1}\" 引用",
1157
- "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Consider adding an extension to the import path.",
1158
- "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean '{0}'?",
1157
+ "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "当 “--moduleResolution” 为 “node12” 或 “nodenext” 时,相对导入路径需要 EcmaScript 导入中的显式文件扩展名。请考虑将扩展名添加到导入路径中。",
1158
+ "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "当 “--moduleResolution” 为 “node12” 或 “nodenext” 时,相对导入路径需要 EcmaScript 导入中的显式文件扩展名。你是否指的是“{0}”?",
1159
1159
  "Remove_a_list_of_directories_from_the_watch_process_6628": "从监视进程中删除目录列表。",
1160
1160
  "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "从监视模式的处理中删除文件列表。",
1161
1161
  "Remove_all_unnecessary_override_modifiers_95163": "删除所有不必要的 \"override\" 修饰符",
@@ -1720,7 +1720,7 @@
1720
1720
  "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "\"baseUrl\" 选项设置为“{0}”,可使用此值解析非相关模块名称“{1}”。",
1721
1721
  "can_only_be_used_at_the_start_of_a_file_18026": "\"#!\" 只能用在文件的开头。",
1722
1722
  "case_or_default_expected_1130": "应为 \"case\" 或 \"default\"。",
1723
- "catch_or_finally_expected_1472": "'catch' or 'finally' expected.",
1723
+ "catch_or_finally_expected_1472": "应为 “catch” 或 “finally”。",
1724
1724
  "const_declarations_can_only_be_declared_inside_a_block_1156": "\"const\" 声明只能在块的内部声明。",
1725
1725
  "const_declarations_must_be_initialized_1155": "必须初始化 \"const\" 声明。",
1726
1726
  "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "\"const\" 枚举成员初始化表达式的求值结果为非有限值。",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "typescript",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "4.6.0-dev.20220128",
5
+ "version": "4.6.0-dev.20220129",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [