typescript 4.9.0-dev.20220914 → 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 +19 -22
- package/lib/tsserver.js +19 -22
- package/lib/tsserverlibrary.js +19 -22
- package/lib/typescript.js +19 -22
- package/lib/typescriptServices.js +19 -22
- package/lib/typingsInstaller.js +19 -22
- 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 :
|
|
@@ -55485,11 +55485,15 @@ var ts;
|
|
|
55485
55485
|
return typeRelatedToEachType(source, target, reportErrors, 2);
|
|
55486
55486
|
}
|
|
55487
55487
|
if (relation === comparableRelation && target.flags & 131068) {
|
|
55488
|
-
var constraints = ts.sameMap(source.types,
|
|
55488
|
+
var constraints = ts.sameMap(source.types, function (t) { return t.flags & 465829888 ? getBaseConstraintOfType(t) || unknownType : t; });
|
|
55489
55489
|
if (constraints !== source.types) {
|
|
55490
55490
|
source = getIntersectionType(constraints);
|
|
55491
|
+
if (source.flags & 131072) {
|
|
55492
|
+
return 0;
|
|
55493
|
+
}
|
|
55491
55494
|
if (!(source.flags & 2097152)) {
|
|
55492
|
-
return isRelatedTo(source, target, 1, false)
|
|
55495
|
+
return isRelatedTo(source, target, 1, false) ||
|
|
55496
|
+
isRelatedTo(target, source, 1, false);
|
|
55493
55497
|
}
|
|
55494
55498
|
}
|
|
55495
55499
|
}
|
|
@@ -55750,7 +55754,7 @@ var ts;
|
|
|
55750
55754
|
var result = structuredTypeRelatedToWorker(source, target, reportErrors, intersectionState, saveErrorInfo);
|
|
55751
55755
|
if (!result && (source.flags & 2097152 || source.flags & 262144 && target.flags & 1048576)) {
|
|
55752
55756
|
var constraint = getEffectiveConstraintOfIntersection(source.flags & 2097152 ? source.types : [source], !!(target.flags & 1048576));
|
|
55753
|
-
if (constraint && everyType(constraint, function (c) { return c !== source; })) {
|
|
55757
|
+
if (constraint && !(constraint.flags & 131072) && everyType(constraint, function (c) { return c !== source; })) {
|
|
55754
55758
|
result = isRelatedTo(constraint, target, 1, false, undefined, intersectionState);
|
|
55755
55759
|
}
|
|
55756
55760
|
}
|
|
@@ -60512,24 +60516,11 @@ var ts;
|
|
|
60512
60516
|
assumeTrue = !assumeTrue;
|
|
60513
60517
|
}
|
|
60514
60518
|
var valueType = getTypeOfExpression(value);
|
|
60515
|
-
|
|
60516
|
-
assumeTrue &&
|
|
60517
|
-
(operator === 36 || operator === 37)) {
|
|
60518
|
-
if (valueType.flags & (131068 | 67108864)) {
|
|
60519
|
-
return valueType;
|
|
60520
|
-
}
|
|
60521
|
-
if (valueType.flags & 524288) {
|
|
60522
|
-
return nonPrimitiveType;
|
|
60523
|
-
}
|
|
60524
|
-
if (type.flags & 2) {
|
|
60525
|
-
return type;
|
|
60526
|
-
}
|
|
60527
|
-
}
|
|
60519
|
+
var doubleEquals = operator === 34 || operator === 35;
|
|
60528
60520
|
if (valueType.flags & 98304) {
|
|
60529
60521
|
if (!strictNullChecks) {
|
|
60530
60522
|
return type;
|
|
60531
60523
|
}
|
|
60532
|
-
var doubleEquals = operator === 34 || operator === 35;
|
|
60533
60524
|
var facts = doubleEquals ?
|
|
60534
60525
|
assumeTrue ? 262144 : 2097152 :
|
|
60535
60526
|
valueType.flags & 65536 ?
|
|
@@ -60538,10 +60529,16 @@ var ts;
|
|
|
60538
60529
|
return getAdjustedTypeWithFacts(type, facts);
|
|
60539
60530
|
}
|
|
60540
60531
|
if (assumeTrue) {
|
|
60541
|
-
|
|
60542
|
-
|
|
60543
|
-
|
|
60544
|
-
|
|
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);
|
|
60545
60542
|
}
|
|
60546
60543
|
if (isUnitType(valueType)) {
|
|
60547
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) {
|
|
@@ -66470,11 +66470,15 @@ var ts;
|
|
|
66470
66470
|
// parameter 'T extends 1 | 2', the intersection 'T & 1' should be reduced to '1' such that it doesn't
|
|
66471
66471
|
// appear to be comparable to '2'.
|
|
66472
66472
|
if (relation === comparableRelation && target.flags & 131068 /* TypeFlags.Primitive */) {
|
|
66473
|
-
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; });
|
|
66474
66474
|
if (constraints !== source.types) {
|
|
66475
66475
|
source = getIntersectionType(constraints);
|
|
66476
|
+
if (source.flags & 131072 /* TypeFlags.Never */) {
|
|
66477
|
+
return 0 /* Ternary.False */;
|
|
66478
|
+
}
|
|
66476
66479
|
if (!(source.flags & 2097152 /* TypeFlags.Intersection */)) {
|
|
66477
|
-
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);
|
|
66478
66482
|
}
|
|
66479
66483
|
}
|
|
66480
66484
|
}
|
|
@@ -66792,7 +66796,7 @@ var ts;
|
|
|
66792
66796
|
// the type param can be compared with itself in the target (with the influence of its constraint to match other parts)
|
|
66793
66797
|
// For example, if `T extends 1 | 2` and `U extends 2 | 3` and we compare `T & U` to `T & U & (1 | 2 | 3)`
|
|
66794
66798
|
var constraint = getEffectiveConstraintOfIntersection(source.flags & 2097152 /* TypeFlags.Intersection */ ? source.types : [source], !!(target.flags & 1048576 /* TypeFlags.Union */));
|
|
66795
|
-
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
|
|
66796
66800
|
// TODO: Stack errors so we get a pyramid for the "normal" comparison above, _and_ a second for this
|
|
66797
66801
|
result = isRelatedTo(constraint, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState);
|
|
66798
66802
|
}
|
|
@@ -72306,24 +72310,11 @@ var ts;
|
|
|
72306
72310
|
assumeTrue = !assumeTrue;
|
|
72307
72311
|
}
|
|
72308
72312
|
var valueType = getTypeOfExpression(value);
|
|
72309
|
-
|
|
72310
|
-
assumeTrue &&
|
|
72311
|
-
(operator === 36 /* SyntaxKind.EqualsEqualsEqualsToken */ || operator === 37 /* SyntaxKind.ExclamationEqualsEqualsToken */)) {
|
|
72312
|
-
if (valueType.flags & (131068 /* TypeFlags.Primitive */ | 67108864 /* TypeFlags.NonPrimitive */)) {
|
|
72313
|
-
return valueType;
|
|
72314
|
-
}
|
|
72315
|
-
if (valueType.flags & 524288 /* TypeFlags.Object */) {
|
|
72316
|
-
return nonPrimitiveType;
|
|
72317
|
-
}
|
|
72318
|
-
if (type.flags & 2 /* TypeFlags.Unknown */) {
|
|
72319
|
-
return type;
|
|
72320
|
-
}
|
|
72321
|
-
}
|
|
72313
|
+
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72322
72314
|
if (valueType.flags & 98304 /* TypeFlags.Nullable */) {
|
|
72323
72315
|
if (!strictNullChecks) {
|
|
72324
72316
|
return type;
|
|
72325
72317
|
}
|
|
72326
|
-
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72327
72318
|
var facts = doubleEquals ?
|
|
72328
72319
|
assumeTrue ? 262144 /* TypeFacts.EQUndefinedOrNull */ : 2097152 /* TypeFacts.NEUndefinedOrNull */ :
|
|
72329
72320
|
valueType.flags & 65536 /* TypeFlags.Null */ ?
|
|
@@ -72332,10 +72323,16 @@ var ts;
|
|
|
72332
72323
|
return getAdjustedTypeWithFacts(type, facts);
|
|
72333
72324
|
}
|
|
72334
72325
|
if (assumeTrue) {
|
|
72335
|
-
|
|
72336
|
-
|
|
72337
|
-
|
|
72338
|
-
|
|
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);
|
|
72339
72336
|
}
|
|
72340
72337
|
if (isUnitType(valueType)) {
|
|
72341
72338
|
return filterType(type, function (t) { return !(isUnitLikeType(t) && areTypesComparable(t, valueType)); });
|
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) {
|
|
@@ -66469,11 +66469,15 @@ var ts;
|
|
|
66469
66469
|
// parameter 'T extends 1 | 2', the intersection 'T & 1' should be reduced to '1' such that it doesn't
|
|
66470
66470
|
// appear to be comparable to '2'.
|
|
66471
66471
|
if (relation === comparableRelation && target.flags & 131068 /* TypeFlags.Primitive */) {
|
|
66472
|
-
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; });
|
|
66473
66473
|
if (constraints !== source.types) {
|
|
66474
66474
|
source = getIntersectionType(constraints);
|
|
66475
|
+
if (source.flags & 131072 /* TypeFlags.Never */) {
|
|
66476
|
+
return 0 /* Ternary.False */;
|
|
66477
|
+
}
|
|
66475
66478
|
if (!(source.flags & 2097152 /* TypeFlags.Intersection */)) {
|
|
66476
|
-
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);
|
|
66477
66481
|
}
|
|
66478
66482
|
}
|
|
66479
66483
|
}
|
|
@@ -66791,7 +66795,7 @@ var ts;
|
|
|
66791
66795
|
// the type param can be compared with itself in the target (with the influence of its constraint to match other parts)
|
|
66792
66796
|
// For example, if `T extends 1 | 2` and `U extends 2 | 3` and we compare `T & U` to `T & U & (1 | 2 | 3)`
|
|
66793
66797
|
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
|
|
66798
|
+
if (constraint && !(constraint.flags & 131072 /* TypeFlags.Never */) && everyType(constraint, function (c) { return c !== source; })) { // Skip comparison if expansion contains the source itself
|
|
66795
66799
|
// TODO: Stack errors so we get a pyramid for the "normal" comparison above, _and_ a second for this
|
|
66796
66800
|
result = isRelatedTo(constraint, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState);
|
|
66797
66801
|
}
|
|
@@ -72305,24 +72309,11 @@ var ts;
|
|
|
72305
72309
|
assumeTrue = !assumeTrue;
|
|
72306
72310
|
}
|
|
72307
72311
|
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
|
-
}
|
|
72312
|
+
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72321
72313
|
if (valueType.flags & 98304 /* TypeFlags.Nullable */) {
|
|
72322
72314
|
if (!strictNullChecks) {
|
|
72323
72315
|
return type;
|
|
72324
72316
|
}
|
|
72325
|
-
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72326
72317
|
var facts = doubleEquals ?
|
|
72327
72318
|
assumeTrue ? 262144 /* TypeFacts.EQUndefinedOrNull */ : 2097152 /* TypeFacts.NEUndefinedOrNull */ :
|
|
72328
72319
|
valueType.flags & 65536 /* TypeFlags.Null */ ?
|
|
@@ -72331,10 +72322,16 @@ var ts;
|
|
|
72331
72322
|
return getAdjustedTypeWithFacts(type, facts);
|
|
72332
72323
|
}
|
|
72333
72324
|
if (assumeTrue) {
|
|
72334
|
-
|
|
72335
|
-
|
|
72336
|
-
|
|
72337
|
-
|
|
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);
|
|
72338
72335
|
}
|
|
72339
72336
|
if (isUnitType(valueType)) {
|
|
72340
72337
|
return filterType(type, function (t) { return !(isUnitLikeType(t) && areTypesComparable(t, valueType)); });
|
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) {
|
|
@@ -66460,11 +66460,15 @@ var ts;
|
|
|
66460
66460
|
// parameter 'T extends 1 | 2', the intersection 'T & 1' should be reduced to '1' such that it doesn't
|
|
66461
66461
|
// appear to be comparable to '2'.
|
|
66462
66462
|
if (relation === comparableRelation && target.flags & 131068 /* TypeFlags.Primitive */) {
|
|
66463
|
-
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; });
|
|
66464
66464
|
if (constraints !== source.types) {
|
|
66465
66465
|
source = getIntersectionType(constraints);
|
|
66466
|
+
if (source.flags & 131072 /* TypeFlags.Never */) {
|
|
66467
|
+
return 0 /* Ternary.False */;
|
|
66468
|
+
}
|
|
66466
66469
|
if (!(source.flags & 2097152 /* TypeFlags.Intersection */)) {
|
|
66467
|
-
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);
|
|
66468
66472
|
}
|
|
66469
66473
|
}
|
|
66470
66474
|
}
|
|
@@ -66782,7 +66786,7 @@ var ts;
|
|
|
66782
66786
|
// the type param can be compared with itself in the target (with the influence of its constraint to match other parts)
|
|
66783
66787
|
// For example, if `T extends 1 | 2` and `U extends 2 | 3` and we compare `T & U` to `T & U & (1 | 2 | 3)`
|
|
66784
66788
|
var constraint = getEffectiveConstraintOfIntersection(source.flags & 2097152 /* TypeFlags.Intersection */ ? source.types : [source], !!(target.flags & 1048576 /* TypeFlags.Union */));
|
|
66785
|
-
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
|
|
66786
66790
|
// TODO: Stack errors so we get a pyramid for the "normal" comparison above, _and_ a second for this
|
|
66787
66791
|
result = isRelatedTo(constraint, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState);
|
|
66788
66792
|
}
|
|
@@ -72296,24 +72300,11 @@ var ts;
|
|
|
72296
72300
|
assumeTrue = !assumeTrue;
|
|
72297
72301
|
}
|
|
72298
72302
|
var valueType = getTypeOfExpression(value);
|
|
72299
|
-
|
|
72300
|
-
assumeTrue &&
|
|
72301
|
-
(operator === 36 /* SyntaxKind.EqualsEqualsEqualsToken */ || operator === 37 /* SyntaxKind.ExclamationEqualsEqualsToken */)) {
|
|
72302
|
-
if (valueType.flags & (131068 /* TypeFlags.Primitive */ | 67108864 /* TypeFlags.NonPrimitive */)) {
|
|
72303
|
-
return valueType;
|
|
72304
|
-
}
|
|
72305
|
-
if (valueType.flags & 524288 /* TypeFlags.Object */) {
|
|
72306
|
-
return nonPrimitiveType;
|
|
72307
|
-
}
|
|
72308
|
-
if (type.flags & 2 /* TypeFlags.Unknown */) {
|
|
72309
|
-
return type;
|
|
72310
|
-
}
|
|
72311
|
-
}
|
|
72303
|
+
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72312
72304
|
if (valueType.flags & 98304 /* TypeFlags.Nullable */) {
|
|
72313
72305
|
if (!strictNullChecks) {
|
|
72314
72306
|
return type;
|
|
72315
72307
|
}
|
|
72316
|
-
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72317
72308
|
var facts = doubleEquals ?
|
|
72318
72309
|
assumeTrue ? 262144 /* TypeFacts.EQUndefinedOrNull */ : 2097152 /* TypeFacts.NEUndefinedOrNull */ :
|
|
72319
72310
|
valueType.flags & 65536 /* TypeFlags.Null */ ?
|
|
@@ -72322,10 +72313,16 @@ var ts;
|
|
|
72322
72313
|
return getAdjustedTypeWithFacts(type, facts);
|
|
72323
72314
|
}
|
|
72324
72315
|
if (assumeTrue) {
|
|
72325
|
-
|
|
72326
|
-
|
|
72327
|
-
|
|
72328
|
-
|
|
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);
|
|
72329
72326
|
}
|
|
72330
72327
|
if (isUnitType(valueType)) {
|
|
72331
72328
|
return filterType(type, function (t) { return !(isUnitLikeType(t) && areTypesComparable(t, valueType)); });
|
|
@@ -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) {
|
|
@@ -66460,11 +66460,15 @@ var ts;
|
|
|
66460
66460
|
// parameter 'T extends 1 | 2', the intersection 'T & 1' should be reduced to '1' such that it doesn't
|
|
66461
66461
|
// appear to be comparable to '2'.
|
|
66462
66462
|
if (relation === comparableRelation && target.flags & 131068 /* TypeFlags.Primitive */) {
|
|
66463
|
-
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; });
|
|
66464
66464
|
if (constraints !== source.types) {
|
|
66465
66465
|
source = getIntersectionType(constraints);
|
|
66466
|
+
if (source.flags & 131072 /* TypeFlags.Never */) {
|
|
66467
|
+
return 0 /* Ternary.False */;
|
|
66468
|
+
}
|
|
66466
66469
|
if (!(source.flags & 2097152 /* TypeFlags.Intersection */)) {
|
|
66467
|
-
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);
|
|
66468
66472
|
}
|
|
66469
66473
|
}
|
|
66470
66474
|
}
|
|
@@ -66782,7 +66786,7 @@ var ts;
|
|
|
66782
66786
|
// the type param can be compared with itself in the target (with the influence of its constraint to match other parts)
|
|
66783
66787
|
// For example, if `T extends 1 | 2` and `U extends 2 | 3` and we compare `T & U` to `T & U & (1 | 2 | 3)`
|
|
66784
66788
|
var constraint = getEffectiveConstraintOfIntersection(source.flags & 2097152 /* TypeFlags.Intersection */ ? source.types : [source], !!(target.flags & 1048576 /* TypeFlags.Union */));
|
|
66785
|
-
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
|
|
66786
66790
|
// TODO: Stack errors so we get a pyramid for the "normal" comparison above, _and_ a second for this
|
|
66787
66791
|
result = isRelatedTo(constraint, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState);
|
|
66788
66792
|
}
|
|
@@ -72296,24 +72300,11 @@ var ts;
|
|
|
72296
72300
|
assumeTrue = !assumeTrue;
|
|
72297
72301
|
}
|
|
72298
72302
|
var valueType = getTypeOfExpression(value);
|
|
72299
|
-
|
|
72300
|
-
assumeTrue &&
|
|
72301
|
-
(operator === 36 /* SyntaxKind.EqualsEqualsEqualsToken */ || operator === 37 /* SyntaxKind.ExclamationEqualsEqualsToken */)) {
|
|
72302
|
-
if (valueType.flags & (131068 /* TypeFlags.Primitive */ | 67108864 /* TypeFlags.NonPrimitive */)) {
|
|
72303
|
-
return valueType;
|
|
72304
|
-
}
|
|
72305
|
-
if (valueType.flags & 524288 /* TypeFlags.Object */) {
|
|
72306
|
-
return nonPrimitiveType;
|
|
72307
|
-
}
|
|
72308
|
-
if (type.flags & 2 /* TypeFlags.Unknown */) {
|
|
72309
|
-
return type;
|
|
72310
|
-
}
|
|
72311
|
-
}
|
|
72303
|
+
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72312
72304
|
if (valueType.flags & 98304 /* TypeFlags.Nullable */) {
|
|
72313
72305
|
if (!strictNullChecks) {
|
|
72314
72306
|
return type;
|
|
72315
72307
|
}
|
|
72316
|
-
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72317
72308
|
var facts = doubleEquals ?
|
|
72318
72309
|
assumeTrue ? 262144 /* TypeFacts.EQUndefinedOrNull */ : 2097152 /* TypeFacts.NEUndefinedOrNull */ :
|
|
72319
72310
|
valueType.flags & 65536 /* TypeFlags.Null */ ?
|
|
@@ -72322,10 +72313,16 @@ var ts;
|
|
|
72322
72313
|
return getAdjustedTypeWithFacts(type, facts);
|
|
72323
72314
|
}
|
|
72324
72315
|
if (assumeTrue) {
|
|
72325
|
-
|
|
72326
|
-
|
|
72327
|
-
|
|
72328
|
-
|
|
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);
|
|
72329
72326
|
}
|
|
72330
72327
|
if (isUnitType(valueType)) {
|
|
72331
72328
|
return filterType(type, function (t) { return !(isUnitLikeType(t) && areTypesComparable(t, valueType)); });
|
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) {
|
|
@@ -66450,11 +66450,15 @@ var ts;
|
|
|
66450
66450
|
// parameter 'T extends 1 | 2', the intersection 'T & 1' should be reduced to '1' such that it doesn't
|
|
66451
66451
|
// appear to be comparable to '2'.
|
|
66452
66452
|
if (relation === comparableRelation && target.flags & 131068 /* TypeFlags.Primitive */) {
|
|
66453
|
-
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; });
|
|
66454
66454
|
if (constraints !== source.types) {
|
|
66455
66455
|
source = getIntersectionType(constraints);
|
|
66456
|
+
if (source.flags & 131072 /* TypeFlags.Never */) {
|
|
66457
|
+
return 0 /* Ternary.False */;
|
|
66458
|
+
}
|
|
66456
66459
|
if (!(source.flags & 2097152 /* TypeFlags.Intersection */)) {
|
|
66457
|
-
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);
|
|
66458
66462
|
}
|
|
66459
66463
|
}
|
|
66460
66464
|
}
|
|
@@ -66772,7 +66776,7 @@ var ts;
|
|
|
66772
66776
|
// the type param can be compared with itself in the target (with the influence of its constraint to match other parts)
|
|
66773
66777
|
// For example, if `T extends 1 | 2` and `U extends 2 | 3` and we compare `T & U` to `T & U & (1 | 2 | 3)`
|
|
66774
66778
|
var constraint = getEffectiveConstraintOfIntersection(source.flags & 2097152 /* TypeFlags.Intersection */ ? source.types : [source], !!(target.flags & 1048576 /* TypeFlags.Union */));
|
|
66775
|
-
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
|
|
66776
66780
|
// TODO: Stack errors so we get a pyramid for the "normal" comparison above, _and_ a second for this
|
|
66777
66781
|
result = isRelatedTo(constraint, target, 1 /* RecursionFlags.Source */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState);
|
|
66778
66782
|
}
|
|
@@ -72286,24 +72290,11 @@ var ts;
|
|
|
72286
72290
|
assumeTrue = !assumeTrue;
|
|
72287
72291
|
}
|
|
72288
72292
|
var valueType = getTypeOfExpression(value);
|
|
72289
|
-
|
|
72290
|
-
assumeTrue &&
|
|
72291
|
-
(operator === 36 /* SyntaxKind.EqualsEqualsEqualsToken */ || operator === 37 /* SyntaxKind.ExclamationEqualsEqualsToken */)) {
|
|
72292
|
-
if (valueType.flags & (131068 /* TypeFlags.Primitive */ | 67108864 /* TypeFlags.NonPrimitive */)) {
|
|
72293
|
-
return valueType;
|
|
72294
|
-
}
|
|
72295
|
-
if (valueType.flags & 524288 /* TypeFlags.Object */) {
|
|
72296
|
-
return nonPrimitiveType;
|
|
72297
|
-
}
|
|
72298
|
-
if (type.flags & 2 /* TypeFlags.Unknown */) {
|
|
72299
|
-
return type;
|
|
72300
|
-
}
|
|
72301
|
-
}
|
|
72293
|
+
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72302
72294
|
if (valueType.flags & 98304 /* TypeFlags.Nullable */) {
|
|
72303
72295
|
if (!strictNullChecks) {
|
|
72304
72296
|
return type;
|
|
72305
72297
|
}
|
|
72306
|
-
var doubleEquals = operator === 34 /* SyntaxKind.EqualsEqualsToken */ || operator === 35 /* SyntaxKind.ExclamationEqualsToken */;
|
|
72307
72298
|
var facts = doubleEquals ?
|
|
72308
72299
|
assumeTrue ? 262144 /* TypeFacts.EQUndefinedOrNull */ : 2097152 /* TypeFacts.NEUndefinedOrNull */ :
|
|
72309
72300
|
valueType.flags & 65536 /* TypeFlags.Null */ ?
|
|
@@ -72312,10 +72303,16 @@ var ts;
|
|
|
72312
72303
|
return getAdjustedTypeWithFacts(type, facts);
|
|
72313
72304
|
}
|
|
72314
72305
|
if (assumeTrue) {
|
|
72315
|
-
|
|
72316
|
-
|
|
72317
|
-
|
|
72318
|
-
|
|
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);
|
|
72319
72316
|
}
|
|
72320
72317
|
if (isUnitType(valueType)) {
|
|
72321
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": [
|