typescript 4.9.0-dev.20220913 → 4.9.0-dev.20220915
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/es/diagnosticMessages.generated.json +3 -0
- package/lib/fr/diagnosticMessages.generated.json +3 -0
- package/lib/it/diagnosticMessages.generated.json +3 -0
- package/lib/ja/diagnosticMessages.generated.json +3 -0
- package/lib/ko/diagnosticMessages.generated.json +3 -0
- package/lib/pl/diagnosticMessages.generated.json +3 -0
- package/lib/pt-br/diagnosticMessages.generated.json +3 -0
- package/lib/ru/diagnosticMessages.generated.json +3 -0
- package/lib/tr/diagnosticMessages.generated.json +3 -0
- package/lib/tsc.js +21 -23
- package/lib/tsserver.js +22 -24
- package/lib/tsserverlibrary.js +22 -24
- package/lib/typescript.js +22 -24
- package/lib/typescriptServices.js +22 -24
- package/lib/typingsInstaller.js +21 -23
- package/lib/zh-cn/diagnosticMessages.generated.json +3 -0
- package/package.json +1 -1
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
"An_abstract_accessor_cannot_have_an_implementation_1318": "Un descriptor de acceso abstracto no puede tener una implementación.",
|
|
187
187
|
"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010": "No se puede usar un modificador de accesibilidad con un identificador privado.",
|
|
188
188
|
"An_accessor_cannot_have_type_parameters_1094": "Un descriptor de acceso no puede tener parámetros de tipo.",
|
|
189
|
+
"An_accessor_property_cannot_be_declared_optional_1276": "Una propiedad 'accessor' no se puede declarar como opcional.",
|
|
189
190
|
"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234": "Una declaración de módulo de ambiente solo se permite en el nivel superior de un archivo.",
|
|
190
191
|
"An_argument_for_0_was_not_provided_6210": "No se proporcionó ningún argumento para \"{0}\".",
|
|
191
192
|
"An_argument_matching_this_binding_pattern_was_not_provided_6211": "No se proporcionó ningún argumento que coincida con este patrón de enlace.",
|
|
@@ -1112,6 +1113,7 @@
|
|
|
1112
1113
|
"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "Las referencias del proyecto no pueden formar un gráfico circular. Ciclo detectado: {0}",
|
|
1113
1114
|
"Projects_6255": "Proyectos",
|
|
1114
1115
|
"Projects_in_this_build_Colon_0_6355": "Proyectos de esta compilación: {0}",
|
|
1116
|
+
"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "Las propiedades con el modificador 'accessor' solo están disponibles cuando el destino es ECMAScript 2015 y versiones posteriores.",
|
|
1115
1117
|
"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "La propiedad '{0}' no puede tener un mediador porque se marca como abstracto.",
|
|
1116
1118
|
"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "La propiedad \"{0}\" procede de una signatura de índice, por lo que debe accederse a ella con [\"{0}\"].",
|
|
1117
1119
|
"Property_0_does_not_exist_on_type_1_2339": "La propiedad '{0}' no existe en el tipo '{1}'.",
|
|
@@ -1761,6 +1763,7 @@
|
|
|
1761
1763
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010": "'{0}' carece de una anotación de tipo de valor devuelto, pero tiene un tipo de valor devuelto '{1}' implícitamente.",
|
|
1762
1764
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055": "\"{0}\" carece de una anotación de tipo de valor devuelto, pero tiene un tipo yield \"{1}\" de forma implícita.",
|
|
1763
1765
|
"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "El modificador 'abstract' solo puede aparecer en una declaración de propiedad, clase o método.",
|
|
1766
|
+
"accessor_modifier_can_only_appear_on_a_property_declaration_1275": "El modificador 'accessor' solo puede aparecer en una declaración de propiedad.",
|
|
1764
1767
|
"and_here_6204": "y aquí.",
|
|
1765
1768
|
"arguments_cannot_be_referenced_in_property_initializers_2815": "no se puede hacer referencia a «arguments» en los inicializadores de propiedad.",
|
|
1766
1769
|
"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": trate los archivos con importaciones, exportaciones, import.meta, jsx (con jsx: react-jsx) o formato esm (con el módulo: node16+) como módulos.",
|
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
"An_abstract_accessor_cannot_have_an_implementation_1318": "Un accesseur abstrait ne peut pas avoir d'implémentation.",
|
|
187
187
|
"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010": "Un modificateur d'accessibilité ne peut pas être utilisé avec un identificateur privé.",
|
|
188
188
|
"An_accessor_cannot_have_type_parameters_1094": "Un accesseur ne peut pas avoir de paramètres de type.",
|
|
189
|
+
"An_accessor_property_cannot_be_declared_optional_1276": "Une propriété 'accessor' ne peut pas être déclarée comme facultative.",
|
|
189
190
|
"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234": "Une déclaration de module ambiant est uniquement autorisée au niveau supérieur dans un fichier.",
|
|
190
191
|
"An_argument_for_0_was_not_provided_6210": "Aucun argument pour '{0}' n'a été fourni.",
|
|
191
192
|
"An_argument_matching_this_binding_pattern_was_not_provided_6211": "Aucun argument correspondant à ce modèle de liaison n'a été fourni.",
|
|
@@ -1112,6 +1113,7 @@
|
|
|
1112
1113
|
"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "Les références de projet ne peuvent pas former un graphe circulaire. Cycle détecté : {0}",
|
|
1113
1114
|
"Projects_6255": "Projets",
|
|
1114
1115
|
"Projects_in_this_build_Colon_0_6355": "Projets dans cette build : {0}",
|
|
1116
|
+
"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "Les propriétés avec le modificateur 'accessor' ne sont disponibles que pour le ciblage d’ECMAScript 2015 et versions ultérieures.",
|
|
1115
1117
|
"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "La propriété « {0} » ne peut pas avoir d’initialiseur, car elle est marquée comme abstraite.",
|
|
1116
1118
|
"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "La propriété '{0}' est issue d'une signature d'index, elle doit donc faire l'objet d'un accès avec ['{0}'].",
|
|
1117
1119
|
"Property_0_does_not_exist_on_type_1_2339": "La propriété '{0}' n'existe pas sur le type '{1}'.",
|
|
@@ -1761,6 +1763,7 @@
|
|
|
1761
1763
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010": "'{0}', qui ne dispose pas d'annotation de type de retour, possède implicitement un type de retour '{1}'.",
|
|
1762
1764
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055": "'{0}', qui n'a pas d'annotation de type de retour, a implicitement le type de retour '{1}'.",
|
|
1763
1765
|
"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "Le modificateur 'abstract' peut apparaître uniquement dans une déclaration de classe, de méthode ou de propriété.",
|
|
1766
|
+
"accessor_modifier_can_only_appear_on_a_property_declaration_1275": "Le modificateur 'accessor' ne peut apparaître que sur une déclaration de propriété.",
|
|
1764
1767
|
"and_here_6204": "et ici.",
|
|
1765
1768
|
"arguments_cannot_be_referenced_in_property_initializers_2815": "Les « arguments » ne peuvent pas être référencés dans les initialiseurs de propriété.",
|
|
1766
1769
|
"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "« auto » : traitez les fichiers avec des importations, des exportations, import.meta, jsx (avec jsx: react-jsx) ou un format esm (avec module : node16+) en tant que modules.",
|
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
"An_abstract_accessor_cannot_have_an_implementation_1318": "Una funzione di accesso astratta non può contenere un'implementazione.",
|
|
187
187
|
"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010": "Non è possibile usare un modificatore di accessibilità con un identificatore privato.",
|
|
188
188
|
"An_accessor_cannot_have_type_parameters_1094": "Una funzione di accesso non può contenere parametri di tipo.",
|
|
189
|
+
"An_accessor_property_cannot_be_declared_optional_1276": "Una proprietà 'accessor' non può essere dichiarata facoltativa.",
|
|
189
190
|
"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234": "Una dichiarazione di modulo di ambiente è consentita solo al primo livello in un file.",
|
|
190
191
|
"An_argument_for_0_was_not_provided_6210": "Non è stato specificato alcun argomento per '{0}'.",
|
|
191
192
|
"An_argument_matching_this_binding_pattern_was_not_provided_6211": "Non è stato specificato alcun argomento corrispondente a questo modello di associazione.",
|
|
@@ -1112,6 +1113,7 @@
|
|
|
1112
1113
|
"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "I riferimenti al progetto non possono formare un grafico circolare. Ciclo rilevato: {0}",
|
|
1113
1114
|
"Projects_6255": "Progetti",
|
|
1114
1115
|
"Projects_in_this_build_Colon_0_6355": "Progetti in questa compilazione: {0}",
|
|
1116
|
+
"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "Le proprietà con il modificatore 'funzione di accesso' sono disponibili solo quando la destinazione è ECMAScript 2015 e versioni successive.",
|
|
1115
1117
|
"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "La proprietà '{0}' non può includere un inizializzatore perché è contrassegnata come astratta.",
|
|
1116
1118
|
"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "La proprietà '{0}' deriva da una firma dell'indice, quindi è necessario accedervi con ['{0}'].",
|
|
1117
1119
|
"Property_0_does_not_exist_on_type_1_2339": "La proprietà '{0}' non esiste nel tipo '{1}'.",
|
|
@@ -1761,6 +1763,7 @@
|
|
|
1761
1763
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010": "'{0}', in cui manca l'annotazione di tipo restituito, contiene implicitamente un tipo restituito '{1}'.",
|
|
1762
1764
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055": "'{0}', in cui manca l'annotazione di tipo restituito, contiene implicitamente un tipo yield '{1}'.",
|
|
1763
1765
|
"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "Il modificatore 'abstract' può essere incluso solo in una dichiarazione di classe, metodo o proprietà.",
|
|
1766
|
+
"accessor_modifier_can_only_appear_on_a_property_declaration_1275": "Il modificatore 'accessor' può essere visualizzato solo in una dichiarazione di proprietà.",
|
|
1764
1767
|
"and_here_6204": "e in questo punto.",
|
|
1765
1768
|
"arguments_cannot_be_referenced_in_property_initializers_2815": "impossibile fare riferimento agli 'argomenti' negli inizializzatori di proprietà.",
|
|
1766
1769
|
"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": considera i file con importazioni, esportazioni, import.meta, jsx (con jsx: react-jsx) o il formato esm (con modulo: node16+) come moduli.",
|
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
"An_abstract_accessor_cannot_have_an_implementation_1318": "抽象アクセサーに実装を含めることはできません。",
|
|
187
187
|
"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010": "アクセシビリティ修飾子を private 識別子と共に使用することはできません。",
|
|
188
188
|
"An_accessor_cannot_have_type_parameters_1094": "アクセサーに型パラメーターを指定することはできません。",
|
|
189
|
+
"An_accessor_property_cannot_be_declared_optional_1276": "'accessor' プロパティはオプションとして宣言できません。",
|
|
189
190
|
"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234": "アンビエント モジュール宣言は、ファイルの最上位にのみ使用できます。",
|
|
190
191
|
"An_argument_for_0_was_not_provided_6210": "'{0}' の引数が指定されていません。",
|
|
191
192
|
"An_argument_matching_this_binding_pattern_was_not_provided_6211": "このバインド パターンに一致する引数が指定されていません。",
|
|
@@ -1112,6 +1113,7 @@
|
|
|
1112
1113
|
"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "プロジェクト参照が円グラフを形成できません。循環が検出されました: {0}",
|
|
1113
1114
|
"Projects_6255": "プロジェクト",
|
|
1114
1115
|
"Projects_in_this_build_Colon_0_6355": "このビルドのプロジェクト: {0}",
|
|
1116
|
+
"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "'accessor' 修飾子を持つプロパティは、ECMAScript 2015 以降を対象とする場合にのみ使用できます。",
|
|
1115
1117
|
"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "メソッド '{0}' は abstract に指定されているため、初期化子を含めることができません。",
|
|
1116
1118
|
"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "プロパティ '{0}' はインデックス シグネチャに基づいているため、['{0}'] を使用してアクセスする必要があります。",
|
|
1117
1119
|
"Property_0_does_not_exist_on_type_1_2339": "プロパティ '{0}' は型 '{1}' に存在しません。",
|
|
@@ -1761,6 +1763,7 @@
|
|
|
1761
1763
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010": "'{0}' には戻り値の型の注釈がないため、戻り値の型は暗黙的に '{1}' になります。",
|
|
1762
1764
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055": "'{0}' には戻り値の型の注釈がないため、yield 型は暗黙的に '{1}' になります。",
|
|
1763
1765
|
"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "'abstract' 修飾子は、クラス宣言、メソッド宣言、またはプロパティ宣言のみに使用できます。",
|
|
1766
|
+
"accessor_modifier_can_only_appear_on_a_property_declaration_1275": "'accessor' 修飾子は、プロパティ宣言でのみ使用できます。",
|
|
1764
1767
|
"and_here_6204": "およびここで。",
|
|
1765
1768
|
"arguments_cannot_be_referenced_in_property_initializers_2815": "プロパティ初期化子で 'arguments' を参照することはできません。",
|
|
1766
1769
|
"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": インポート、エクスポート、import.meta、jsx (jsx: react-jsx を使用)、または esm 形式 (モジュール: node16+) でファイルをモジュールとして扱います。",
|
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
"An_abstract_accessor_cannot_have_an_implementation_1318": "추상 접근자는 구현이 있을 수 없습니다.",
|
|
187
187
|
"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010": "접근성 한정자는 프라이빗 식별자와 함께 사용할 수 없습니다.",
|
|
188
188
|
"An_accessor_cannot_have_type_parameters_1094": "접근자에는 형식 매개 변수를 사용할 수 없습니다.",
|
|
189
|
+
"An_accessor_property_cannot_be_declared_optional_1276": "'accessor' 속성은 선택 사항으로 선언할 수 없습니다.",
|
|
189
190
|
"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234": "앰비언트 모듈 선언은 파일의 최상위에서만 사용할 수 있습니다.",
|
|
190
191
|
"An_argument_for_0_was_not_provided_6210": "'{0}'의 인수가 제공되지 않았습니다.",
|
|
191
192
|
"An_argument_matching_this_binding_pattern_was_not_provided_6211": "이 바인딩 패턴과 일치하는 인수가 제공되지 않았습니다.",
|
|
@@ -1112,6 +1113,7 @@
|
|
|
1112
1113
|
"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "프로젝트 참조는 순환 그래프를 형성할 수 없습니다. 순환이 발견되었습니다. {0}",
|
|
1113
1114
|
"Projects_6255": "프로젝트",
|
|
1114
1115
|
"Projects_in_this_build_Colon_0_6355": "이 빌드의 프로젝트: {0}",
|
|
1116
|
+
"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "'accessor' 한정자가 있는 속성은 ECMAScript 2015 이상을 대상으로 하는 경우에만 사용할 수 있습니다.",
|
|
1115
1117
|
"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "'{0}' 속성은 추상으로 표시되어 있으므로 이니셜라이저를 사용할 수 없습니다.",
|
|
1116
1118
|
"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "'{0}' 속성은 인덱스 시그니처에서 가져오는 것이므로 ['{0}']을(를) 사용하여 액세스해야 합니다.",
|
|
1117
1119
|
"Property_0_does_not_exist_on_type_1_2339": "'{1}' 형식에 '{0}' 속성이 없습니다.",
|
|
@@ -1761,6 +1763,7 @@
|
|
|
1761
1763
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010": "반환 형식 주석이 없는 '{0}'에는 암시적으로 '{1}' 반환 형식이 포함됩니다.",
|
|
1762
1764
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055": "반환 형식 주석이 없는 '{0}'에는 암시적으로 '{1}' yield 형식이 포함됩니다.",
|
|
1763
1765
|
"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "'abstract' 한정자는 클래스, 메서드 또는 속성 선언에만 나타날 수 있습니다.",
|
|
1766
|
+
"accessor_modifier_can_only_appear_on_a_property_declaration_1275": "'accessor' 한정자는 속성 선언에만 나타날 수 있습니다.",
|
|
1764
1767
|
"and_here_6204": "및 여기.",
|
|
1765
1768
|
"arguments_cannot_be_referenced_in_property_initializers_2815": "'arguments'는 속성 이니셜라이저에서 참조할 수 없습니다.",
|
|
1766
1769
|
"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": 가져오기, 내보내기, import.meta, jsx(jsx: react-jsx 포함) 또는 esm 형식(모듈: node16+ 포함)이 있는 파일을 모듈로 처리합니다.",
|
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
"An_abstract_accessor_cannot_have_an_implementation_1318": "Abstrakcyjna metoda dostępu nie może mieć implementacji.",
|
|
187
187
|
"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010": "Modyfikator dostępności nie może być używany z identyfikatorem prywatnym.",
|
|
188
188
|
"An_accessor_cannot_have_type_parameters_1094": "Metoda dostępu nie może mieć parametrów typu.",
|
|
189
|
+
"An_accessor_property_cannot_be_declared_optional_1276": "Właściwość „accessor” nie może być zadeklarowana jako opcjonalna.",
|
|
189
190
|
"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234": "Deklaracja otaczającego modułu jest dozwolona tylko na najwyższym poziomie pliku.",
|
|
190
191
|
"An_argument_for_0_was_not_provided_6210": "Nie podano argumentu dla elementu „{0}”.",
|
|
191
192
|
"An_argument_matching_this_binding_pattern_was_not_provided_6211": "Argument pasujący do tego wzorca powiązania nie został podany.",
|
|
@@ -1112,6 +1113,7 @@
|
|
|
1112
1113
|
"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "Odwołania do projektu nie mogą tworzyć grafu kołowego. Wykryto cykl: {0}",
|
|
1113
1114
|
"Projects_6255": "Projekty",
|
|
1114
1115
|
"Projects_in_this_build_Colon_0_6355": "Projekty w tej kompilacji: {0}",
|
|
1116
|
+
"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "Właściwości z modyfikatorem „accessor” są dostępne tylko w przypadku określania wartości docelowej ECMAScript 2015 lub nowszej.",
|
|
1115
1117
|
"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "Właściwości \"{0}\" nie może mieć inicjatora, ponieważ jest oznaczona jako abstrakcyjna.",
|
|
1116
1118
|
"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "Właściwość „{0}” pochodzi z sygnatury indeksu, dlatego należy uzyskiwać do niej dostęp za pomocą elementu [„{0}”].",
|
|
1117
1119
|
"Property_0_does_not_exist_on_type_1_2339": "Właściwość „{0}” nie istnieje w typie „{1}”.",
|
|
@@ -1761,6 +1763,7 @@
|
|
|
1761
1763
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010": "Dla elementu „{0}” bez adnotacji zwracanego typu niejawnie określono zwracany typ „{1}”.",
|
|
1762
1764
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055": "Dla elementu „{0}” bez adnotacji zwracanego typu niejawnie określono zwracany typ „{1}”.",
|
|
1763
1765
|
"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "Modyfikator „abstract” może być stosowany jedynie w przypadku deklaracji klasy, metody lub właściwości.",
|
|
1766
|
+
"accessor_modifier_can_only_appear_on_a_property_declaration_1275": "Modyfikator „accessor” może występować tylko w deklaracji właściwości.",
|
|
1764
1767
|
"and_here_6204": "i tutaj.",
|
|
1765
1768
|
"arguments_cannot_be_referenced_in_property_initializers_2815": "w inicjatorach właściwości nie można odwoływać się do \"arguments\".",
|
|
1766
1769
|
"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "„auto”: Traktuj pliki za pomocą importów, eksportów, import.meta, jsx (z jsx: react-jsx) lub formatu esm (z modułem: node16+) jako moduły.",
|
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
"An_abstract_accessor_cannot_have_an_implementation_1318": "Um acessador abstrato não pode ter uma implementação.",
|
|
187
187
|
"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010": "Não é possível usar um modificador de acessibilidade com um identificador privado.",
|
|
188
188
|
"An_accessor_cannot_have_type_parameters_1094": "Um acessador não pode ter parâmetros de tipo.",
|
|
189
|
+
"An_accessor_property_cannot_be_declared_optional_1276": "Uma propriedade 'acessador' não pode ser declarada opcional.",
|
|
189
190
|
"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234": "Uma declaração de módulo de ambiente só é permitida no nível superior em um arquivo.",
|
|
190
191
|
"An_argument_for_0_was_not_provided_6210": "Não foi fornecido um argumento para '{0}'.",
|
|
191
192
|
"An_argument_matching_this_binding_pattern_was_not_provided_6211": "Não foi fornecido um argumento correspondente a esse padrão de associação.",
|
|
@@ -1112,6 +1113,7 @@
|
|
|
1112
1113
|
"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "Referências de projeto não podem formar um gráfico circular. Ciclo detectado: {0}",
|
|
1113
1114
|
"Projects_6255": "Projetos",
|
|
1114
1115
|
"Projects_in_this_build_Colon_0_6355": "Projetos neste build: {0}",
|
|
1116
|
+
"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "Propriedades com o modificador 'acessador' estão disponíveis somente quando o alvo é ECMAScript 2015 e superior.",
|
|
1115
1117
|
"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "A propriedade '{0}' não pode ter um inicializador, pois está marcado como abstrato.",
|
|
1116
1118
|
"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "A propriedade '{0}' vem de uma assinatura de índice, portanto, ela precisa ser acessada com ['{0}'].",
|
|
1117
1119
|
"Property_0_does_not_exist_on_type_1_2339": "A propriedade '{0}' não existe no tipo '{1}'.",
|
|
@@ -1761,6 +1763,7 @@
|
|
|
1761
1763
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010": "'{0}', que não tem a anotação de tipo de retorno, implicitamente tem um tipo de retorno '{1}'.",
|
|
1762
1764
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055": "'{0}', que não tem a anotação de tipo de retorno, implicitamente tem um tipo de rendimento '{1}'.",
|
|
1763
1765
|
"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "O modificador 'abstract' pode aparecer somente em uma declaração de classe, método ou propriedade.",
|
|
1766
|
+
"accessor_modifier_can_only_appear_on_a_property_declaration_1275": "o modificador 'acessador' só pode aparecer em uma declaração de propriedade.",
|
|
1764
1767
|
"and_here_6204": "e aqui.",
|
|
1765
1768
|
"arguments_cannot_be_referenced_in_property_initializers_2815": "'argumentos' não podem ser referenciados em inicializadores de propriedade.",
|
|
1766
1769
|
"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": trata os arquivos com import, export, import.meta, jsx (com jsx: react-jsx) ou formato esm (com module: node16+) como módulos.",
|
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
"An_abstract_accessor_cannot_have_an_implementation_1318": "У абстрактного метода доступа не может быть реализации.",
|
|
187
187
|
"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010": "Модификатор специальных возможностей запрещено использовать с закрытым идентификатором.",
|
|
188
188
|
"An_accessor_cannot_have_type_parameters_1094": "Метод доступа не может иметь параметры типа.",
|
|
189
|
+
"An_accessor_property_cannot_be_declared_optional_1276": "Невозможно объявить свойство \"accessor\" как необязательное.",
|
|
189
190
|
"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234": "Объявление окружающего модуля разрешено использовать только в рамках верхнего уровня файла.",
|
|
190
191
|
"An_argument_for_0_was_not_provided_6210": "Не указан аргумент для \"{0}\".",
|
|
191
192
|
"An_argument_matching_this_binding_pattern_was_not_provided_6211": "Не указан аргумент, соответствующий этому шаблону привязки.",
|
|
@@ -1112,6 +1113,7 @@
|
|
|
1112
1113
|
"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "Ссылки на проект не могут формировать циклический граф. Обнаружен цикл: {0}",
|
|
1113
1114
|
"Projects_6255": "Проекты",
|
|
1114
1115
|
"Projects_in_this_build_Colon_0_6355": "Проекты в этой сборке: {0}",
|
|
1116
|
+
"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "Свойства с модификатором \"accessor\" доступны только при обращении к ECMAScript 2015 и более поздним версиям.",
|
|
1115
1117
|
"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "Свойство \"{0}\" не может содержать инициализатор, так как оно помечено как абстрактное.",
|
|
1116
1118
|
"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "Свойство \"{0}\" поступает из сигнатуры индекса, поэтому доступ к нему должен осуществляться с помощью [\"{0}\"].",
|
|
1117
1119
|
"Property_0_does_not_exist_on_type_1_2339": "Свойство \"{0}\" не существует в типе \"{1}\".",
|
|
@@ -1761,6 +1763,7 @@
|
|
|
1761
1763
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010": "\"{0}\", у которого нет аннотации типа возвращаемого значения, неявно имеет тип возвращаемого значения \"{1}\".",
|
|
1762
1764
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055": "\"{0}\", у которого нет заметки с типом возвращаемого значения, неявно имеет тип yield \"{1}\".",
|
|
1763
1765
|
"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "Модификатор abstract может отображаться только в объявлении класса, метода или свойства.",
|
|
1766
|
+
"accessor_modifier_can_only_appear_on_a_property_declaration_1275": "Модификатор \"accessor\" может быть только в объявлении свойства.",
|
|
1764
1767
|
"and_here_6204": "и здесь.",
|
|
1765
1768
|
"arguments_cannot_be_referenced_in_property_initializers_2815": "Ссылка на \"arguments\" в инициализаторах свойств невозможна.",
|
|
1766
1769
|
"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": обрабатывать файлы с импортом, экспортом, import.meta, jsx (с jsx: react-jsx) или форматом esm (с модулем: node16+) как файлы с модулями.",
|
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
"An_abstract_accessor_cannot_have_an_implementation_1318": "Soyut erişimcinin uygulaması olamaz.",
|
|
187
187
|
"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010": "Erişilebilirlik değiştiricisi özel bir tanımlayıcıyla kullanılamıyor.",
|
|
188
188
|
"An_accessor_cannot_have_type_parameters_1094": "Erişimci, tür parametrelerine sahip olamaz.",
|
|
189
|
+
"An_accessor_property_cannot_be_declared_optional_1276": "'accessor' özelliği isteğe bağlı olarak bildirilemez.",
|
|
189
190
|
"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234": "Çevresel modül bildirimine yalnızca bir dosyadaki en üst düzeyde izin verilir.",
|
|
190
191
|
"An_argument_for_0_was_not_provided_6210": "'{0}' için bağımsız değişken sağlanmadı.",
|
|
191
192
|
"An_argument_matching_this_binding_pattern_was_not_provided_6211": "Bu bağlama deseniyle eşleşen bağımsız değişken sağlanmadı.",
|
|
@@ -1112,6 +1113,7 @@
|
|
|
1112
1113
|
"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "Proje başvuruları döngüsel bir grafik formu oluşturamaz. Döngü tespit edildi: {0}",
|
|
1113
1114
|
"Projects_6255": "Projeler",
|
|
1114
1115
|
"Projects_in_this_build_Colon_0_6355": "Bu derlemedeki projeler: {0}",
|
|
1116
|
+
"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "'accessor' değiştiricisine sahip özellikler yalnızca ECMAScript 2015 ve üzeri hedeflendiğinde kullanılabilir.",
|
|
1115
1117
|
"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "'{0}' özelliği abstract olarak işaretlendiğinden bir başlatıcıya sahip olamaz.",
|
|
1116
1118
|
"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "'{0}' özelliği bir dizin imzasından geldiğinden ['{0}'] ile erişilmelidir.",
|
|
1117
1119
|
"Property_0_does_not_exist_on_type_1_2339": "'{0}' özelliği, '{1}' türünde değil.",
|
|
@@ -1761,6 +1763,7 @@
|
|
|
1761
1763
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010": "Dönüş türü ek açıklaması olmayan '{0}', örtük olarak '{1}' dönüş türüne sahip.",
|
|
1762
1764
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055": "Dönüş türü ek açıklaması olmayan '{0}', örtük olarak '{1}' yield türüne sahip.",
|
|
1763
1765
|
"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "'abstract' değiştiricisi yalnızca sınıf, metot veya özellik bildiriminde görünebilir.",
|
|
1766
|
+
"accessor_modifier_can_only_appear_on_a_property_declaration_1275": "'accessor' değiştiricisi yalnızca özellik bildiriminde görünebilir.",
|
|
1764
1767
|
"and_here_6204": "ve buraya.",
|
|
1765
1768
|
"arguments_cannot_be_referenced_in_property_initializers_2815": "Özellik başlatıcılarda 'arguments' öğesine başvurulamaz.",
|
|
1766
1769
|
"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": İçe aktarma, dışa aktarma, import.meta, jsx (jsx: react-jsx ile) veya esm biçimi (modül: node16+ ile) içeren dosyaları modül olarak ele alın.",
|
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.9";
|
|
72
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
72
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220915");
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -25747,6 +25747,7 @@ var ts;
|
|
|
25747
25747
|
_a[338] = forEachChildInJSDocTag,
|
|
25748
25748
|
_a[339] = forEachChildInJSDocTag,
|
|
25749
25749
|
_a[334] = forEachChildInJSDocTag,
|
|
25750
|
+
_a[340] = forEachChildInJSDocTag,
|
|
25750
25751
|
_a[353] = forEachChildInPartiallyEmittedExpression,
|
|
25751
25752
|
_a);
|
|
25752
25753
|
function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) {
|
|
@@ -55484,11 +55485,15 @@ var ts;
|
|
|
55484
55485
|
return typeRelatedToEachType(source, target, reportErrors, 2);
|
|
55485
55486
|
}
|
|
55486
55487
|
if (relation === comparableRelation && target.flags & 131068) {
|
|
55487
|
-
var constraints = ts.sameMap(source.types,
|
|
55488
|
+
var constraints = ts.sameMap(source.types, function (t) { return t.flags & 465829888 ? getBaseConstraintOfType(t) || unknownType : t; });
|
|
55488
55489
|
if (constraints !== source.types) {
|
|
55489
55490
|
source = getIntersectionType(constraints);
|
|
55491
|
+
if (source.flags & 131072) {
|
|
55492
|
+
return 0;
|
|
55493
|
+
}
|
|
55490
55494
|
if (!(source.flags & 2097152)) {
|
|
55491
|
-
return isRelatedTo(source, target, 1, false)
|
|
55495
|
+
return isRelatedTo(source, target, 1, false) ||
|
|
55496
|
+
isRelatedTo(target, source, 1, false);
|
|
55492
55497
|
}
|
|
55493
55498
|
}
|
|
55494
55499
|
}
|
|
@@ -55749,7 +55754,7 @@ var ts;
|
|
|
55749
55754
|
var result = structuredTypeRelatedToWorker(source, target, reportErrors, intersectionState, saveErrorInfo);
|
|
55750
55755
|
if (!result && (source.flags & 2097152 || source.flags & 262144 && target.flags & 1048576)) {
|
|
55751
55756
|
var constraint = getEffectiveConstraintOfIntersection(source.flags & 2097152 ? source.types : [source], !!(target.flags & 1048576));
|
|
55752
|
-
if (constraint && everyType(constraint, function (c) { return c !== source; })) {
|
|
55757
|
+
if (constraint && !(constraint.flags & 131072) && everyType(constraint, function (c) { return c !== source; })) {
|
|
55753
55758
|
result = isRelatedTo(constraint, target, 1, false, undefined, intersectionState);
|
|
55754
55759
|
}
|
|
55755
55760
|
}
|
|
@@ -60342,7 +60347,7 @@ var ts;
|
|
|
60342
60347
|
var narrowedPropType = narrowType(propType);
|
|
60343
60348
|
return filterType(type, function (t) {
|
|
60344
60349
|
var discriminantType = getTypeOfPropertyOrIndexSignature(t, propName);
|
|
60345
|
-
return !(narrowedPropType.flags & 131072) && areTypesComparable(narrowedPropType, discriminantType);
|
|
60350
|
+
return !(discriminantType.flags & 131072) && !(narrowedPropType.flags & 131072) && areTypesComparable(narrowedPropType, discriminantType);
|
|
60346
60351
|
});
|
|
60347
60352
|
}
|
|
60348
60353
|
function narrowTypeByDiscriminantProperty(type, access, operator, value, assumeTrue) {
|
|
@@ -60511,24 +60516,11 @@ var ts;
|
|
|
60511
60516
|
assumeTrue = !assumeTrue;
|
|
60512
60517
|
}
|
|
60513
60518
|
var valueType = getTypeOfExpression(value);
|
|
60514
|
-
|
|
60515
|
-
assumeTrue &&
|
|
60516
|
-
(operator === 36 || operator === 37)) {
|
|
60517
|
-
if (valueType.flags & (131068 | 67108864)) {
|
|
60518
|
-
return valueType;
|
|
60519
|
-
}
|
|
60520
|
-
if (valueType.flags & 524288) {
|
|
60521
|
-
return nonPrimitiveType;
|
|
60522
|
-
}
|
|
60523
|
-
if (type.flags & 2) {
|
|
60524
|
-
return type;
|
|
60525
|
-
}
|
|
60526
|
-
}
|
|
60519
|
+
var doubleEquals = operator === 34 || operator === 35;
|
|
60527
60520
|
if (valueType.flags & 98304) {
|
|
60528
60521
|
if (!strictNullChecks) {
|
|
60529
60522
|
return type;
|
|
60530
60523
|
}
|
|
60531
|
-
var doubleEquals = operator === 34 || operator === 35;
|
|
60532
60524
|
var facts = doubleEquals ?
|
|
60533
60525
|
assumeTrue ? 262144 : 2097152 :
|
|
60534
60526
|
valueType.flags & 65536 ?
|
|
@@ -60537,10 +60529,16 @@ var ts;
|
|
|
60537
60529
|
return getAdjustedTypeWithFacts(type, facts);
|
|
60538
60530
|
}
|
|
60539
60531
|
if (assumeTrue) {
|
|
60540
|
-
|
|
60541
|
-
|
|
60542
|
-
|
|
60543
|
-
|
|
60532
|
+
if (!doubleEquals && (type.flags & 2 || someType(type, isEmptyAnonymousObjectType))) {
|
|
60533
|
+
if (valueType.flags & (131068 | 67108864) || isEmptyAnonymousObjectType(valueType)) {
|
|
60534
|
+
return valueType;
|
|
60535
|
+
}
|
|
60536
|
+
if (valueType.flags & 524288) {
|
|
60537
|
+
return nonPrimitiveType;
|
|
60538
|
+
}
|
|
60539
|
+
}
|
|
60540
|
+
var filteredType = filterType(type, function (t) { return areTypesComparable(t, valueType) || doubleEquals && isCoercibleUnderDoubleEquals(t, valueType); });
|
|
60541
|
+
return replacePrimitivesWithLiterals(filteredType, valueType);
|
|
60544
60542
|
}
|
|
60545
60543
|
if (isUnitType(valueType)) {
|
|
60546
60544
|
return filterType(type, function (t) { return !(isUnitLikeType(t) && areTypesComparable(t, valueType)); });
|
package/lib/tsserver.js
CHANGED
|
@@ -109,7 +109,7 @@ var ts;
|
|
|
109
109
|
// The following is baselined as a literal template type without intervention
|
|
110
110
|
/** The version of the TypeScript compiler release */
|
|
111
111
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
112
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
112
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220915");
|
|
113
113
|
/* @internal */
|
|
114
114
|
var Comparison;
|
|
115
115
|
(function (Comparison) {
|
|
@@ -31828,6 +31828,7 @@ var ts;
|
|
|
31828
31828
|
_a[338 /* SyntaxKind.JSDocProtectedTag */] = forEachChildInJSDocTag,
|
|
31829
31829
|
_a[339 /* SyntaxKind.JSDocReadonlyTag */] = forEachChildInJSDocTag,
|
|
31830
31830
|
_a[334 /* SyntaxKind.JSDocDeprecatedTag */] = forEachChildInJSDocTag,
|
|
31831
|
+
_a[340 /* SyntaxKind.JSDocOverrideTag */] = forEachChildInJSDocTag,
|
|
31831
31832
|
_a[353 /* SyntaxKind.PartiallyEmittedExpression */] = forEachChildInPartiallyEmittedExpression,
|
|
31832
31833
|
_a);
|
|
31833
31834
|
// shared
|
|
@@ -66469,11 +66470,15 @@ var ts;
|
|
|
66469
66470
|
// parameter 'T extends 1 | 2', the intersection 'T & 1' should be reduced to '1' such that it doesn't
|
|
66470
66471
|
// appear to be comparable to '2'.
|
|
66471
66472
|
if (relation === comparableRelation && target.flags & 131068 /* TypeFlags.Primitive */) {
|
|
66472
|
-
var constraints = ts.sameMap(source.types,
|
|
66473
|
+
var constraints = ts.sameMap(source.types, function (t) { return t.flags & 465829888 /* TypeFlags.Instantiable */ ? getBaseConstraintOfType(t) || unknownType : t; });
|
|
66473
66474
|
if (constraints !== source.types) {
|
|
66474
66475
|
source = getIntersectionType(constraints);
|
|
66476
|
+
if (source.flags & 131072 /* TypeFlags.Never */) {
|
|
66477
|
+
return 0 /* Ternary.False */;
|
|
66478
|
+
}
|
|
66475
66479
|
if (!(source.flags & 2097152 /* TypeFlags.Intersection */)) {
|
|
66476
|
-
return isRelatedTo(source, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false)
|
|
66480
|
+
return isRelatedTo(source, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false) ||
|
|
66481
|
+
isRelatedTo(target, source, 1 /* RecursionFlags.Source */, /*reportErrors*/ false);
|
|
66477
66482
|
}
|
|
66478
66483
|
}
|
|
66479
66484
|
}
|
|
@@ -66791,7 +66796,7 @@ var ts;
|
|
|
66791
66796
|
// the type param can be compared with itself in the target (with the influence of its constraint to match other parts)
|
|
66792
66797
|
// For example, if `T extends 1 | 2` and `U extends 2 | 3` and we compare `T & U` to `T & U & (1 | 2 | 3)`
|
|
66793
66798
|
var constraint = getEffectiveConstraintOfIntersection(source.flags & 2097152 /* TypeFlags.Intersection */ ? source.types : [source], !!(target.flags & 1048576 /* TypeFlags.Union */));
|
|
66794
|
-
if (constraint && everyType(constraint, function (c) { return c !== source; })) { // Skip comparison if expansion contains the source itself
|
|
66799
|
+
if (constraint && !(constraint.flags & 131072 /* TypeFlags.Never */) && everyType(constraint, function (c) { return c !== source; })) { // Skip comparison if expansion contains the source itself
|
|
66795
66800
|
// TODO: Stack errors so we get a pyramid for the "normal" comparison above, _and_ a second for this
|
|
66796
66801
|
result = isRelatedTo(constraint, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState);
|
|
66797
66802
|
}
|
|
@@ -72123,7 +72128,7 @@ var ts;
|
|
|
72123
72128
|
var narrowedPropType = narrowType(propType);
|
|
72124
72129
|
return filterType(type, function (t) {
|
|
72125
72130
|
var discriminantType = getTypeOfPropertyOrIndexSignature(t, propName);
|
|
72126
|
-
return !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
|
|
72131
|
+
return !(discriminantType.flags & 131072 /* TypeFlags.Never */) && !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
|
|
72127
72132
|
});
|
|
72128
72133
|
}
|
|
72129
72134
|
function narrowTypeByDiscriminantProperty(type, access, operator, value, assumeTrue) {
|
|
@@ -72305,24 +72310,11 @@ var ts;
|
|
|
72305
72310
|
assumeTrue = !assumeTrue;
|
|
72306
72311
|
}
|
|
72307
72312
|
var valueType = getTypeOfExpression(value);
|
|
72308
|
-
|
|
72309
|
-
assumeTrue &&
|
|
72310
|
-
(operator === 36 /* SyntaxKind.EqualsEqualsEqualsToken */ || operator === 37 /* SyntaxKind.ExclamationEqualsEqualsToken */)) {
|
|
72311
|
-
if (valueType.flags & (131068 /* TypeFlags.Primitive */ | 67108864 /* TypeFlags.NonPrimitive */)) {
|
|
72312
|
-
return valueType;
|
|
72313
|
-
}
|
|
72314
|
-
if (valueType.flags & 524288 /* TypeFlags.Object */) {
|
|
72315
|
-
return nonPrimitiveType;
|
|
72316
|
-
}
|
|
72317
|
-
if (type.flags & 2 /* TypeFlags.Unknown */) {
|
|
72318
|
-
return type;
|
|
72319
|
-
}
|
|
72320
|
-
}
|
|
72313
|
+
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72321
72314
|
if (valueType.flags & 98304 /* TypeFlags.Nullable */) {
|
|
72322
72315
|
if (!strictNullChecks) {
|
|
72323
72316
|
return type;
|
|
72324
72317
|
}
|
|
72325
|
-
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72326
72318
|
var facts = doubleEquals ?
|
|
72327
72319
|
assumeTrue ? 262144 /* TypeFacts.EQUndefinedOrNull */ : 2097152 /* TypeFacts.NEUndefinedOrNull */ :
|
|
72328
72320
|
valueType.flags & 65536 /* TypeFlags.Null */ ?
|
|
@@ -72331,10 +72323,16 @@ var ts;
|
|
|
72331
72323
|
return getAdjustedTypeWithFacts(type, facts);
|
|
72332
72324
|
}
|
|
72333
72325
|
if (assumeTrue) {
|
|
72334
|
-
|
|
72335
|
-
|
|
72336
|
-
|
|
72337
|
-
|
|
72326
|
+
if (!doubleEquals && (type.flags & 2 /* TypeFlags.Unknown */ || someType(type, isEmptyAnonymousObjectType))) {
|
|
72327
|
+
if (valueType.flags & (131068 /* TypeFlags.Primitive */ | 67108864 /* TypeFlags.NonPrimitive */) || isEmptyAnonymousObjectType(valueType)) {
|
|
72328
|
+
return valueType;
|
|
72329
|
+
}
|
|
72330
|
+
if (valueType.flags & 524288 /* TypeFlags.Object */) {
|
|
72331
|
+
return nonPrimitiveType;
|
|
72332
|
+
}
|
|
72333
|
+
}
|
|
72334
|
+
var filteredType = filterType(type, function (t) { return areTypesComparable(t, valueType) || doubleEquals && isCoercibleUnderDoubleEquals(t, valueType); });
|
|
72335
|
+
return replacePrimitivesWithLiterals(filteredType, valueType);
|
|
72338
72336
|
}
|
|
72339
72337
|
if (isUnitType(valueType)) {
|
|
72340
72338
|
return filterType(type, function (t) { return !(isUnitLikeType(t) && areTypesComparable(t, valueType)); });
|
|
@@ -142351,7 +142349,7 @@ var ts;
|
|
|
142351
142349
|
}
|
|
142352
142350
|
var parent = node.parent;
|
|
142353
142351
|
var typeChecker = program.getTypeChecker();
|
|
142354
|
-
if (node.kind === 161 /* SyntaxKind.OverrideKeyword */ || (ts.
|
|
142352
|
+
if (node.kind === 161 /* SyntaxKind.OverrideKeyword */ || (ts.isIdentifier(node) && ts.isJSDocOverrideTag(parent) && parent.tagName === node)) {
|
|
142355
142353
|
return getDefinitionFromOverriddenMember(typeChecker, node) || ts.emptyArray;
|
|
142356
142354
|
}
|
|
142357
142355
|
// Labels
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -108,7 +108,7 @@ var ts;
|
|
|
108
108
|
// The following is baselined as a literal template type without intervention
|
|
109
109
|
/** The version of the TypeScript compiler release */
|
|
110
110
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
111
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
111
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220915");
|
|
112
112
|
/* @internal */
|
|
113
113
|
var Comparison;
|
|
114
114
|
(function (Comparison) {
|
|
@@ -31827,6 +31827,7 @@ var ts;
|
|
|
31827
31827
|
_a[338 /* SyntaxKind.JSDocProtectedTag */] = forEachChildInJSDocTag,
|
|
31828
31828
|
_a[339 /* SyntaxKind.JSDocReadonlyTag */] = forEachChildInJSDocTag,
|
|
31829
31829
|
_a[334 /* SyntaxKind.JSDocDeprecatedTag */] = forEachChildInJSDocTag,
|
|
31830
|
+
_a[340 /* SyntaxKind.JSDocOverrideTag */] = forEachChildInJSDocTag,
|
|
31830
31831
|
_a[353 /* SyntaxKind.PartiallyEmittedExpression */] = forEachChildInPartiallyEmittedExpression,
|
|
31831
31832
|
_a);
|
|
31832
31833
|
// shared
|
|
@@ -66468,11 +66469,15 @@ var ts;
|
|
|
66468
66469
|
// parameter 'T extends 1 | 2', the intersection 'T & 1' should be reduced to '1' such that it doesn't
|
|
66469
66470
|
// appear to be comparable to '2'.
|
|
66470
66471
|
if (relation === comparableRelation && target.flags & 131068 /* TypeFlags.Primitive */) {
|
|
66471
|
-
var constraints = ts.sameMap(source.types,
|
|
66472
|
+
var constraints = ts.sameMap(source.types, function (t) { return t.flags & 465829888 /* TypeFlags.Instantiable */ ? getBaseConstraintOfType(t) || unknownType : t; });
|
|
66472
66473
|
if (constraints !== source.types) {
|
|
66473
66474
|
source = getIntersectionType(constraints);
|
|
66475
|
+
if (source.flags & 131072 /* TypeFlags.Never */) {
|
|
66476
|
+
return 0 /* Ternary.False */;
|
|
66477
|
+
}
|
|
66474
66478
|
if (!(source.flags & 2097152 /* TypeFlags.Intersection */)) {
|
|
66475
|
-
return isRelatedTo(source, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false)
|
|
66479
|
+
return isRelatedTo(source, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false) ||
|
|
66480
|
+
isRelatedTo(target, source, 1 /* RecursionFlags.Source */, /*reportErrors*/ false);
|
|
66476
66481
|
}
|
|
66477
66482
|
}
|
|
66478
66483
|
}
|
|
@@ -66790,7 +66795,7 @@ var ts;
|
|
|
66790
66795
|
// the type param can be compared with itself in the target (with the influence of its constraint to match other parts)
|
|
66791
66796
|
// For example, if `T extends 1 | 2` and `U extends 2 | 3` and we compare `T & U` to `T & U & (1 | 2 | 3)`
|
|
66792
66797
|
var constraint = getEffectiveConstraintOfIntersection(source.flags & 2097152 /* TypeFlags.Intersection */ ? source.types : [source], !!(target.flags & 1048576 /* TypeFlags.Union */));
|
|
66793
|
-
if (constraint && everyType(constraint, function (c) { return c !== source; })) { // Skip comparison if expansion contains the source itself
|
|
66798
|
+
if (constraint && !(constraint.flags & 131072 /* TypeFlags.Never */) && everyType(constraint, function (c) { return c !== source; })) { // Skip comparison if expansion contains the source itself
|
|
66794
66799
|
// TODO: Stack errors so we get a pyramid for the "normal" comparison above, _and_ a second for this
|
|
66795
66800
|
result = isRelatedTo(constraint, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState);
|
|
66796
66801
|
}
|
|
@@ -72122,7 +72127,7 @@ var ts;
|
|
|
72122
72127
|
var narrowedPropType = narrowType(propType);
|
|
72123
72128
|
return filterType(type, function (t) {
|
|
72124
72129
|
var discriminantType = getTypeOfPropertyOrIndexSignature(t, propName);
|
|
72125
|
-
return !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
|
|
72130
|
+
return !(discriminantType.flags & 131072 /* TypeFlags.Never */) && !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
|
|
72126
72131
|
});
|
|
72127
72132
|
}
|
|
72128
72133
|
function narrowTypeByDiscriminantProperty(type, access, operator, value, assumeTrue) {
|
|
@@ -72304,24 +72309,11 @@ var ts;
|
|
|
72304
72309
|
assumeTrue = !assumeTrue;
|
|
72305
72310
|
}
|
|
72306
72311
|
var valueType = getTypeOfExpression(value);
|
|
72307
|
-
|
|
72308
|
-
assumeTrue &&
|
|
72309
|
-
(operator === 36 /* SyntaxKind.EqualsEqualsEqualsToken */ || operator === 37 /* SyntaxKind.ExclamationEqualsEqualsToken */)) {
|
|
72310
|
-
if (valueType.flags & (131068 /* TypeFlags.Primitive */ | 67108864 /* TypeFlags.NonPrimitive */)) {
|
|
72311
|
-
return valueType;
|
|
72312
|
-
}
|
|
72313
|
-
if (valueType.flags & 524288 /* TypeFlags.Object */) {
|
|
72314
|
-
return nonPrimitiveType;
|
|
72315
|
-
}
|
|
72316
|
-
if (type.flags & 2 /* TypeFlags.Unknown */) {
|
|
72317
|
-
return type;
|
|
72318
|
-
}
|
|
72319
|
-
}
|
|
72312
|
+
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72320
72313
|
if (valueType.flags & 98304 /* TypeFlags.Nullable */) {
|
|
72321
72314
|
if (!strictNullChecks) {
|
|
72322
72315
|
return type;
|
|
72323
72316
|
}
|
|
72324
|
-
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72325
72317
|
var facts = doubleEquals ?
|
|
72326
72318
|
assumeTrue ? 262144 /* TypeFacts.EQUndefinedOrNull */ : 2097152 /* TypeFacts.NEUndefinedOrNull */ :
|
|
72327
72319
|
valueType.flags & 65536 /* TypeFlags.Null */ ?
|
|
@@ -72330,10 +72322,16 @@ var ts;
|
|
|
72330
72322
|
return getAdjustedTypeWithFacts(type, facts);
|
|
72331
72323
|
}
|
|
72332
72324
|
if (assumeTrue) {
|
|
72333
|
-
|
|
72334
|
-
|
|
72335
|
-
|
|
72336
|
-
|
|
72325
|
+
if (!doubleEquals && (type.flags & 2 /* TypeFlags.Unknown */ || someType(type, isEmptyAnonymousObjectType))) {
|
|
72326
|
+
if (valueType.flags & (131068 /* TypeFlags.Primitive */ | 67108864 /* TypeFlags.NonPrimitive */) || isEmptyAnonymousObjectType(valueType)) {
|
|
72327
|
+
return valueType;
|
|
72328
|
+
}
|
|
72329
|
+
if (valueType.flags & 524288 /* TypeFlags.Object */) {
|
|
72330
|
+
return nonPrimitiveType;
|
|
72331
|
+
}
|
|
72332
|
+
}
|
|
72333
|
+
var filteredType = filterType(type, function (t) { return areTypesComparable(t, valueType) || doubleEquals && isCoercibleUnderDoubleEquals(t, valueType); });
|
|
72334
|
+
return replacePrimitivesWithLiterals(filteredType, valueType);
|
|
72337
72335
|
}
|
|
72338
72336
|
if (isUnitType(valueType)) {
|
|
72339
72337
|
return filterType(type, function (t) { return !(isUnitLikeType(t) && areTypesComparable(t, valueType)); });
|
|
@@ -142769,7 +142767,7 @@ var ts;
|
|
|
142769
142767
|
}
|
|
142770
142768
|
var parent = node.parent;
|
|
142771
142769
|
var typeChecker = program.getTypeChecker();
|
|
142772
|
-
if (node.kind === 161 /* SyntaxKind.OverrideKeyword */ || (ts.
|
|
142770
|
+
if (node.kind === 161 /* SyntaxKind.OverrideKeyword */ || (ts.isIdentifier(node) && ts.isJSDocOverrideTag(parent) && parent.tagName === node)) {
|
|
142773
142771
|
return getDefinitionFromOverriddenMember(typeChecker, node) || ts.emptyArray;
|
|
142774
142772
|
}
|
|
142775
142773
|
// Labels
|
package/lib/typescript.js
CHANGED
|
@@ -99,7 +99,7 @@ var ts;
|
|
|
99
99
|
// The following is baselined as a literal template type without intervention
|
|
100
100
|
/** The version of the TypeScript compiler release */
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
102
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
102
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220915");
|
|
103
103
|
/* @internal */
|
|
104
104
|
var Comparison;
|
|
105
105
|
(function (Comparison) {
|
|
@@ -31818,6 +31818,7 @@ var ts;
|
|
|
31818
31818
|
_a[338 /* SyntaxKind.JSDocProtectedTag */] = forEachChildInJSDocTag,
|
|
31819
31819
|
_a[339 /* SyntaxKind.JSDocReadonlyTag */] = forEachChildInJSDocTag,
|
|
31820
31820
|
_a[334 /* SyntaxKind.JSDocDeprecatedTag */] = forEachChildInJSDocTag,
|
|
31821
|
+
_a[340 /* SyntaxKind.JSDocOverrideTag */] = forEachChildInJSDocTag,
|
|
31821
31822
|
_a[353 /* SyntaxKind.PartiallyEmittedExpression */] = forEachChildInPartiallyEmittedExpression,
|
|
31822
31823
|
_a);
|
|
31823
31824
|
// shared
|
|
@@ -66459,11 +66460,15 @@ var ts;
|
|
|
66459
66460
|
// parameter 'T extends 1 | 2', the intersection 'T & 1' should be reduced to '1' such that it doesn't
|
|
66460
66461
|
// appear to be comparable to '2'.
|
|
66461
66462
|
if (relation === comparableRelation && target.flags & 131068 /* TypeFlags.Primitive */) {
|
|
66462
|
-
var constraints = ts.sameMap(source.types,
|
|
66463
|
+
var constraints = ts.sameMap(source.types, function (t) { return t.flags & 465829888 /* TypeFlags.Instantiable */ ? getBaseConstraintOfType(t) || unknownType : t; });
|
|
66463
66464
|
if (constraints !== source.types) {
|
|
66464
66465
|
source = getIntersectionType(constraints);
|
|
66466
|
+
if (source.flags & 131072 /* TypeFlags.Never */) {
|
|
66467
|
+
return 0 /* Ternary.False */;
|
|
66468
|
+
}
|
|
66465
66469
|
if (!(source.flags & 2097152 /* TypeFlags.Intersection */)) {
|
|
66466
|
-
return isRelatedTo(source, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false)
|
|
66470
|
+
return isRelatedTo(source, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false) ||
|
|
66471
|
+
isRelatedTo(target, source, 1 /* RecursionFlags.Source */, /*reportErrors*/ false);
|
|
66467
66472
|
}
|
|
66468
66473
|
}
|
|
66469
66474
|
}
|
|
@@ -66781,7 +66786,7 @@ var ts;
|
|
|
66781
66786
|
// the type param can be compared with itself in the target (with the influence of its constraint to match other parts)
|
|
66782
66787
|
// For example, if `T extends 1 | 2` and `U extends 2 | 3` and we compare `T & U` to `T & U & (1 | 2 | 3)`
|
|
66783
66788
|
var constraint = getEffectiveConstraintOfIntersection(source.flags & 2097152 /* TypeFlags.Intersection */ ? source.types : [source], !!(target.flags & 1048576 /* TypeFlags.Union */));
|
|
66784
|
-
if (constraint && everyType(constraint, function (c) { return c !== source; })) { // Skip comparison if expansion contains the source itself
|
|
66789
|
+
if (constraint && !(constraint.flags & 131072 /* TypeFlags.Never */) && everyType(constraint, function (c) { return c !== source; })) { // Skip comparison if expansion contains the source itself
|
|
66785
66790
|
// TODO: Stack errors so we get a pyramid for the "normal" comparison above, _and_ a second for this
|
|
66786
66791
|
result = isRelatedTo(constraint, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState);
|
|
66787
66792
|
}
|
|
@@ -72113,7 +72118,7 @@ var ts;
|
|
|
72113
72118
|
var narrowedPropType = narrowType(propType);
|
|
72114
72119
|
return filterType(type, function (t) {
|
|
72115
72120
|
var discriminantType = getTypeOfPropertyOrIndexSignature(t, propName);
|
|
72116
|
-
return !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
|
|
72121
|
+
return !(discriminantType.flags & 131072 /* TypeFlags.Never */) && !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
|
|
72117
72122
|
});
|
|
72118
72123
|
}
|
|
72119
72124
|
function narrowTypeByDiscriminantProperty(type, access, operator, value, assumeTrue) {
|
|
@@ -72295,24 +72300,11 @@ var ts;
|
|
|
72295
72300
|
assumeTrue = !assumeTrue;
|
|
72296
72301
|
}
|
|
72297
72302
|
var valueType = getTypeOfExpression(value);
|
|
72298
|
-
|
|
72299
|
-
assumeTrue &&
|
|
72300
|
-
(operator === 36 /* SyntaxKind.EqualsEqualsEqualsToken */ || operator === 37 /* SyntaxKind.ExclamationEqualsEqualsToken */)) {
|
|
72301
|
-
if (valueType.flags & (131068 /* TypeFlags.Primitive */ | 67108864 /* TypeFlags.NonPrimitive */)) {
|
|
72302
|
-
return valueType;
|
|
72303
|
-
}
|
|
72304
|
-
if (valueType.flags & 524288 /* TypeFlags.Object */) {
|
|
72305
|
-
return nonPrimitiveType;
|
|
72306
|
-
}
|
|
72307
|
-
if (type.flags & 2 /* TypeFlags.Unknown */) {
|
|
72308
|
-
return type;
|
|
72309
|
-
}
|
|
72310
|
-
}
|
|
72303
|
+
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72311
72304
|
if (valueType.flags & 98304 /* TypeFlags.Nullable */) {
|
|
72312
72305
|
if (!strictNullChecks) {
|
|
72313
72306
|
return type;
|
|
72314
72307
|
}
|
|
72315
|
-
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72316
72308
|
var facts = doubleEquals ?
|
|
72317
72309
|
assumeTrue ? 262144 /* TypeFacts.EQUndefinedOrNull */ : 2097152 /* TypeFacts.NEUndefinedOrNull */ :
|
|
72318
72310
|
valueType.flags & 65536 /* TypeFlags.Null */ ?
|
|
@@ -72321,10 +72313,16 @@ var ts;
|
|
|
72321
72313
|
return getAdjustedTypeWithFacts(type, facts);
|
|
72322
72314
|
}
|
|
72323
72315
|
if (assumeTrue) {
|
|
72324
|
-
|
|
72325
|
-
|
|
72326
|
-
|
|
72327
|
-
|
|
72316
|
+
if (!doubleEquals && (type.flags & 2 /* TypeFlags.Unknown */ || someType(type, isEmptyAnonymousObjectType))) {
|
|
72317
|
+
if (valueType.flags & (131068 /* TypeFlags.Primitive */ | 67108864 /* TypeFlags.NonPrimitive */) || isEmptyAnonymousObjectType(valueType)) {
|
|
72318
|
+
return valueType;
|
|
72319
|
+
}
|
|
72320
|
+
if (valueType.flags & 524288 /* TypeFlags.Object */) {
|
|
72321
|
+
return nonPrimitiveType;
|
|
72322
|
+
}
|
|
72323
|
+
}
|
|
72324
|
+
var filteredType = filterType(type, function (t) { return areTypesComparable(t, valueType) || doubleEquals && isCoercibleUnderDoubleEquals(t, valueType); });
|
|
72325
|
+
return replacePrimitivesWithLiterals(filteredType, valueType);
|
|
72328
72326
|
}
|
|
72329
72327
|
if (isUnitType(valueType)) {
|
|
72330
72328
|
return filterType(type, function (t) { return !(isUnitLikeType(t) && areTypesComparable(t, valueType)); });
|
|
@@ -142760,7 +142758,7 @@ var ts;
|
|
|
142760
142758
|
}
|
|
142761
142759
|
var parent = node.parent;
|
|
142762
142760
|
var typeChecker = program.getTypeChecker();
|
|
142763
|
-
if (node.kind === 161 /* SyntaxKind.OverrideKeyword */ || (ts.
|
|
142761
|
+
if (node.kind === 161 /* SyntaxKind.OverrideKeyword */ || (ts.isIdentifier(node) && ts.isJSDocOverrideTag(parent) && parent.tagName === node)) {
|
|
142764
142762
|
return getDefinitionFromOverriddenMember(typeChecker, node) || ts.emptyArray;
|
|
142765
142763
|
}
|
|
142766
142764
|
// Labels
|
|
@@ -99,7 +99,7 @@ var ts;
|
|
|
99
99
|
// The following is baselined as a literal template type without intervention
|
|
100
100
|
/** The version of the TypeScript compiler release */
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
102
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
102
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220915");
|
|
103
103
|
/* @internal */
|
|
104
104
|
var Comparison;
|
|
105
105
|
(function (Comparison) {
|
|
@@ -31818,6 +31818,7 @@ var ts;
|
|
|
31818
31818
|
_a[338 /* SyntaxKind.JSDocProtectedTag */] = forEachChildInJSDocTag,
|
|
31819
31819
|
_a[339 /* SyntaxKind.JSDocReadonlyTag */] = forEachChildInJSDocTag,
|
|
31820
31820
|
_a[334 /* SyntaxKind.JSDocDeprecatedTag */] = forEachChildInJSDocTag,
|
|
31821
|
+
_a[340 /* SyntaxKind.JSDocOverrideTag */] = forEachChildInJSDocTag,
|
|
31821
31822
|
_a[353 /* SyntaxKind.PartiallyEmittedExpression */] = forEachChildInPartiallyEmittedExpression,
|
|
31822
31823
|
_a);
|
|
31823
31824
|
// shared
|
|
@@ -66459,11 +66460,15 @@ var ts;
|
|
|
66459
66460
|
// parameter 'T extends 1 | 2', the intersection 'T & 1' should be reduced to '1' such that it doesn't
|
|
66460
66461
|
// appear to be comparable to '2'.
|
|
66461
66462
|
if (relation === comparableRelation && target.flags & 131068 /* TypeFlags.Primitive */) {
|
|
66462
|
-
var constraints = ts.sameMap(source.types,
|
|
66463
|
+
var constraints = ts.sameMap(source.types, function (t) { return t.flags & 465829888 /* TypeFlags.Instantiable */ ? getBaseConstraintOfType(t) || unknownType : t; });
|
|
66463
66464
|
if (constraints !== source.types) {
|
|
66464
66465
|
source = getIntersectionType(constraints);
|
|
66466
|
+
if (source.flags & 131072 /* TypeFlags.Never */) {
|
|
66467
|
+
return 0 /* Ternary.False */;
|
|
66468
|
+
}
|
|
66465
66469
|
if (!(source.flags & 2097152 /* TypeFlags.Intersection */)) {
|
|
66466
|
-
return isRelatedTo(source, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false)
|
|
66470
|
+
return isRelatedTo(source, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false) ||
|
|
66471
|
+
isRelatedTo(target, source, 1 /* RecursionFlags.Source */, /*reportErrors*/ false);
|
|
66467
66472
|
}
|
|
66468
66473
|
}
|
|
66469
66474
|
}
|
|
@@ -66781,7 +66786,7 @@ var ts;
|
|
|
66781
66786
|
// the type param can be compared with itself in the target (with the influence of its constraint to match other parts)
|
|
66782
66787
|
// For example, if `T extends 1 | 2` and `U extends 2 | 3` and we compare `T & U` to `T & U & (1 | 2 | 3)`
|
|
66783
66788
|
var constraint = getEffectiveConstraintOfIntersection(source.flags & 2097152 /* TypeFlags.Intersection */ ? source.types : [source], !!(target.flags & 1048576 /* TypeFlags.Union */));
|
|
66784
|
-
if (constraint && everyType(constraint, function (c) { return c !== source; })) { // Skip comparison if expansion contains the source itself
|
|
66789
|
+
if (constraint && !(constraint.flags & 131072 /* TypeFlags.Never */) && everyType(constraint, function (c) { return c !== source; })) { // Skip comparison if expansion contains the source itself
|
|
66785
66790
|
// TODO: Stack errors so we get a pyramid for the "normal" comparison above, _and_ a second for this
|
|
66786
66791
|
result = isRelatedTo(constraint, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState);
|
|
66787
66792
|
}
|
|
@@ -72113,7 +72118,7 @@ var ts;
|
|
|
72113
72118
|
var narrowedPropType = narrowType(propType);
|
|
72114
72119
|
return filterType(type, function (t) {
|
|
72115
72120
|
var discriminantType = getTypeOfPropertyOrIndexSignature(t, propName);
|
|
72116
|
-
return !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
|
|
72121
|
+
return !(discriminantType.flags & 131072 /* TypeFlags.Never */) && !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
|
|
72117
72122
|
});
|
|
72118
72123
|
}
|
|
72119
72124
|
function narrowTypeByDiscriminantProperty(type, access, operator, value, assumeTrue) {
|
|
@@ -72295,24 +72300,11 @@ var ts;
|
|
|
72295
72300
|
assumeTrue = !assumeTrue;
|
|
72296
72301
|
}
|
|
72297
72302
|
var valueType = getTypeOfExpression(value);
|
|
72298
|
-
|
|
72299
|
-
assumeTrue &&
|
|
72300
|
-
(operator === 36 /* SyntaxKind.EqualsEqualsEqualsToken */ || operator === 37 /* SyntaxKind.ExclamationEqualsEqualsToken */)) {
|
|
72301
|
-
if (valueType.flags & (131068 /* TypeFlags.Primitive */ | 67108864 /* TypeFlags.NonPrimitive */)) {
|
|
72302
|
-
return valueType;
|
|
72303
|
-
}
|
|
72304
|
-
if (valueType.flags & 524288 /* TypeFlags.Object */) {
|
|
72305
|
-
return nonPrimitiveType;
|
|
72306
|
-
}
|
|
72307
|
-
if (type.flags & 2 /* TypeFlags.Unknown */) {
|
|
72308
|
-
return type;
|
|
72309
|
-
}
|
|
72310
|
-
}
|
|
72303
|
+
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72311
72304
|
if (valueType.flags & 98304 /* TypeFlags.Nullable */) {
|
|
72312
72305
|
if (!strictNullChecks) {
|
|
72313
72306
|
return type;
|
|
72314
72307
|
}
|
|
72315
|
-
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72316
72308
|
var facts = doubleEquals ?
|
|
72317
72309
|
assumeTrue ? 262144 /* TypeFacts.EQUndefinedOrNull */ : 2097152 /* TypeFacts.NEUndefinedOrNull */ :
|
|
72318
72310
|
valueType.flags & 65536 /* TypeFlags.Null */ ?
|
|
@@ -72321,10 +72313,16 @@ var ts;
|
|
|
72321
72313
|
return getAdjustedTypeWithFacts(type, facts);
|
|
72322
72314
|
}
|
|
72323
72315
|
if (assumeTrue) {
|
|
72324
|
-
|
|
72325
|
-
|
|
72326
|
-
|
|
72327
|
-
|
|
72316
|
+
if (!doubleEquals && (type.flags & 2 /* TypeFlags.Unknown */ || someType(type, isEmptyAnonymousObjectType))) {
|
|
72317
|
+
if (valueType.flags & (131068 /* TypeFlags.Primitive */ | 67108864 /* TypeFlags.NonPrimitive */) || isEmptyAnonymousObjectType(valueType)) {
|
|
72318
|
+
return valueType;
|
|
72319
|
+
}
|
|
72320
|
+
if (valueType.flags & 524288 /* TypeFlags.Object */) {
|
|
72321
|
+
return nonPrimitiveType;
|
|
72322
|
+
}
|
|
72323
|
+
}
|
|
72324
|
+
var filteredType = filterType(type, function (t) { return areTypesComparable(t, valueType) || doubleEquals && isCoercibleUnderDoubleEquals(t, valueType); });
|
|
72325
|
+
return replacePrimitivesWithLiterals(filteredType, valueType);
|
|
72328
72326
|
}
|
|
72329
72327
|
if (isUnitType(valueType)) {
|
|
72330
72328
|
return filterType(type, function (t) { return !(isUnitLikeType(t) && areTypesComparable(t, valueType)); });
|
|
@@ -142760,7 +142758,7 @@ var ts;
|
|
|
142760
142758
|
}
|
|
142761
142759
|
var parent = node.parent;
|
|
142762
142760
|
var typeChecker = program.getTypeChecker();
|
|
142763
|
-
if (node.kind === 161 /* SyntaxKind.OverrideKeyword */ || (ts.
|
|
142761
|
+
if (node.kind === 161 /* SyntaxKind.OverrideKeyword */ || (ts.isIdentifier(node) && ts.isJSDocOverrideTag(parent) && parent.tagName === node)) {
|
|
142764
142762
|
return getDefinitionFromOverriddenMember(typeChecker, node) || ts.emptyArray;
|
|
142765
142763
|
}
|
|
142766
142764
|
// Labels
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -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 = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
92
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220915");
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -31808,6 +31808,7 @@ var ts;
|
|
|
31808
31808
|
_a[338 /* SyntaxKind.JSDocProtectedTag */] = forEachChildInJSDocTag,
|
|
31809
31809
|
_a[339 /* SyntaxKind.JSDocReadonlyTag */] = forEachChildInJSDocTag,
|
|
31810
31810
|
_a[334 /* SyntaxKind.JSDocDeprecatedTag */] = forEachChildInJSDocTag,
|
|
31811
|
+
_a[340 /* SyntaxKind.JSDocOverrideTag */] = forEachChildInJSDocTag,
|
|
31811
31812
|
_a[353 /* SyntaxKind.PartiallyEmittedExpression */] = forEachChildInPartiallyEmittedExpression,
|
|
31812
31813
|
_a);
|
|
31813
31814
|
// shared
|
|
@@ -66449,11 +66450,15 @@ var ts;
|
|
|
66449
66450
|
// parameter 'T extends 1 | 2', the intersection 'T & 1' should be reduced to '1' such that it doesn't
|
|
66450
66451
|
// appear to be comparable to '2'.
|
|
66451
66452
|
if (relation === comparableRelation && target.flags & 131068 /* TypeFlags.Primitive */) {
|
|
66452
|
-
var constraints = ts.sameMap(source.types,
|
|
66453
|
+
var constraints = ts.sameMap(source.types, function (t) { return t.flags & 465829888 /* TypeFlags.Instantiable */ ? getBaseConstraintOfType(t) || unknownType : t; });
|
|
66453
66454
|
if (constraints !== source.types) {
|
|
66454
66455
|
source = getIntersectionType(constraints);
|
|
66456
|
+
if (source.flags & 131072 /* TypeFlags.Never */) {
|
|
66457
|
+
return 0 /* Ternary.False */;
|
|
66458
|
+
}
|
|
66455
66459
|
if (!(source.flags & 2097152 /* TypeFlags.Intersection */)) {
|
|
66456
|
-
return isRelatedTo(source, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false)
|
|
66460
|
+
return isRelatedTo(source, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false) ||
|
|
66461
|
+
isRelatedTo(target, source, 1 /* RecursionFlags.Source */, /*reportErrors*/ false);
|
|
66457
66462
|
}
|
|
66458
66463
|
}
|
|
66459
66464
|
}
|
|
@@ -66771,7 +66776,7 @@ var ts;
|
|
|
66771
66776
|
// the type param can be compared with itself in the target (with the influence of its constraint to match other parts)
|
|
66772
66777
|
// For example, if `T extends 1 | 2` and `U extends 2 | 3` and we compare `T & U` to `T & U & (1 | 2 | 3)`
|
|
66773
66778
|
var constraint = getEffectiveConstraintOfIntersection(source.flags & 2097152 /* TypeFlags.Intersection */ ? source.types : [source], !!(target.flags & 1048576 /* TypeFlags.Union */));
|
|
66774
|
-
if (constraint && everyType(constraint, function (c) { return c !== source; })) { // Skip comparison if expansion contains the source itself
|
|
66779
|
+
if (constraint && !(constraint.flags & 131072 /* TypeFlags.Never */) && everyType(constraint, function (c) { return c !== source; })) { // Skip comparison if expansion contains the source itself
|
|
66775
66780
|
// TODO: Stack errors so we get a pyramid for the "normal" comparison above, _and_ a second for this
|
|
66776
66781
|
result = isRelatedTo(constraint, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState);
|
|
66777
66782
|
}
|
|
@@ -72103,7 +72108,7 @@ var ts;
|
|
|
72103
72108
|
var narrowedPropType = narrowType(propType);
|
|
72104
72109
|
return filterType(type, function (t) {
|
|
72105
72110
|
var discriminantType = getTypeOfPropertyOrIndexSignature(t, propName);
|
|
72106
|
-
return !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
|
|
72111
|
+
return !(discriminantType.flags & 131072 /* TypeFlags.Never */) && !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
|
|
72107
72112
|
});
|
|
72108
72113
|
}
|
|
72109
72114
|
function narrowTypeByDiscriminantProperty(type, access, operator, value, assumeTrue) {
|
|
@@ -72285,24 +72290,11 @@ var ts;
|
|
|
72285
72290
|
assumeTrue = !assumeTrue;
|
|
72286
72291
|
}
|
|
72287
72292
|
var valueType = getTypeOfExpression(value);
|
|
72288
|
-
|
|
72289
|
-
assumeTrue &&
|
|
72290
|
-
(operator === 36 /* SyntaxKind.EqualsEqualsEqualsToken */ || operator === 37 /* SyntaxKind.ExclamationEqualsEqualsToken */)) {
|
|
72291
|
-
if (valueType.flags & (131068 /* TypeFlags.Primitive */ | 67108864 /* TypeFlags.NonPrimitive */)) {
|
|
72292
|
-
return valueType;
|
|
72293
|
-
}
|
|
72294
|
-
if (valueType.flags & 524288 /* TypeFlags.Object */) {
|
|
72295
|
-
return nonPrimitiveType;
|
|
72296
|
-
}
|
|
72297
|
-
if (type.flags & 2 /* TypeFlags.Unknown */) {
|
|
72298
|
-
return type;
|
|
72299
|
-
}
|
|
72300
|
-
}
|
|
72293
|
+
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72301
72294
|
if (valueType.flags & 98304 /* TypeFlags.Nullable */) {
|
|
72302
72295
|
if (!strictNullChecks) {
|
|
72303
72296
|
return type;
|
|
72304
72297
|
}
|
|
72305
|
-
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72306
72298
|
var facts = doubleEquals ?
|
|
72307
72299
|
assumeTrue ? 262144 /* TypeFacts.EQUndefinedOrNull */ : 2097152 /* TypeFacts.NEUndefinedOrNull */ :
|
|
72308
72300
|
valueType.flags & 65536 /* TypeFlags.Null */ ?
|
|
@@ -72311,10 +72303,16 @@ var ts;
|
|
|
72311
72303
|
return getAdjustedTypeWithFacts(type, facts);
|
|
72312
72304
|
}
|
|
72313
72305
|
if (assumeTrue) {
|
|
72314
|
-
|
|
72315
|
-
|
|
72316
|
-
|
|
72317
|
-
|
|
72306
|
+
if (!doubleEquals && (type.flags & 2 /* TypeFlags.Unknown */ || someType(type, isEmptyAnonymousObjectType))) {
|
|
72307
|
+
if (valueType.flags & (131068 /* TypeFlags.Primitive */ | 67108864 /* TypeFlags.NonPrimitive */) || isEmptyAnonymousObjectType(valueType)) {
|
|
72308
|
+
return valueType;
|
|
72309
|
+
}
|
|
72310
|
+
if (valueType.flags & 524288 /* TypeFlags.Object */) {
|
|
72311
|
+
return nonPrimitiveType;
|
|
72312
|
+
}
|
|
72313
|
+
}
|
|
72314
|
+
var filteredType = filterType(type, function (t) { return areTypesComparable(t, valueType) || doubleEquals && isCoercibleUnderDoubleEquals(t, valueType); });
|
|
72315
|
+
return replacePrimitivesWithLiterals(filteredType, valueType);
|
|
72318
72316
|
}
|
|
72319
72317
|
if (isUnitType(valueType)) {
|
|
72320
72318
|
return filterType(type, function (t) { return !(isUnitLikeType(t) && areTypesComparable(t, valueType)); });
|
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
"An_abstract_accessor_cannot_have_an_implementation_1318": "抽象访问器不能有实现。",
|
|
187
187
|
"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010": "可访问性修饰符不能与专用标识符一起使用。",
|
|
188
188
|
"An_accessor_cannot_have_type_parameters_1094": "访问器不能具有类型参数。",
|
|
189
|
+
"An_accessor_property_cannot_be_declared_optional_1276": "\"accessor\" 属性不能声明为可选。",
|
|
189
190
|
"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234": "只允许在文件的顶层中使用环境模块声明。",
|
|
190
191
|
"An_argument_for_0_was_not_provided_6210": "未提供 \"{0}\" 的自变量。",
|
|
191
192
|
"An_argument_matching_this_binding_pattern_was_not_provided_6211": "未提供与此绑定模式匹配的自变量。",
|
|
@@ -1112,6 +1113,7 @@
|
|
|
1112
1113
|
"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "项目引用不能形成环形图。检测到循环: {0}",
|
|
1113
1114
|
"Projects_6255": "项目",
|
|
1114
1115
|
"Projects_in_this_build_Colon_0_6355": "此生成中的项目: {0}",
|
|
1116
|
+
"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "只有在面向 ECMAScript 2015 及更高版本时,才可使用带有 \"accessor\" 修饰符的属性。",
|
|
1115
1117
|
"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "属性“{0}”不能具有初始化表杰式,因为它标记为摘要。",
|
|
1116
1118
|
"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "属性“{0}”来自索引签名,因此必须使用[“{0}”]访问它。",
|
|
1117
1119
|
"Property_0_does_not_exist_on_type_1_2339": "类型“{1}”上不存在属性“{0}”。",
|
|
@@ -1761,6 +1763,7 @@
|
|
|
1761
1763
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010": "缺少返回类型批注的“{0}”隐式具有“{1}”返回类型。",
|
|
1762
1764
|
"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055": "缺少返回类型批注的 \"{0}\" 隐式具有 \"{1}\" 产出类型。",
|
|
1763
1765
|
"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "\"abstract\" 修饰符仅可出现在类、方法或属性声明中。",
|
|
1766
|
+
"accessor_modifier_can_only_appear_on_a_property_declaration_1275": "\"accessor\" 修饰符只能出现在属性声明中。",
|
|
1764
1767
|
"and_here_6204": "并在这里。",
|
|
1765
1768
|
"arguments_cannot_be_referenced_in_property_initializers_2815": "无法在属性初始化表达式中引用 \"arguments\"。",
|
|
1766
1769
|
"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "“auto”: 将带有导入、导出、import.meta、jsx (带有 jsx: react-jsx)或 esm 格式(带模块: node16+)的文件视为模块。",
|
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.9.0-dev.
|
|
5
|
+
"version": "4.9.0-dev.20220915",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|