typescript 4.8.0-dev.20220510 → 4.8.0-dev.20220513
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cs/diagnosticMessages.generated.json +2 -0
- package/lib/de/diagnosticMessages.generated.json +2 -0
- package/lib/es/diagnosticMessages.generated.json +2 -0
- package/lib/fr/diagnosticMessages.generated.json +2 -0
- package/lib/it/diagnosticMessages.generated.json +2 -0
- package/lib/ja/diagnosticMessages.generated.json +2 -0
- package/lib/ko/diagnosticMessages.generated.json +2 -0
- package/lib/lib.es2020.intl.d.ts +29 -5
- package/lib/lib.es2021.intl.d.ts +1 -1
- package/lib/pl/diagnosticMessages.generated.json +2 -0
- package/lib/pt-br/diagnosticMessages.generated.json +2 -0
- package/lib/ru/diagnosticMessages.generated.json +2 -0
- package/lib/tr/diagnosticMessages.generated.json +2 -0
- package/lib/tsc.js +77 -20
- package/lib/tsserver.js +84 -33
- package/lib/tsserverlibrary.d.ts +6 -5
- package/lib/tsserverlibrary.js +84 -33
- package/lib/typescript.d.ts +6 -5
- package/lib/typescript.js +84 -23
- package/lib/typescriptServices.d.ts +6 -5
- package/lib/typescriptServices.js +84 -23
- package/lib/typingsInstaller.js +83 -22
- package/lib/zh-cn/diagnosticMessages.generated.json +1 -0
- package/lib/zh-tw/diagnosticMessages.generated.json +2 -0
- package/package.json +1 -1
|
@@ -893,6 +893,7 @@
|
|
|
893
893
|
"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Vytvořte klíč jenom ze zpětných řetězců místo z řetězců, čísel nebo symbolů (možnost ze starší verze).",
|
|
894
894
|
"Make_super_call_the_first_statement_in_the_constructor_90002": "Nastavit volání metody super() jako první příkaz v konstruktoru",
|
|
895
895
|
"Mapped_object_type_implicitly_has_an_any_template_type_7039": "Typu mapovaného objektu má implicitně typ šablony any.",
|
|
896
|
+
"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Porovnává se ve výchozím nastavení se vzorem zahrnutí **/*.",
|
|
896
897
|
"Matched_by_include_pattern_0_in_1_1407": "Porovnáváno podle vzoru zahrnutí {0} v {1}",
|
|
897
898
|
"Member_0_implicitly_has_an_1_type_7008": "Člen {0} má implicitně typ {1}.",
|
|
898
899
|
"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "Člen {0} má implicitně typ {1}, ale je možné, že lepší typ by se vyvodil z použití.",
|
|
@@ -1199,6 +1200,7 @@
|
|
|
1199
1200
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Požadované parametry typu nemůžou být až za volitelnými parametry typu.",
|
|
1200
1201
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "Překlad pro modul {0} se našel v mezipaměti umístění {1}.",
|
|
1201
1202
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "Překlad pro direktivu odkazu na typ {0} se našel v mezipaměti umístění {1}.",
|
|
1203
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Kontrolní výrazy režimu řešení jsou nestabilní. Ke ztlumení této chyby použijte noční TypeScript. Zkuste provést aktualizaci pomocí příkazu npm install -D typescript@next.",
|
|
1202
1204
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Režimy řešení se podporují pouze v případě, že hodnota moduleResolution je node16 nebo nodenext.",
|
|
1203
1205
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "keyof překládejte jen na názvy vlastností s hodnotami typu string (ne čísla ani symboly).",
|
|
1204
1206
|
"Resolving_module_0_from_1_6086": "======== Překládá se modul {0} z {1}. ========",
|
|
@@ -893,6 +893,7 @@
|
|
|
893
893
|
"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Stellen Sie ein, dass keyof nur Zeichenfolgen, anstelle von Zeichenfolgen, Zahlen oder Symbolen zurückgibt. Legacy-Option.",
|
|
894
894
|
"Make_super_call_the_first_statement_in_the_constructor_90002": "super()-Aufruf als erste Anweisung im Konstruktor festlegen",
|
|
895
895
|
"Mapped_object_type_implicitly_has_an_any_template_type_7039": "Der zugeordnete Objekttyp weist implizit einen any-Vorlagentyp auf.",
|
|
896
|
+
"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Standardmäßig zugeordnetes Includemuster „**/*“",
|
|
896
897
|
"Matched_by_include_pattern_0_in_1_1407": "Abgeglichen mit dem include-Muster \"{0}\" in \"{1}\"",
|
|
897
898
|
"Member_0_implicitly_has_an_1_type_7008": "Der Member \"{0}\" weist implizit den Typ \"{1}\" auf.",
|
|
898
899
|
"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "Member \"{0}\" weist implizit einen Typ \"{1}\" auf, möglicherweise kann jedoch ein besserer Typ aus der Syntax abgeleitet werden.",
|
|
@@ -1199,6 +1200,7 @@
|
|
|
1199
1200
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Erforderliche Typparameter dürfen nicht auf optionale Typparameter folgen.",
|
|
1200
1201
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "Die Auflösung für das Modul \"{0}\" wurde im Cache des Standorts \"{1}\" gefunden.",
|
|
1201
1202
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "Die Auflösung für die Typreferenzanweisung \"{0}\" wurde im Cache des Standorts \"{1}\" gefunden.",
|
|
1203
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Assertionen im Auflösungsmodus sind instabil. Verwenden Sie „Nightly TypeScript“, um diesen Fehler zu beheben. Versuchen Sie die Aktualisierung mit „npm install -D typescript@next“ durchzuführen..",
|
|
1202
1204
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Auflösungsmodi werden nur unterstützt, wenn „moduleResolution“ „node16“ oder „nodenext“ ist.",
|
|
1203
1205
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "\"keyof\" darf nur in Eigenschaftennamen mit Zeichenfolgenwert aufgelöst werden (keine Ziffern oder Symbole).",
|
|
1204
1206
|
"Resolving_module_0_from_1_6086": "======== Das Modul \"{0}\" aus \"{1}\" wird aufgelöst. ========",
|
|
@@ -893,6 +893,7 @@
|
|
|
893
893
|
"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Haga que keyof solo devuelva cadenas en lugar de cadenas, números o símbolos. Opción heredada.",
|
|
894
894
|
"Make_super_call_the_first_statement_in_the_constructor_90002": "Hacer que la llamada a \"super()\" sea la primera instrucción del constructor",
|
|
895
895
|
"Mapped_object_type_implicitly_has_an_any_template_type_7039": "El tipo de objeto asignado tiene implícitamente un tipo de plantilla \"any\".",
|
|
896
|
+
"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "La coincidencia de forma predeterminada incluye el patrón '**/*'",
|
|
896
897
|
"Matched_by_include_pattern_0_in_1_1407": "Coincidencia con el patrón de inclusión \"{0}\" en \"{1}\"",
|
|
897
898
|
"Member_0_implicitly_has_an_1_type_7008": "El miembro '{0}' tiene un tipo '{1}' implícitamente.",
|
|
898
899
|
"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "El miembro \"{0}\" tiene un tipo \"{1}\" de forma implícita, pero se puede inferir un tipo más adecuado a partir del uso.",
|
|
@@ -1199,6 +1200,7 @@
|
|
|
1199
1200
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Los parámetros de tipo requeridos pueden no seguir parámetros de tipo opcionales.",
|
|
1200
1201
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "La resolución del módulo \"{0}\" se encontró en la memoria caché de la ubicación \"{1}\".",
|
|
1201
1202
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "La resolución de la directiva de referencia de tipo \"{0}\" se encontró en la memoria caché de la ubicación \"{1}\".",
|
|
1203
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Las aserciones del modo de resolución son inestables. Use TypeScript nocturno para silenciar este error. Intente actualizar con \"npm install -D typescript@next\".",
|
|
1202
1204
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Los modos de resolución solo se admiten cuando \"moduleResolution\" es \"node16\" o \"nodenext\".",
|
|
1203
1205
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Resolver \"keyof\" exclusivamente como nombres de propiedad con valores de cadena (sin números ni símbolos).",
|
|
1204
1206
|
"Resolving_module_0_from_1_6086": "======== Resolviendo el módulo '{0}' de '{1}'. ========",
|
|
@@ -893,6 +893,7 @@
|
|
|
893
893
|
"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Faites en sorte que keyof retourne uniquement des chaînes au lieu de chaînes, de nombres ou de symboles. Option héritée.",
|
|
894
894
|
"Make_super_call_the_first_statement_in_the_constructor_90002": "Faire de l'appel à 'super()' la première instruction du constructeur",
|
|
895
895
|
"Mapped_object_type_implicitly_has_an_any_template_type_7039": "Le type d'objet mappé a implicitement un type de modèle 'any'.",
|
|
896
|
+
"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Mise en correspondance par défaut du modèle include '**/*'",
|
|
896
897
|
"Matched_by_include_pattern_0_in_1_1407": "Correspond au modèle include '{0}' dans '{1}'",
|
|
897
898
|
"Member_0_implicitly_has_an_1_type_7008": "Le membre '{0}' possède implicitement un type '{1}'.",
|
|
898
899
|
"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "Le membre '{0}' a implicitement un type '{1}', mais il est possible de déduire un meilleur type à partir de l'utilisation.",
|
|
@@ -1199,6 +1200,7 @@
|
|
|
1199
1200
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Les paramètres de type obligatoires ne peuvent pas être placés à la suite des paramètres de type optionnels.",
|
|
1200
1201
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "La résolution du module '{0}' a été trouvée dans le cache à l'emplacement '{1}'.",
|
|
1201
1202
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "La résolution de la directive de référence de type '{0}' a été trouvée dans le cache à l'emplacement '{1}'.",
|
|
1203
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Les assertions du mode de résolution sont instables. Utilisez le TypeScript nocturne pour désactiver cette erreur. Essayez de mettre à jour à l’aide de « npm install -D typescript@next ».",
|
|
1202
1204
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Les modes de résolution sont pris en charge uniquement lorsque 'moduleResolution' est 'node16' ou 'nodenext'.",
|
|
1203
1205
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Résoudre 'keyof' en noms de propriétés de valeur chaîne uniquement (aucun nombre ou symbole).",
|
|
1204
1206
|
"Resolving_module_0_from_1_6086": "======== Résolution du module '{0}' à partir de '{1}'. ========",
|
|
@@ -893,6 +893,7 @@
|
|
|
893
893
|
"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Imposta keyof in modo che restituisca solo stringhe invece di stringhe, numeri o simboli. Opzione legacy.",
|
|
894
894
|
"Make_super_call_the_first_statement_in_the_constructor_90002": "Impostare la chiamata a 'super()' come prima istruzione nel costruttore",
|
|
895
895
|
"Mapped_object_type_implicitly_has_an_any_template_type_7039": "Il tipo di oggetto con mapping contiene implicitamente un tipo di modello 'any'.",
|
|
896
|
+
"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Corrispondente per impostazione predefinita al criterio di inclusione '**/*'",
|
|
896
897
|
"Matched_by_include_pattern_0_in_1_1407": "Corrispondenza tramite criterio di inclusione '{0}' in '{1}'",
|
|
897
898
|
"Member_0_implicitly_has_an_1_type_7008": "Il membro '{0}' contiene implicitamente un tipo '{1}'.",
|
|
898
899
|
"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "Il membro '{0}' include implicitamente un tipo '{1}', ma è possibile dedurre un tipo migliore dall'utilizzo.",
|
|
@@ -1199,6 +1200,7 @@
|
|
|
1199
1200
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "I parametri di tipo obbligatori potrebbero non seguire i parametri di tipo facoltativi.",
|
|
1200
1201
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "La risoluzione per il modulo '{0}' è stata trovata nella cache dal percorso '{1}'.",
|
|
1201
1202
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "La risoluzione per la direttiva '{0}' del riferimento al tipo è stata trovata nella cache dal percorso '{1}'.",
|
|
1203
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Le asserzioni della modalità di risoluzione sono instabili. Usare TypeScript notturno per disattivare questo errore. Provare ad eseguire l'aggiornamento con 'npm install -D typescript@next'.",
|
|
1202
1204
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Le modalità di risoluzione sono supportate solo quando 'moduleResolution' è 'node16' o 'nodenext'.",
|
|
1203
1205
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Risolvere 'keyof' solo in nomi di proprietà con valori stringa (senza numeri o simboli).",
|
|
1204
1206
|
"Resolving_module_0_from_1_6086": "======== Risoluzione del modulo '{0}' da '{1}'. ========",
|
|
@@ -893,6 +893,7 @@
|
|
|
893
893
|
"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "keyof により、文字列、数字、記号の代わりに、文字列のみが返されるようにします。レガシ オプションです。",
|
|
894
894
|
"Make_super_call_the_first_statement_in_the_constructor_90002": "'super()' 呼び出しをコンストラクター内の最初のステートメントにする",
|
|
895
895
|
"Mapped_object_type_implicitly_has_an_any_template_type_7039": "マップされたオブジェクト型のテンプレートの型は暗黙的に 'any' になります。",
|
|
896
|
+
"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "既定で一致するインクルード パターン '**/*'",
|
|
896
897
|
"Matched_by_include_pattern_0_in_1_1407": "'{1}' のインクルード パターン '{0}' に一致しています",
|
|
897
898
|
"Member_0_implicitly_has_an_1_type_7008": "メンバー '{0}' の型は暗黙的に '{1}' になります。",
|
|
898
899
|
"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "メンバー '{0}' の型は暗黙的に '{1}' ですが、使い方からより良い型を推論する場合があります。",
|
|
@@ -1199,6 +1200,7 @@
|
|
|
1199
1200
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "必須の型パラメーターの後に、オプションの型パラメーターを続けることはできません。",
|
|
1200
1201
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "モジュール '{0}' の解決が場所 '{1}' のキャッシュに見つかりました。",
|
|
1201
1202
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "種類参照指令 '{0}' の解決策は、場所 '{1}' のキャッシュには見つかりませんでした。",
|
|
1203
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "解決モード アサーションが不安定です。夜間の TypeScript を使用して、このエラーを無音にします。'npm install -D typescript@next' で更新してみてください。",
|
|
1202
1204
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "解決モードは、`moduleResolution` が `node16` または `nodenext` の場合にのみサポートされます。",
|
|
1203
1205
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "'keyof' を文字列値のプロパティ名のみに解決します (数字または記号なし)。",
|
|
1204
1206
|
"Resolving_module_0_from_1_6086": "======== '{1}' からモジュール '{0}' を解決しています。========",
|
|
@@ -893,6 +893,7 @@
|
|
|
893
893
|
"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "keyof가 문자열, 숫자 또는 기호 대신 문자열만 반환하도록 합니다. 레거시 옵션입니다.",
|
|
894
894
|
"Make_super_call_the_first_statement_in_the_constructor_90002": "생성자의 첫 번째 문을 'super()'로 호출",
|
|
895
895
|
"Mapped_object_type_implicitly_has_an_any_template_type_7039": "매핑된 개체 형식에는 'any' 템플릿 형식이 암시적으로 포함됩니다.",
|
|
896
|
+
"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "기본적으로 일치되는 포함 패턴 '**/*'",
|
|
896
897
|
"Matched_by_include_pattern_0_in_1_1407": "'{1}'의 포함 패턴 '{0}'(으)로 일치되었습니다.",
|
|
897
898
|
"Member_0_implicitly_has_an_1_type_7008": "'{0}' 멤버에는 암시적으로 '{1}' 형식이 포함됩니다.",
|
|
898
899
|
"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "'{0}' 멤버는 암시적으로 '{1}' 형식이지만, 사용량에서 더 나은 형식을 유추할 수 있습니다.",
|
|
@@ -1199,6 +1200,7 @@
|
|
|
1199
1200
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "필수 형식 매개 변수는 선택적 형식 매개 변수 다음에 올 수 없습니다.",
|
|
1200
1201
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "'{0}' 모듈에 대한 해결을 '{1}' 위치의 캐시에서 찾았습니다.",
|
|
1201
1202
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "'{1}' 위치의 캐시에서 형식 참조 지시어 '{0}'에 대한 해상도가 발견되었습니다.",
|
|
1203
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "해결 모드 어설션이 불안정합니다. 야간 TypeScript를 사용하여 이 오류를 차단하십시오. 'npm install -D typescript@next'로 업데이트해 보세요.",
|
|
1202
1204
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "해상도 모드는 `moduleResolution`이 `node16` 또는 `nodenext`인 경우에만 지원됩니다.",
|
|
1203
1205
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "문자열 값 속성 이름에 대해서만 'keyof'를 확인합니다(숫자나 기호 아님).",
|
|
1204
1206
|
"Resolving_module_0_from_1_6086": "======== '{1}'에서 '{0}' 모듈을 확인하는 중입니다. ========",
|
package/lib/lib.es2020.intl.d.ts
CHANGED
|
@@ -50,6 +50,25 @@ declare namespace Intl {
|
|
|
50
50
|
| "second"
|
|
51
51
|
| "seconds";
|
|
52
52
|
|
|
53
|
+
/**
|
|
54
|
+
* Value of the `unit` property in objects returned by
|
|
55
|
+
* `Intl.RelativeTimeFormat.prototype.formatToParts()`. `formatToParts` and
|
|
56
|
+
* `format` methods accept either singular or plural unit names as input,
|
|
57
|
+
* but `formatToParts` only outputs singular (e.g. "day") not plural (e.g.
|
|
58
|
+
* "days").
|
|
59
|
+
*
|
|
60
|
+
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
|
|
61
|
+
*/
|
|
62
|
+
type RelativeTimeFormatUnitSingular =
|
|
63
|
+
| "year"
|
|
64
|
+
| "quarter"
|
|
65
|
+
| "month"
|
|
66
|
+
| "week"
|
|
67
|
+
| "day"
|
|
68
|
+
| "hour"
|
|
69
|
+
| "minute"
|
|
70
|
+
| "second";
|
|
71
|
+
|
|
53
72
|
/**
|
|
54
73
|
* The locale matching algorithm to use.
|
|
55
74
|
*
|
|
@@ -120,11 +139,16 @@ declare namespace Intl {
|
|
|
120
139
|
*
|
|
121
140
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
|
|
122
141
|
*/
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
142
|
+
type RelativeTimeFormatPart =
|
|
143
|
+
| {
|
|
144
|
+
type: "literal";
|
|
145
|
+
value: string;
|
|
146
|
+
}
|
|
147
|
+
| {
|
|
148
|
+
type: Exclude<NumberFormatPartTypes, "literal">;
|
|
149
|
+
value: string;
|
|
150
|
+
unit: RelativeTimeFormatUnitSingular;
|
|
151
|
+
};
|
|
128
152
|
|
|
129
153
|
interface RelativeTimeFormat {
|
|
130
154
|
/**
|
package/lib/lib.es2021.intl.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ declare namespace Intl {
|
|
|
25
25
|
dateStyle?: "full" | "long" | "medium" | "short" | undefined;
|
|
26
26
|
timeStyle?: "full" | "long" | "medium" | "short" | undefined;
|
|
27
27
|
dayPeriod?: "narrow" | "short" | "long" | undefined;
|
|
28
|
-
fractionalSecondDigits?:
|
|
28
|
+
fractionalSecondDigits?: 1 | 2 | 3 | undefined;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
interface DateTimeRangeFormatPart extends DateTimeFormatPart {
|
|
@@ -893,6 +893,7 @@
|
|
|
893
893
|
"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Określ, że element keyof ma zwracać tylko ciągi zamiast ciągów, liczb i symboli. Starsza opcja.",
|
|
894
894
|
"Make_super_call_the_first_statement_in_the_constructor_90002": "Ustaw wywołanie „super()” jako pierwszą instrukcję w konstruktorze",
|
|
895
895
|
"Mapped_object_type_implicitly_has_an_any_template_type_7039": "Zmapowany typ obiektu niejawnie ma typ szablonu „any”.",
|
|
896
|
+
"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Dopasowywane domyślnie do wzorca dołączania „**/*”",
|
|
896
897
|
"Matched_by_include_pattern_0_in_1_1407": "Zgodne z wzorcem dołączania „{0}” w elemencie „{1}”",
|
|
897
898
|
"Member_0_implicitly_has_an_1_type_7008": "Dla składowej „{0}” niejawnie określono typ „{1}”.",
|
|
898
899
|
"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "Element członkowski „{0}” niejawnie ma typ „{1}”, ale lepszy typ można wywnioskować na podstawie użycia.",
|
|
@@ -1199,6 +1200,7 @@
|
|
|
1199
1200
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Wymagane parametry typu mogą nie być zgodne z opcjonalnymi parametrami typu.",
|
|
1200
1201
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "Znaleziono rozwiązanie dla modułu „{0}” w pamięci podręcznej z lokalizacji „{1}”.",
|
|
1201
1202
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "Znaleziono rozwiązanie dla dyrektywy odwołania do typu „{0}” w pamięci podręcznej z lokalizacji „{1}”.",
|
|
1203
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Asercje trybu rozdzielczości są niestabilne. Użyj nocnego języka TypeScript, aby wyciszyć ten błąd. Spróbuj zaktualizować za pomocą „npm install -D typescript@next”.",
|
|
1202
1204
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Tryby rozdzielczości są obsługiwane tylko wtedy, gdy element „moduleResolution” ma wartość „node16” lub „nodenext”.",
|
|
1203
1205
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Rozwiązuj elementy „keyof” tylko do nazw właściwości mających jako wartość ciągi (nie liczby czy symbole).",
|
|
1204
1206
|
"Resolving_module_0_from_1_6086": "======== Rozpoznawanie modułu „{0}” na podstawie „{1}”. ========",
|
|
@@ -893,6 +893,7 @@
|
|
|
893
893
|
"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Fazer com que o keyof retorne apenas cadeias de caracteres, números ou símbolos. Opção herdada.",
|
|
894
894
|
"Make_super_call_the_first_statement_in_the_constructor_90002": "Tornar a chamada 'super()' a primeira instrução no construtor",
|
|
895
895
|
"Mapped_object_type_implicitly_has_an_any_template_type_7039": "O tipo de objeto mapeado implicitamente tem um tipo de modelo 'any'.",
|
|
896
|
+
"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Correspondido por padrão de inclusão padrão '**/*'",
|
|
896
897
|
"Matched_by_include_pattern_0_in_1_1407": "Correspondência pelo padrão de inclusão '{0}' em '{1}'",
|
|
897
898
|
"Member_0_implicitly_has_an_1_type_7008": "O membro '{0}' implicitamente tem um tipo '{1}'.",
|
|
898
899
|
"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "O membro '{0}' implicitamente tem um tipo '{1}', mas um tipo melhor pode ser inferido do uso.",
|
|
@@ -1199,6 +1200,7 @@
|
|
|
1199
1200
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Os parâmetros de tipo necessários podem não seguir os parâmetros de tipo opcionais.",
|
|
1200
1201
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "A resolução para o módulo '{0}' foi encontrada no cache do local '{1}'.",
|
|
1201
1202
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "A resolução para a diretiva de referência de tipo '{0}' foi encontrada no cache a partir do local '{1}'.",
|
|
1203
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "As declarações do modo de resolução são instável. Use o TypeScript noturno para silenciar esse erro. Tente atualizar com 'npm install -D typescript@next'.",
|
|
1202
1204
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Os modos de resolução são suportados apenas quando `moduleResolution` for `node16` ou `nodenext`.",
|
|
1203
1205
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Resolva 'keyof' somente para nomes de propriedades com valores de cadeia de caracteres (sem números nem símbolos).",
|
|
1204
1206
|
"Resolving_module_0_from_1_6086": "======== Resolvendo módulo '{0}' de '{1}'. ========",
|
|
@@ -893,6 +893,7 @@
|
|
|
893
893
|
"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Сделать так, чтобы keyof возвращал только строки, а не строки, числа или символы. Устаревший вариант.",
|
|
894
894
|
"Make_super_call_the_first_statement_in_the_constructor_90002": "Сделайте вызов \"super()\" первой инструкцией в конструкторе",
|
|
895
895
|
"Mapped_object_type_implicitly_has_an_any_template_type_7039": "Сопоставленный объект неявно имеет тип шаблона \"любой\".",
|
|
896
|
+
"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Сопоставление по умолчанию включает шаблон '**/*'",
|
|
896
897
|
"Matched_by_include_pattern_0_in_1_1407": "Соответствует шаблону включения \"{0}\" в \"{1}\".",
|
|
897
898
|
"Member_0_implicitly_has_an_1_type_7008": "Элемент \"{0}\" неявно имеет тип \"{1}\".",
|
|
898
899
|
"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "Член \"{0}\" неявно имеет тип \"{1}\", но из использования можно определить более подходящий тип.",
|
|
@@ -1199,6 +1200,7 @@
|
|
|
1199
1200
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Обязательные параметры типа не могут следовать за необязательными параметрами типа.",
|
|
1200
1201
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "Разрешение для модуля \"{0}\" найдено в кэше из расположения \"{1}\".",
|
|
1201
1202
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "Разрешение для директивы ссылки на тип \"{0}\" обнаружено в кэше из расположения \"{1}\".",
|
|
1203
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Утверждения в режиме разрешения нестабильны. Используйте ночную сборку TypeScript, чтобы скрыть эту ошибку. Для обновления попробуйте использовать команду \"npm install -D typescript@next\".",
|
|
1202
1204
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Режимы разрешения поддерживаются только тогда, когда ''moduleResolution'' равно ''node16'' или ''nodenext''.",
|
|
1203
1205
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Разрешать \"keyof\" только в имена свойств со строковым значением (не числа и не символы).",
|
|
1204
1206
|
"Resolving_module_0_from_1_6086": "======== Идет разрешение модуля \"{0}\" из \"{1}\". ========",
|
|
@@ -893,6 +893,7 @@
|
|
|
893
893
|
"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Dize, sayı veya simge yerine yalnızca dönüş dizelerinin anahtarını oluşturun. Eski seçenek.",
|
|
894
894
|
"Make_super_call_the_first_statement_in_the_constructor_90002": "Oluşturucudaki ilk deyime 'super()' tarafından çağrı yapılmasını sağla",
|
|
895
895
|
"Mapped_object_type_implicitly_has_an_any_template_type_7039": "Eşleştirilmiş nesne türü örtük olarak 'any' şablon türüne sahip.",
|
|
896
|
+
"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Varsayılan '**/*' ekleme deseniyle eşleşti",
|
|
896
897
|
"Matched_by_include_pattern_0_in_1_1407": "'{1}' içindeki '{0}' ekleme desenine göre eşleştirildi",
|
|
897
898
|
"Member_0_implicitly_has_an_1_type_7008": "'{0}' üyesi örtük olarak '{1}' türüne sahip.",
|
|
898
899
|
"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "'{0}' üyesi örtük olarak bir '{1}' türüne sahip ancak kullanımdan daha iyi bir tür çıkarsanabilir.",
|
|
@@ -1199,6 +1200,7 @@
|
|
|
1199
1200
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Gerekli tür parametreleri, isteğe bağlı tür parametrelerini takip edemez.",
|
|
1200
1201
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "'{0}' modülünün çözümü '{1}' konumundaki önbellekte bulundu.",
|
|
1201
1202
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "'{0}' tür başvurusu yönergesinin çözümlemesi '{1}' konumundaki önbellekte bulundu.",
|
|
1203
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Çözme modu onaylamaları kararlı değil. Bu hatayı sessize almak için gecelik TypeScript kullanın. 'npm install -D typescript@next' ile güncelleştirmeyi deneyin.",
|
|
1202
1204
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Çözünürlük modları yalnızca `moduleResolution` değeri `node16` veya `nodenext` olduğunda desteklenir.",
|
|
1203
1205
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "'Keyof' değerini yalnızca dize değerli özellik adlarına (sayılar veya simgeler olmadan) çözümleyin.",
|
|
1204
1206
|
"Resolving_module_0_from_1_6086": "======== '{0}' modülü '{1}' öğesinden çözümleniyor. ========",
|
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.8";
|
|
72
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220513";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -5326,6 +5326,7 @@ var ts;
|
|
|
5326
5326
|
String_literal_expected: diag(1141, ts.DiagnosticCategory.Error, "String_literal_expected_1141", "String literal expected."),
|
|
5327
5327
|
Line_break_not_permitted_here: diag(1142, ts.DiagnosticCategory.Error, "Line_break_not_permitted_here_1142", "Line break not permitted here."),
|
|
5328
5328
|
or_expected: diag(1144, ts.DiagnosticCategory.Error, "or_expected_1144", "'{' or ';' expected."),
|
|
5329
|
+
or_JSX_element_expected: diag(1145, ts.DiagnosticCategory.Error, "or_JSX_element_expected_1145", "'{' or JSX element expected."),
|
|
5329
5330
|
Declaration_expected: diag(1146, ts.DiagnosticCategory.Error, "Declaration_expected_1146", "Declaration expected."),
|
|
5330
5331
|
Import_declarations_in_a_namespace_cannot_reference_a_module: diag(1147, ts.DiagnosticCategory.Error, "Import_declarations_in_a_namespace_cannot_reference_a_module_1147", "Import declarations in a namespace cannot reference a module."),
|
|
5331
5332
|
Cannot_use_imports_exports_or_module_augmentations_when_module_is_none: diag(1148, ts.DiagnosticCategory.Error, "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148", "Cannot use imports, exports, or module augmentations when '--module' is 'none'."),
|
|
@@ -5578,6 +5579,7 @@ var ts;
|
|
|
5578
5579
|
resolution_mode_can_only_be_set_for_type_only_imports: diag(1454, ts.DiagnosticCategory.Error, "resolution_mode_can_only_be_set_for_type_only_imports_1454", "`resolution-mode` can only be set for type-only imports."),
|
|
5579
5580
|
resolution_mode_is_the_only_valid_key_for_type_import_assertions: diag(1455, ts.DiagnosticCategory.Error, "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455", "`resolution-mode` is the only valid key for type import assertions."),
|
|
5580
5581
|
Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require: diag(1456, ts.DiagnosticCategory.Error, "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456", "Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),
|
|
5582
|
+
Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk: diag(1457, ts.DiagnosticCategory.Message, "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457", "Matched by default include pattern '**/*'"),
|
|
5581
5583
|
The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output: diag(1470, ts.DiagnosticCategory.Error, "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470", "The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),
|
|
5582
5584
|
Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead: diag(1471, ts.DiagnosticCategory.Error, "Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471", "Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead."),
|
|
5583
5585
|
catch_or_finally_expected: diag(1472, ts.DiagnosticCategory.Error, "catch_or_finally_expected_1472", "'catch' or 'finally' expected."),
|
|
@@ -6077,6 +6079,7 @@ var ts;
|
|
|
6077
6079
|
Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls: diag(2836, ts.DiagnosticCategory.Error, "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836", "Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),
|
|
6078
6080
|
Import_assertion_values_must_be_string_literal_expressions: diag(2837, ts.DiagnosticCategory.Error, "Import_assertion_values_must_be_string_literal_expressions_2837", "Import assertion values must be string literal expressions."),
|
|
6079
6081
|
All_declarations_of_0_must_have_identical_constraints: diag(2838, ts.DiagnosticCategory.Error, "All_declarations_of_0_must_have_identical_constraints_2838", "All declarations of '{0}' must have identical constraints."),
|
|
6082
|
+
This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value: diag(2839, ts.DiagnosticCategory.Error, "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839", "This condition will always return '{0}' since JavaScript compares objects by reference, not value."),
|
|
6080
6083
|
Import_declaration_0_is_using_private_name_1: diag(4000, ts.DiagnosticCategory.Error, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
|
|
6081
6084
|
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
|
|
6082
6085
|
Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
|
|
@@ -9902,6 +9905,18 @@ var ts;
|
|
|
9902
9905
|
return isLiteralKind(node.kind);
|
|
9903
9906
|
}
|
|
9904
9907
|
ts.isLiteralExpression = isLiteralExpression;
|
|
9908
|
+
function isLiteralExpressionOfObject(node) {
|
|
9909
|
+
switch (node.kind) {
|
|
9910
|
+
case 205:
|
|
9911
|
+
case 204:
|
|
9912
|
+
case 13:
|
|
9913
|
+
case 213:
|
|
9914
|
+
case 226:
|
|
9915
|
+
return true;
|
|
9916
|
+
}
|
|
9917
|
+
return false;
|
|
9918
|
+
}
|
|
9919
|
+
ts.isLiteralExpressionOfObject = isLiteralExpressionOfObject;
|
|
9905
9920
|
function isTemplateLiteralKind(kind) {
|
|
9906
9921
|
return 14 <= kind && kind <= 17;
|
|
9907
9922
|
}
|
|
@@ -27695,6 +27710,9 @@ var ts;
|
|
|
27695
27710
|
return 1;
|
|
27696
27711
|
}
|
|
27697
27712
|
if (ts.isModifierKind(second) && second !== 131 && lookAhead(nextTokenIsIdentifier)) {
|
|
27713
|
+
if (nextToken() === 127) {
|
|
27714
|
+
return 0;
|
|
27715
|
+
}
|
|
27698
27716
|
return 1;
|
|
27699
27717
|
}
|
|
27700
27718
|
if (!isIdentifier() && second !== 108) {
|
|
@@ -28231,9 +28249,22 @@ var ts;
|
|
|
28231
28249
|
}
|
|
28232
28250
|
scanJsxIdentifier();
|
|
28233
28251
|
var pos = getNodePos();
|
|
28234
|
-
return finishNode(factory.createJsxAttribute(parseIdentifierName(),
|
|
28235
|
-
|
|
28236
|
-
|
|
28252
|
+
return finishNode(factory.createJsxAttribute(parseIdentifierName(), parseJsxAttributeValue()), pos);
|
|
28253
|
+
}
|
|
28254
|
+
function parseJsxAttributeValue() {
|
|
28255
|
+
if (token() === 63) {
|
|
28256
|
+
if (scanJsxAttributeValue() === 10) {
|
|
28257
|
+
return parseLiteralNode();
|
|
28258
|
+
}
|
|
28259
|
+
if (token() === 18) {
|
|
28260
|
+
return parseJsxExpression(true);
|
|
28261
|
+
}
|
|
28262
|
+
if (token() === 29) {
|
|
28263
|
+
return parseJsxElementOrSelfClosingElementOrFragment(true);
|
|
28264
|
+
}
|
|
28265
|
+
parseErrorAtCurrentToken(ts.Diagnostics.or_JSX_element_expected);
|
|
28266
|
+
}
|
|
28267
|
+
return undefined;
|
|
28237
28268
|
}
|
|
28238
28269
|
function parseJsxSpreadAttribute() {
|
|
28239
28270
|
var pos = getNodePos();
|
|
@@ -33357,7 +33388,7 @@ var ts;
|
|
|
33357
33388
|
return undefined;
|
|
33358
33389
|
if (ts.length(specs) !== 1)
|
|
33359
33390
|
return specs;
|
|
33360
|
-
if (specs[0] ===
|
|
33391
|
+
if (specs[0] === ts.defaultIncludeSpec)
|
|
33361
33392
|
return undefined;
|
|
33362
33393
|
return specs;
|
|
33363
33394
|
}
|
|
@@ -33591,6 +33622,7 @@ var ts;
|
|
|
33591
33622
|
function directoryOfCombinedPath(fileName, basePath) {
|
|
33592
33623
|
return ts.getDirectoryPath(ts.getNormalizedAbsolutePath(fileName, basePath));
|
|
33593
33624
|
}
|
|
33625
|
+
ts.defaultIncludeSpec = "**/*";
|
|
33594
33626
|
function parseJsonConfigFileContentWorker(json, sourceFile, host, basePath, existingOptions, existingWatchOptions, configFileName, resolutionStack, extraFileExtensions, extendedConfigCache) {
|
|
33595
33627
|
if (existingOptions === void 0) { existingOptions = {}; }
|
|
33596
33628
|
if (resolutionStack === void 0) { resolutionStack = []; }
|
|
@@ -33643,6 +33675,7 @@ var ts;
|
|
|
33643
33675
|
}
|
|
33644
33676
|
var includeSpecs = toPropValue(getSpecsFromRaw("include"));
|
|
33645
33677
|
var excludeOfRaw = getSpecsFromRaw("exclude");
|
|
33678
|
+
var isDefaultIncludeSpec = false;
|
|
33646
33679
|
var excludeSpecs = toPropValue(excludeOfRaw);
|
|
33647
33680
|
if (excludeOfRaw === "no-prop" && raw.compilerOptions) {
|
|
33648
33681
|
var outDir = raw.compilerOptions.outDir;
|
|
@@ -33652,7 +33685,8 @@ var ts;
|
|
|
33652
33685
|
}
|
|
33653
33686
|
}
|
|
33654
33687
|
if (filesSpecs === undefined && includeSpecs === undefined) {
|
|
33655
|
-
includeSpecs = [
|
|
33688
|
+
includeSpecs = [ts.defaultIncludeSpec];
|
|
33689
|
+
isDefaultIncludeSpec = true;
|
|
33656
33690
|
}
|
|
33657
33691
|
var validatedIncludeSpecs, validatedExcludeSpecs;
|
|
33658
33692
|
if (includeSpecs) {
|
|
@@ -33669,6 +33703,7 @@ var ts;
|
|
|
33669
33703
|
validatedIncludeSpecs: validatedIncludeSpecs,
|
|
33670
33704
|
validatedExcludeSpecs: validatedExcludeSpecs,
|
|
33671
33705
|
pathPatterns: undefined,
|
|
33706
|
+
isDefaultIncludeSpec: isDefaultIncludeSpec,
|
|
33672
33707
|
};
|
|
33673
33708
|
}
|
|
33674
33709
|
function getFileNames(basePath) {
|
|
@@ -42288,8 +42323,9 @@ var ts;
|
|
|
42288
42323
|
function getExportSymbolOfValueSymbolIfExported(symbol) {
|
|
42289
42324
|
return getMergedSymbol(symbol && (symbol.flags & 1048576) !== 0 && symbol.exportSymbol || symbol);
|
|
42290
42325
|
}
|
|
42291
|
-
function symbolIsValue(symbol) {
|
|
42292
|
-
return !!(symbol.flags & 111551 ||
|
|
42326
|
+
function symbolIsValue(symbol, includeTypeOnlyMembers) {
|
|
42327
|
+
return !!(symbol.flags & 111551 ||
|
|
42328
|
+
symbol.flags & 2097152 && resolveAlias(symbol).flags & 111551 && (includeTypeOnlyMembers || !getTypeOnlyAliasDeclaration(symbol)));
|
|
42293
42329
|
}
|
|
42294
42330
|
function findConstructorDeclaration(node) {
|
|
42295
42331
|
var members = node.members;
|
|
@@ -48925,12 +48961,12 @@ var ts;
|
|
|
48925
48961
|
}
|
|
48926
48962
|
return errorInfo;
|
|
48927
48963
|
}
|
|
48928
|
-
function getPropertyOfType(type, name, skipObjectFunctionPropertyAugment) {
|
|
48964
|
+
function getPropertyOfType(type, name, skipObjectFunctionPropertyAugment, includeTypeOnlyMembers) {
|
|
48929
48965
|
type = getReducedApparentType(type);
|
|
48930
48966
|
if (type.flags & 524288) {
|
|
48931
48967
|
var resolved = resolveStructuredTypeMembers(type);
|
|
48932
48968
|
var symbol = resolved.members.get(name);
|
|
48933
|
-
if (symbol && symbolIsValue(symbol)) {
|
|
48969
|
+
if (symbol && symbolIsValue(symbol, includeTypeOnlyMembers)) {
|
|
48934
48970
|
return symbol;
|
|
48935
48971
|
}
|
|
48936
48972
|
if (skipObjectFunctionPropertyAugment)
|
|
@@ -51915,7 +51951,7 @@ var ts;
|
|
|
51915
51951
|
var meaning = nameStack.length ? 1920 : targetMeaning;
|
|
51916
51952
|
var mergedResolvedSymbol = getMergedSymbol(resolveSymbol(currentNamespace));
|
|
51917
51953
|
var next = node.isTypeOf
|
|
51918
|
-
? getPropertyOfType(getTypeOfSymbol(mergedResolvedSymbol), current.escapedText)
|
|
51954
|
+
? getPropertyOfType(getTypeOfSymbol(mergedResolvedSymbol), current.escapedText, false, true)
|
|
51919
51955
|
: getSymbol(getExportsOfSymbol(mergedResolvedSymbol), current.escapedText, meaning);
|
|
51920
51956
|
if (!next) {
|
|
51921
51957
|
error(current, ts.Diagnostics.Namespace_0_has_no_exported_member_1, getFullyQualifiedName(currentNamespace), ts.declarationNameToString(current));
|
|
@@ -62170,9 +62206,8 @@ var ts;
|
|
|
62170
62206
|
markAliasReferenced(parentSymbol, node);
|
|
62171
62207
|
}
|
|
62172
62208
|
return isErrorType(apparentType) ? errorType : apparentType;
|
|
62173
|
-
;
|
|
62174
62209
|
}
|
|
62175
|
-
prop = getPropertyOfType(apparentType, right.escapedText);
|
|
62210
|
+
prop = getPropertyOfType(apparentType, right.escapedText, false, node.kind === 161);
|
|
62176
62211
|
}
|
|
62177
62212
|
if (ts.isIdentifier(left) && parentSymbol && (compilerOptions.isolatedModules ||
|
|
62178
62213
|
!(prop && (isConstEnumOrConstEnumOnlyModule(prop) || prop.flags & 8 && node.parent.kind === 299)) ||
|
|
@@ -66077,6 +66112,10 @@ var ts;
|
|
|
66077
66112
|
case 35:
|
|
66078
66113
|
case 36:
|
|
66079
66114
|
case 37:
|
|
66115
|
+
if (ts.isLiteralExpressionOfObject(left) || ts.isLiteralExpressionOfObject(right)) {
|
|
66116
|
+
var eqType = operator === 34 || operator === 36;
|
|
66117
|
+
error(errorNode, ts.Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true");
|
|
66118
|
+
}
|
|
66080
66119
|
reportOperatorErrorUnless(function (left, right) { return isTypeEqualityComparableTo(left, right) || isTypeEqualityComparableTo(right, left); });
|
|
66081
66120
|
return booleanType;
|
|
66082
66121
|
case 102:
|
|
@@ -81701,20 +81740,27 @@ var ts;
|
|
|
81701
81740
|
if (node === undefined) {
|
|
81702
81741
|
return factory.createTrue();
|
|
81703
81742
|
}
|
|
81704
|
-
|
|
81743
|
+
if (node.kind === 10) {
|
|
81705
81744
|
var singleQuote = node.singleQuote !== undefined ? node.singleQuote : !ts.isStringDoubleQuoted(node, currentSourceFile);
|
|
81706
81745
|
var literal = factory.createStringLiteral(tryDecodeEntities(node.text) || node.text, singleQuote);
|
|
81707
81746
|
return ts.setTextRange(literal, node);
|
|
81708
81747
|
}
|
|
81709
|
-
|
|
81748
|
+
if (node.kind === 288) {
|
|
81710
81749
|
if (node.expression === undefined) {
|
|
81711
81750
|
return factory.createTrue();
|
|
81712
81751
|
}
|
|
81713
81752
|
return ts.visitNode(node.expression, visitor, ts.isExpression);
|
|
81714
81753
|
}
|
|
81715
|
-
|
|
81716
|
-
return
|
|
81754
|
+
if (ts.isJsxElement(node)) {
|
|
81755
|
+
return visitJsxElement(node, false);
|
|
81717
81756
|
}
|
|
81757
|
+
if (ts.isJsxSelfClosingElement(node)) {
|
|
81758
|
+
return visitJsxSelfClosingElement(node, false);
|
|
81759
|
+
}
|
|
81760
|
+
if (ts.isJsxFragment(node)) {
|
|
81761
|
+
return visitJsxFragment(node, false);
|
|
81762
|
+
}
|
|
81763
|
+
return ts.Debug.failBadSyntaxKind(node);
|
|
81718
81764
|
}
|
|
81719
81765
|
function visitJsxText(node) {
|
|
81720
81766
|
var fixed = fixupWhitespaceAndDecodeEntities(node.text);
|
|
@@ -98173,7 +98219,7 @@ var ts;
|
|
|
98173
98219
|
break;
|
|
98174
98220
|
}
|
|
98175
98221
|
var matchedByInclude = ts.getMatchedIncludeSpec(program, fileName);
|
|
98176
|
-
if (!matchedByInclude)
|
|
98222
|
+
if (!matchedByInclude || !ts.isString(matchedByInclude))
|
|
98177
98223
|
return undefined;
|
|
98178
98224
|
configFileNode = ts.getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude);
|
|
98179
98225
|
message = ts.Diagnostics.File_is_matched_by_include_pattern_specified_here;
|
|
@@ -101495,6 +101541,8 @@ var ts;
|
|
|
101495
101541
|
var configFile = program.getCompilerOptions().configFile;
|
|
101496
101542
|
if (!((_a = configFile === null || configFile === void 0 ? void 0 : configFile.configFileSpecs) === null || _a === void 0 ? void 0 : _a.validatedIncludeSpecs))
|
|
101497
101543
|
return undefined;
|
|
101544
|
+
if (configFile.configFileSpecs.isDefaultIncludeSpec)
|
|
101545
|
+
return true;
|
|
101498
101546
|
var isJsonFile = ts.fileExtensionIs(fileName, ".json");
|
|
101499
101547
|
var basePath = ts.getDirectoryPath(ts.getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory()));
|
|
101500
101548
|
var useCaseSensitiveFileNames = program.useCaseSensitiveFileNames();
|
|
@@ -101559,9 +101607,11 @@ var ts;
|
|
|
101559
101607
|
if (matchedByFiles)
|
|
101560
101608
|
return ts.chainDiagnosticMessages(undefined, ts.Diagnostics.Part_of_files_list_in_tsconfig_json);
|
|
101561
101609
|
var matchedByInclude = getMatchedIncludeSpec(program, fileName);
|
|
101562
|
-
return matchedByInclude ?
|
|
101610
|
+
return ts.isString(matchedByInclude) ?
|
|
101563
101611
|
ts.chainDiagnosticMessages(undefined, ts.Diagnostics.Matched_by_include_pattern_0_in_1, matchedByInclude, toFileName(options.configFile, fileNameConvertor)) :
|
|
101564
|
-
ts.chainDiagnosticMessages(undefined,
|
|
101612
|
+
ts.chainDiagnosticMessages(undefined, matchedByInclude ?
|
|
101613
|
+
ts.Diagnostics.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk :
|
|
101614
|
+
ts.Diagnostics.Root_file_specified_for_compilation);
|
|
101565
101615
|
case ts.FileIncludeKind.SourceFromProjectReference:
|
|
101566
101616
|
case ts.FileIncludeKind.OutputFromProjectReference:
|
|
101567
101617
|
var isOutput = reason.kind === ts.FileIncludeKind.OutputFromProjectReference;
|
|
@@ -101672,6 +101722,13 @@ var ts;
|
|
|
101672
101722
|
ExtendedConfigOfReferencedProject: "Extended config file of referenced project",
|
|
101673
101723
|
WildcardDirectoryOfReferencedProject: "Wild card directory of referenced project",
|
|
101674
101724
|
PackageJson: "package.json file",
|
|
101725
|
+
ClosedScriptInfo: "Closed Script info",
|
|
101726
|
+
ConfigFileForInferredRoot: "Config file for the inferred project root",
|
|
101727
|
+
NodeModules: "node_modules for closed script infos and package.jsons affecting module specifier cache",
|
|
101728
|
+
MissingSourceMapFile: "Missing source map file",
|
|
101729
|
+
NoopConfigFileForInferredRoot: "Noop Config file for the inferred project root",
|
|
101730
|
+
MissingGeneratedFile: "Missing generated file",
|
|
101731
|
+
NodeModulesForModuleSpecifierCache: "node_modules for module specifier cache invalidation",
|
|
101675
101732
|
};
|
|
101676
101733
|
function createWatchFactory(host, options) {
|
|
101677
101734
|
var watchLogLevel = host.trace ? options.extendedDiagnostics ? ts.WatchLogLevel.Verbose : options.diagnostics ? ts.WatchLogLevel.TriggerOnly : ts.WatchLogLevel.None : ts.WatchLogLevel.None;
|