typescript 4.8.0-dev.20220509 → 4.8.0-dev.20220512
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 +1 -0
- package/lib/de/diagnosticMessages.generated.json +1 -0
- package/lib/es/diagnosticMessages.generated.json +1 -0
- package/lib/fr/diagnosticMessages.generated.json +1 -0
- package/lib/it/diagnosticMessages.generated.json +1 -0
- package/lib/ja/diagnosticMessages.generated.json +1 -0
- package/lib/ko/diagnosticMessages.generated.json +1 -0
- package/lib/lib.es2020.intl.d.ts +29 -5
- package/lib/lib.es2021.intl.d.ts +7 -3
- package/lib/lib.esnext.intl.d.ts +5 -1
- package/lib/pl/diagnosticMessages.generated.json +1 -0
- package/lib/pt-br/diagnosticMessages.generated.json +1 -0
- package/lib/ru/diagnosticMessages.generated.json +1 -0
- package/lib/tr/diagnosticMessages.generated.json +1 -0
- package/lib/tsc.js +142 -42
- package/lib/tsserver.js +172 -56
- package/lib/tsserverlibrary.d.ts +8 -5
- package/lib/tsserverlibrary.js +172 -56
- package/lib/typescript.d.ts +8 -5
- package/lib/typescript.js +172 -56
- package/lib/typescriptServices.d.ts +8 -5
- package/lib/typescriptServices.js +172 -56
- package/lib/typingsInstaller.js +149 -44
- package/lib/zh-cn/diagnosticMessages.generated.json +1 -0
- package/lib/zh-tw/diagnosticMessages.generated.json +1 -0
- package/package.json +1 -1
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"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
1200
|
"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
1201
|
"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}.",
|
|
1202
|
+
"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
1203
|
"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
1204
|
"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
1205
|
"Resolving_module_0_from_1_6086": "======== Překládá se modul {0} z {1}. ========",
|
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Erforderliche Typparameter dürfen nicht auf optionale Typparameter folgen.",
|
|
1200
1200
|
"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
1201
|
"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.",
|
|
1202
|
+
"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
1203
|
"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
1204
|
"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
1205
|
"Resolving_module_0_from_1_6086": "======== Das Modul \"{0}\" aus \"{1}\" wird aufgelöst. ========",
|
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"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
1200
|
"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
1201
|
"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}\".",
|
|
1202
|
+
"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
1203
|
"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
1204
|
"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
1205
|
"Resolving_module_0_from_1_6086": "======== Resolviendo el módulo '{0}' de '{1}'. ========",
|
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"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
1200
|
"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
1201
|
"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}'.",
|
|
1202
|
+
"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
1203
|
"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
1204
|
"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
1205
|
"Resolving_module_0_from_1_6086": "======== Résolution du module '{0}' à partir de '{1}'. ========",
|
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "I parametri di tipo obbligatori potrebbero non seguire i parametri di tipo facoltativi.",
|
|
1200
1200
|
"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
1201
|
"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}'.",
|
|
1202
|
+
"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
1203
|
"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
1204
|
"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
1205
|
"Resolving_module_0_from_1_6086": "======== Risoluzione del modulo '{0}' da '{1}'. ========",
|
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "必須の型パラメーターの後に、オプションの型パラメーターを続けることはできません。",
|
|
1200
1200
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "モジュール '{0}' の解決が場所 '{1}' のキャッシュに見つかりました。",
|
|
1201
1201
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "種類参照指令 '{0}' の解決策は、場所 '{1}' のキャッシュには見つかりませんでした。",
|
|
1202
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "解決モード アサーションが不安定です。夜間の TypeScript を使用して、このエラーを無音にします。'npm install -D typescript@next' で更新してみてください。",
|
|
1202
1203
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "解決モードは、`moduleResolution` が `node16` または `nodenext` の場合にのみサポートされます。",
|
|
1203
1204
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "'keyof' を文字列値のプロパティ名のみに解決します (数字または記号なし)。",
|
|
1204
1205
|
"Resolving_module_0_from_1_6086": "======== '{1}' からモジュール '{0}' を解決しています。========",
|
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "필수 형식 매개 변수는 선택적 형식 매개 변수 다음에 올 수 없습니다.",
|
|
1200
1200
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "'{0}' 모듈에 대한 해결을 '{1}' 위치의 캐시에서 찾았습니다.",
|
|
1201
1201
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "'{1}' 위치의 캐시에서 형식 참조 지시어 '{0}'에 대한 해상도가 발견되었습니다.",
|
|
1202
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "해결 모드 어설션이 불안정합니다. 야간 TypeScript를 사용하여 이 오류를 차단하십시오. 'npm install -D typescript@next'로 업데이트해 보세요.",
|
|
1202
1203
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "해상도 모드는 `moduleResolution`이 `node16` 또는 `nodenext`인 경우에만 지원됩니다.",
|
|
1203
1204
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "문자열 값 속성 이름에 대해서만 'keyof'를 확인합니다(숫자나 기호 아님).",
|
|
1204
1205
|
"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,12 +25,16 @@ 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
|
+
}
|
|
30
|
+
|
|
31
|
+
interface DateTimeRangeFormatPart extends DateTimeFormatPart {
|
|
32
|
+
source: "startRange" | "endRange" | "shared"
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
interface DateTimeFormat {
|
|
32
36
|
formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string;
|
|
33
|
-
formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint):
|
|
37
|
+
formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[];
|
|
34
38
|
}
|
|
35
39
|
|
|
36
40
|
interface ResolvedDateTimeFormatOptions {
|
|
@@ -39,7 +43,7 @@ declare namespace Intl {
|
|
|
39
43
|
timeStyle?: "full" | "long" | "medium" | "short";
|
|
40
44
|
hourCycle?: "h11" | "h12" | "h23" | "h24";
|
|
41
45
|
dayPeriod?: "narrow" | "short" | "long";
|
|
42
|
-
fractionalSecondDigits?:
|
|
46
|
+
fractionalSecondDigits?: 1 | 2 | 3;
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
/**
|
package/lib/lib.esnext.intl.d.ts
CHANGED
|
@@ -19,8 +19,12 @@ and limitations under the License.
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
declare namespace Intl {
|
|
22
|
+
interface NumberRangeFormatPart extends NumberFormatPart {
|
|
23
|
+
source: "startRange" | "endRange" | "shared"
|
|
24
|
+
}
|
|
25
|
+
|
|
22
26
|
interface NumberFormat {
|
|
23
27
|
formatRange(start: number | bigint, end: number | bigint): string;
|
|
24
|
-
formatRangeToParts(start: number | bigint, end: number | bigint):
|
|
28
|
+
formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[];
|
|
25
29
|
}
|
|
26
30
|
}
|
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Wymagane parametry typu mogą nie być zgodne z opcjonalnymi parametrami typu.",
|
|
1200
1200
|
"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
1201
|
"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}”.",
|
|
1202
|
+
"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
1203
|
"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
1204
|
"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
1205
|
"Resolving_module_0_from_1_6086": "======== Rozpoznawanie modułu „{0}” na podstawie „{1}”. ========",
|
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"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
1200
|
"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
1201
|
"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}'.",
|
|
1202
|
+
"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
1203
|
"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
1204
|
"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
1205
|
"Resolving_module_0_from_1_6086": "======== Resolvendo módulo '{0}' de '{1}'. ========",
|
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Обязательные параметры типа не могут следовать за необязательными параметрами типа.",
|
|
1200
1200
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "Разрешение для модуля \"{0}\" найдено в кэше из расположения \"{1}\".",
|
|
1201
1201
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "Разрешение для директивы ссылки на тип \"{0}\" обнаружено в кэше из расположения \"{1}\".",
|
|
1202
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Утверждения в режиме разрешения нестабильны. Используйте ночную сборку TypeScript, чтобы скрыть эту ошибку. Для обновления попробуйте использовать команду \"npm install -D typescript@next\".",
|
|
1202
1203
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Режимы разрешения поддерживаются только тогда, когда ''moduleResolution'' равно ''node16'' или ''nodenext''.",
|
|
1203
1204
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Разрешать \"keyof\" только в имена свойств со строковым значением (не числа и не символы).",
|
|
1204
1205
|
"Resolving_module_0_from_1_6086": "======== Идет разрешение модуля \"{0}\" из \"{1}\". ========",
|
|
@@ -1199,6 +1199,7 @@
|
|
|
1199
1199
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Gerekli tür parametreleri, isteğe bağlı tür parametrelerini takip edemez.",
|
|
1200
1200
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "'{0}' modülünün çözümü '{1}' konumundaki önbellekte bulundu.",
|
|
1201
1201
|
"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.",
|
|
1202
|
+
"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
1203
|
"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
1204
|
"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
1205
|
"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.20220512";
|
|
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."),
|
|
@@ -10664,6 +10666,16 @@ var ts;
|
|
|
10664
10666
|
return node.kind === 324 || node.kind === 325 || node.kind === 326;
|
|
10665
10667
|
}
|
|
10666
10668
|
ts.isJSDocLinkLike = isJSDocLinkLike;
|
|
10669
|
+
function hasRestParameter(s) {
|
|
10670
|
+
var last = ts.lastOrUndefined(s.parameters);
|
|
10671
|
+
return !!last && isRestParameter(last);
|
|
10672
|
+
}
|
|
10673
|
+
ts.hasRestParameter = hasRestParameter;
|
|
10674
|
+
function isRestParameter(node) {
|
|
10675
|
+
var type = ts.isJSDocParameterTag(node) ? (node.typeExpression && node.typeExpression.type) : node.type;
|
|
10676
|
+
return node.dotDotDotToken !== undefined || !!type && type.kind === 318;
|
|
10677
|
+
}
|
|
10678
|
+
ts.isRestParameter = isRestParameter;
|
|
10667
10679
|
})(ts || (ts = {}));
|
|
10668
10680
|
var ts;
|
|
10669
10681
|
(function (ts) {
|
|
@@ -13158,16 +13170,6 @@ var ts;
|
|
|
13158
13170
|
return typeParameters && ts.find(typeParameters, function (p) { return p.name.escapedText === name; });
|
|
13159
13171
|
}
|
|
13160
13172
|
ts.getTypeParameterFromJsDoc = getTypeParameterFromJsDoc;
|
|
13161
|
-
function hasRestParameter(s) {
|
|
13162
|
-
var last = ts.lastOrUndefined(s.parameters);
|
|
13163
|
-
return !!last && isRestParameter(last);
|
|
13164
|
-
}
|
|
13165
|
-
ts.hasRestParameter = hasRestParameter;
|
|
13166
|
-
function isRestParameter(node) {
|
|
13167
|
-
var type = ts.isJSDocParameterTag(node) ? (node.typeExpression && node.typeExpression.type) : node.type;
|
|
13168
|
-
return node.dotDotDotToken !== undefined || !!type && type.kind === 318;
|
|
13169
|
-
}
|
|
13170
|
-
ts.isRestParameter = isRestParameter;
|
|
13171
13173
|
function hasTypeArguments(node) {
|
|
13172
13174
|
return !!node.typeArguments;
|
|
13173
13175
|
}
|
|
@@ -27695,6 +27697,9 @@ var ts;
|
|
|
27695
27697
|
return 1;
|
|
27696
27698
|
}
|
|
27697
27699
|
if (ts.isModifierKind(second) && second !== 131 && lookAhead(nextTokenIsIdentifier)) {
|
|
27700
|
+
if (nextToken() === 127) {
|
|
27701
|
+
return 0;
|
|
27702
|
+
}
|
|
27698
27703
|
return 1;
|
|
27699
27704
|
}
|
|
27700
27705
|
if (!isIdentifier() && second !== 108) {
|
|
@@ -28231,9 +28236,22 @@ var ts;
|
|
|
28231
28236
|
}
|
|
28232
28237
|
scanJsxIdentifier();
|
|
28233
28238
|
var pos = getNodePos();
|
|
28234
|
-
return finishNode(factory.createJsxAttribute(parseIdentifierName(),
|
|
28235
|
-
|
|
28236
|
-
|
|
28239
|
+
return finishNode(factory.createJsxAttribute(parseIdentifierName(), parseJsxAttributeValue()), pos);
|
|
28240
|
+
}
|
|
28241
|
+
function parseJsxAttributeValue() {
|
|
28242
|
+
if (token() === 63) {
|
|
28243
|
+
if (scanJsxAttributeValue() === 10) {
|
|
28244
|
+
return parseLiteralNode();
|
|
28245
|
+
}
|
|
28246
|
+
if (token() === 18) {
|
|
28247
|
+
return parseJsxExpression(true);
|
|
28248
|
+
}
|
|
28249
|
+
if (token() === 29) {
|
|
28250
|
+
return parseJsxElementOrSelfClosingElementOrFragment(true);
|
|
28251
|
+
}
|
|
28252
|
+
parseErrorAtCurrentToken(ts.Diagnostics.or_JSX_element_expected);
|
|
28253
|
+
}
|
|
28254
|
+
return undefined;
|
|
28237
28255
|
}
|
|
28238
28256
|
function parseJsxSpreadAttribute() {
|
|
28239
28257
|
var pos = getNodePos();
|
|
@@ -33357,7 +33375,7 @@ var ts;
|
|
|
33357
33375
|
return undefined;
|
|
33358
33376
|
if (ts.length(specs) !== 1)
|
|
33359
33377
|
return specs;
|
|
33360
|
-
if (specs[0] ===
|
|
33378
|
+
if (specs[0] === ts.defaultIncludeSpec)
|
|
33361
33379
|
return undefined;
|
|
33362
33380
|
return specs;
|
|
33363
33381
|
}
|
|
@@ -33591,6 +33609,7 @@ var ts;
|
|
|
33591
33609
|
function directoryOfCombinedPath(fileName, basePath) {
|
|
33592
33610
|
return ts.getDirectoryPath(ts.getNormalizedAbsolutePath(fileName, basePath));
|
|
33593
33611
|
}
|
|
33612
|
+
ts.defaultIncludeSpec = "**/*";
|
|
33594
33613
|
function parseJsonConfigFileContentWorker(json, sourceFile, host, basePath, existingOptions, existingWatchOptions, configFileName, resolutionStack, extraFileExtensions, extendedConfigCache) {
|
|
33595
33614
|
if (existingOptions === void 0) { existingOptions = {}; }
|
|
33596
33615
|
if (resolutionStack === void 0) { resolutionStack = []; }
|
|
@@ -33643,6 +33662,7 @@ var ts;
|
|
|
33643
33662
|
}
|
|
33644
33663
|
var includeSpecs = toPropValue(getSpecsFromRaw("include"));
|
|
33645
33664
|
var excludeOfRaw = getSpecsFromRaw("exclude");
|
|
33665
|
+
var isDefaultIncludeSpec = false;
|
|
33646
33666
|
var excludeSpecs = toPropValue(excludeOfRaw);
|
|
33647
33667
|
if (excludeOfRaw === "no-prop" && raw.compilerOptions) {
|
|
33648
33668
|
var outDir = raw.compilerOptions.outDir;
|
|
@@ -33652,7 +33672,8 @@ var ts;
|
|
|
33652
33672
|
}
|
|
33653
33673
|
}
|
|
33654
33674
|
if (filesSpecs === undefined && includeSpecs === undefined) {
|
|
33655
|
-
includeSpecs = [
|
|
33675
|
+
includeSpecs = [ts.defaultIncludeSpec];
|
|
33676
|
+
isDefaultIncludeSpec = true;
|
|
33656
33677
|
}
|
|
33657
33678
|
var validatedIncludeSpecs, validatedExcludeSpecs;
|
|
33658
33679
|
if (includeSpecs) {
|
|
@@ -33669,6 +33690,7 @@ var ts;
|
|
|
33669
33690
|
validatedIncludeSpecs: validatedIncludeSpecs,
|
|
33670
33691
|
validatedExcludeSpecs: validatedExcludeSpecs,
|
|
33671
33692
|
pathPatterns: undefined,
|
|
33693
|
+
isDefaultIncludeSpec: isDefaultIncludeSpec,
|
|
33672
33694
|
};
|
|
33673
33695
|
}
|
|
33674
33696
|
function getFileNames(basePath) {
|
|
@@ -42288,8 +42310,9 @@ var ts;
|
|
|
42288
42310
|
function getExportSymbolOfValueSymbolIfExported(symbol) {
|
|
42289
42311
|
return getMergedSymbol(symbol && (symbol.flags & 1048576) !== 0 && symbol.exportSymbol || symbol);
|
|
42290
42312
|
}
|
|
42291
|
-
function symbolIsValue(symbol) {
|
|
42292
|
-
return !!(symbol.flags & 111551 ||
|
|
42313
|
+
function symbolIsValue(symbol, includeTypeOnlyMembers) {
|
|
42314
|
+
return !!(symbol.flags & 111551 ||
|
|
42315
|
+
symbol.flags & 2097152 && resolveAlias(symbol).flags & 111551 && (includeTypeOnlyMembers || !getTypeOnlyAliasDeclaration(symbol)));
|
|
42293
42316
|
}
|
|
42294
42317
|
function findConstructorDeclaration(node) {
|
|
42295
42318
|
var members = node.members;
|
|
@@ -48925,12 +48948,12 @@ var ts;
|
|
|
48925
48948
|
}
|
|
48926
48949
|
return errorInfo;
|
|
48927
48950
|
}
|
|
48928
|
-
function getPropertyOfType(type, name, skipObjectFunctionPropertyAugment) {
|
|
48951
|
+
function getPropertyOfType(type, name, skipObjectFunctionPropertyAugment, includeTypeOnlyMembers) {
|
|
48929
48952
|
type = getReducedApparentType(type);
|
|
48930
48953
|
if (type.flags & 524288) {
|
|
48931
48954
|
var resolved = resolveStructuredTypeMembers(type);
|
|
48932
48955
|
var symbol = resolved.members.get(name);
|
|
48933
|
-
if (symbol && symbolIsValue(symbol)) {
|
|
48956
|
+
if (symbol && symbolIsValue(symbol, includeTypeOnlyMembers)) {
|
|
48934
48957
|
return symbol;
|
|
48935
48958
|
}
|
|
48936
48959
|
if (skipObjectFunctionPropertyAugment)
|
|
@@ -51915,7 +51938,7 @@ var ts;
|
|
|
51915
51938
|
var meaning = nameStack.length ? 1920 : targetMeaning;
|
|
51916
51939
|
var mergedResolvedSymbol = getMergedSymbol(resolveSymbol(currentNamespace));
|
|
51917
51940
|
var next = node.isTypeOf
|
|
51918
|
-
? getPropertyOfType(getTypeOfSymbol(mergedResolvedSymbol), current.escapedText)
|
|
51941
|
+
? getPropertyOfType(getTypeOfSymbol(mergedResolvedSymbol), current.escapedText, false, true)
|
|
51919
51942
|
: getSymbol(getExportsOfSymbol(mergedResolvedSymbol), current.escapedText, meaning);
|
|
51920
51943
|
if (!next) {
|
|
51921
51944
|
error(current, ts.Diagnostics.Namespace_0_has_no_exported_member_1, getFullyQualifiedName(currentNamespace), ts.declarationNameToString(current));
|
|
@@ -54508,6 +54531,18 @@ var ts;
|
|
|
54508
54531
|
}
|
|
54509
54532
|
}
|
|
54510
54533
|
}
|
|
54534
|
+
if (relation === comparableRelation && sourceFlags & 262144) {
|
|
54535
|
+
var constraint = getConstraintOfTypeParameter(source);
|
|
54536
|
+
if (constraint && hasNonCircularBaseConstraint(source)) {
|
|
54537
|
+
while (constraint && constraint.flags & 262144) {
|
|
54538
|
+
if (result = isRelatedTo(constraint, target, 1, false)) {
|
|
54539
|
+
return result;
|
|
54540
|
+
}
|
|
54541
|
+
constraint = getConstraintOfTypeParameter(constraint);
|
|
54542
|
+
}
|
|
54543
|
+
}
|
|
54544
|
+
return 0;
|
|
54545
|
+
}
|
|
54511
54546
|
}
|
|
54512
54547
|
else if (targetFlags & 4194304) {
|
|
54513
54548
|
var targetType_1 = target.type;
|
|
@@ -54658,18 +54693,18 @@ var ts;
|
|
|
54658
54693
|
}
|
|
54659
54694
|
if (sourceFlags & 8650752) {
|
|
54660
54695
|
if (!(sourceFlags & 8388608 && targetFlags & 8388608)) {
|
|
54661
|
-
var constraint = getConstraintOfType(source);
|
|
54662
|
-
if (!
|
|
54696
|
+
var constraint = getConstraintOfType(source) || unknownType;
|
|
54697
|
+
if (!getConstraintOfType(source) || (sourceFlags & 262144 && constraint.flags & 1)) {
|
|
54663
54698
|
if (result = isRelatedTo(emptyObjectType, extractTypesOfKind(target, ~67108864), 3)) {
|
|
54664
54699
|
resetErrorInfo(saveErrorInfo);
|
|
54665
54700
|
return result;
|
|
54666
54701
|
}
|
|
54667
54702
|
}
|
|
54668
|
-
|
|
54703
|
+
if (result = isRelatedTo(constraint, target, 1, false, undefined, intersectionState)) {
|
|
54669
54704
|
resetErrorInfo(saveErrorInfo);
|
|
54670
54705
|
return result;
|
|
54671
54706
|
}
|
|
54672
|
-
else if (result = isRelatedTo(getTypeWithThisArgument(constraint, source), target, 1, reportErrors && !(targetFlags & sourceFlags & 262144), undefined, intersectionState)) {
|
|
54707
|
+
else if (result = isRelatedTo(getTypeWithThisArgument(constraint, source), target, 1, reportErrors && constraint !== unknownType && !(targetFlags & sourceFlags & 262144), undefined, intersectionState)) {
|
|
54673
54708
|
resetErrorInfo(saveErrorInfo);
|
|
54674
54709
|
return result;
|
|
54675
54710
|
}
|
|
@@ -60523,7 +60558,25 @@ var ts;
|
|
|
60523
60558
|
}
|
|
60524
60559
|
function getTypeOfPropertyOfContextualType(type, name, nameType) {
|
|
60525
60560
|
return mapType(type, function (t) {
|
|
60526
|
-
|
|
60561
|
+
if (t.flags & 2097152) {
|
|
60562
|
+
var intersection = t;
|
|
60563
|
+
var newTypes = ts.mapDefined(intersection.types, getTypeOfConcretePropertyOfContextualType);
|
|
60564
|
+
if (newTypes.length > 0) {
|
|
60565
|
+
return getIntersectionType(newTypes);
|
|
60566
|
+
}
|
|
60567
|
+
newTypes = ts.mapDefined(intersection.types, getTypeOfApplicableIndexInfoOfContextualType);
|
|
60568
|
+
if (newTypes.length > 0) {
|
|
60569
|
+
return getIntersectionType(newTypes);
|
|
60570
|
+
}
|
|
60571
|
+
return undefined;
|
|
60572
|
+
}
|
|
60573
|
+
var concretePropertyType = getTypeOfConcretePropertyOfContextualType(t);
|
|
60574
|
+
if (concretePropertyType) {
|
|
60575
|
+
return concretePropertyType;
|
|
60576
|
+
}
|
|
60577
|
+
return getTypeOfApplicableIndexInfoOfContextualType(t);
|
|
60578
|
+
}, true);
|
|
60579
|
+
function getTypeOfConcretePropertyOfContextualType(t) {
|
|
60527
60580
|
if (isGenericMappedType(t) && !t.declaration.nameType) {
|
|
60528
60581
|
var constraint = getConstraintTypeFromMappedType(t);
|
|
60529
60582
|
var constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint;
|
|
@@ -60531,8 +60584,9 @@ var ts;
|
|
|
60531
60584
|
if (isTypeAssignableTo(propertyNameType, constraintOfConstraint)) {
|
|
60532
60585
|
return substituteIndexedMappedType(t, propertyNameType);
|
|
60533
60586
|
}
|
|
60587
|
+
return undefined;
|
|
60534
60588
|
}
|
|
60535
|
-
|
|
60589
|
+
if (t.flags & 3670016) {
|
|
60536
60590
|
var prop = getPropertyOfType(t, name);
|
|
60537
60591
|
if (prop) {
|
|
60538
60592
|
return isCircularMappedProperty(prop) ? undefined : getTypeOfSymbol(prop);
|
|
@@ -60543,10 +60597,16 @@ var ts;
|
|
|
60543
60597
|
return restType;
|
|
60544
60598
|
}
|
|
60545
60599
|
}
|
|
60546
|
-
return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType || getStringLiteralType(ts.unescapeLeadingUnderscores(name)))) === null || _a === void 0 ? void 0 : _a.type;
|
|
60547
60600
|
}
|
|
60548
60601
|
return undefined;
|
|
60549
|
-
}
|
|
60602
|
+
}
|
|
60603
|
+
function getTypeOfApplicableIndexInfoOfContextualType(t) {
|
|
60604
|
+
var _a;
|
|
60605
|
+
if (!(t.flags & 3670016)) {
|
|
60606
|
+
return undefined;
|
|
60607
|
+
}
|
|
60608
|
+
return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType || getStringLiteralType(ts.unescapeLeadingUnderscores(name)))) === null || _a === void 0 ? void 0 : _a.type;
|
|
60609
|
+
}
|
|
60550
60610
|
}
|
|
60551
60611
|
function getContextualTypeForObjectLiteralMethod(node, contextFlags) {
|
|
60552
60612
|
ts.Debug.assert(ts.isObjectLiteralMethod(node));
|
|
@@ -62133,9 +62193,8 @@ var ts;
|
|
|
62133
62193
|
markAliasReferenced(parentSymbol, node);
|
|
62134
62194
|
}
|
|
62135
62195
|
return isErrorType(apparentType) ? errorType : apparentType;
|
|
62136
|
-
;
|
|
62137
62196
|
}
|
|
62138
|
-
prop = getPropertyOfType(apparentType, right.escapedText);
|
|
62197
|
+
prop = getPropertyOfType(apparentType, right.escapedText, false, node.kind === 161);
|
|
62139
62198
|
}
|
|
62140
62199
|
if (ts.isIdentifier(left) && parentSymbol && (compilerOptions.isolatedModules ||
|
|
62141
62200
|
!(prop && (isConstEnumOrConstEnumOnlyModule(prop) || prop.flags & 8 && node.parent.kind === 299)) ||
|
|
@@ -67924,7 +67983,7 @@ var ts;
|
|
|
67924
67983
|
var promisedType = getPromisedTypeOfPromise(type, errorNode);
|
|
67925
67984
|
return promisedType && getAwaitedType(promisedType, errorNode, diagnosticMessage, arg0);
|
|
67926
67985
|
}
|
|
67927
|
-
function getPromisedTypeOfPromise(type, errorNode) {
|
|
67986
|
+
function getPromisedTypeOfPromise(type, errorNode, thisTypeForErrorOut) {
|
|
67928
67987
|
if (isTypeAny(type)) {
|
|
67929
67988
|
return undefined;
|
|
67930
67989
|
}
|
|
@@ -67949,7 +68008,29 @@ var ts;
|
|
|
67949
68008
|
}
|
|
67950
68009
|
return undefined;
|
|
67951
68010
|
}
|
|
67952
|
-
var
|
|
68011
|
+
var thisTypeForError;
|
|
68012
|
+
var candidates;
|
|
68013
|
+
for (var _i = 0, thenSignatures_1 = thenSignatures; _i < thenSignatures_1.length; _i++) {
|
|
68014
|
+
var thenSignature = thenSignatures_1[_i];
|
|
68015
|
+
var thisType = getThisTypeOfSignature(thenSignature);
|
|
68016
|
+
if (thisType && thisType !== voidType && !isTypeRelatedTo(type, thisType, subtypeRelation)) {
|
|
68017
|
+
thisTypeForError = thisType;
|
|
68018
|
+
}
|
|
68019
|
+
else {
|
|
68020
|
+
candidates = ts.append(candidates, thenSignature);
|
|
68021
|
+
}
|
|
68022
|
+
}
|
|
68023
|
+
if (!candidates) {
|
|
68024
|
+
ts.Debug.assertIsDefined(thisTypeForError);
|
|
68025
|
+
if (thisTypeForErrorOut) {
|
|
68026
|
+
thisTypeForErrorOut.value = thisTypeForError;
|
|
68027
|
+
}
|
|
68028
|
+
if (errorNode) {
|
|
68029
|
+
error(errorNode, ts.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1, typeToString(type), typeToString(thisTypeForError));
|
|
68030
|
+
}
|
|
68031
|
+
return undefined;
|
|
68032
|
+
}
|
|
68033
|
+
var onfulfilledParameterType = getTypeWithFacts(getUnionType(ts.map(candidates, getTypeOfFirstParameterOfSignature)), 2097152);
|
|
67953
68034
|
if (isTypeAny(onfulfilledParameterType)) {
|
|
67954
68035
|
return undefined;
|
|
67955
68036
|
}
|
|
@@ -68026,7 +68107,8 @@ var ts;
|
|
|
68026
68107
|
var mapper = errorNode ? function (constituentType) { return getAwaitedTypeNoAlias(constituentType, errorNode, diagnosticMessage, arg0); } : getAwaitedTypeNoAlias;
|
|
68027
68108
|
return typeAsAwaitable.awaitedTypeOfType = mapType(type, mapper);
|
|
68028
68109
|
}
|
|
68029
|
-
var
|
|
68110
|
+
var thisTypeForErrorOut = { value: undefined };
|
|
68111
|
+
var promisedType = getPromisedTypeOfPromise(type, undefined, thisTypeForErrorOut);
|
|
68030
68112
|
if (promisedType) {
|
|
68031
68113
|
if (type.id === promisedType.id || awaitedTypeStack.lastIndexOf(promisedType.id) >= 0) {
|
|
68032
68114
|
if (errorNode) {
|
|
@@ -68045,7 +68127,12 @@ var ts;
|
|
|
68045
68127
|
if (isThenableType(type)) {
|
|
68046
68128
|
if (errorNode) {
|
|
68047
68129
|
ts.Debug.assertIsDefined(diagnosticMessage);
|
|
68048
|
-
|
|
68130
|
+
var chain = void 0;
|
|
68131
|
+
if (thisTypeForErrorOut.value) {
|
|
68132
|
+
chain = ts.chainDiagnosticMessages(chain, ts.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1, typeToString(type), typeToString(thisTypeForErrorOut.value));
|
|
68133
|
+
}
|
|
68134
|
+
chain = ts.chainDiagnosticMessages(chain, diagnosticMessage, arg0);
|
|
68135
|
+
diagnostics.add(ts.createDiagnosticForNodeFromMessageChain(errorNode, chain));
|
|
68049
68136
|
}
|
|
68050
68137
|
return undefined;
|
|
68051
68138
|
}
|
|
@@ -81636,20 +81723,27 @@ var ts;
|
|
|
81636
81723
|
if (node === undefined) {
|
|
81637
81724
|
return factory.createTrue();
|
|
81638
81725
|
}
|
|
81639
|
-
|
|
81726
|
+
if (node.kind === 10) {
|
|
81640
81727
|
var singleQuote = node.singleQuote !== undefined ? node.singleQuote : !ts.isStringDoubleQuoted(node, currentSourceFile);
|
|
81641
81728
|
var literal = factory.createStringLiteral(tryDecodeEntities(node.text) || node.text, singleQuote);
|
|
81642
81729
|
return ts.setTextRange(literal, node);
|
|
81643
81730
|
}
|
|
81644
|
-
|
|
81731
|
+
if (node.kind === 288) {
|
|
81645
81732
|
if (node.expression === undefined) {
|
|
81646
81733
|
return factory.createTrue();
|
|
81647
81734
|
}
|
|
81648
81735
|
return ts.visitNode(node.expression, visitor, ts.isExpression);
|
|
81649
81736
|
}
|
|
81650
|
-
|
|
81651
|
-
return
|
|
81737
|
+
if (ts.isJsxElement(node)) {
|
|
81738
|
+
return visitJsxElement(node, false);
|
|
81652
81739
|
}
|
|
81740
|
+
if (ts.isJsxSelfClosingElement(node)) {
|
|
81741
|
+
return visitJsxSelfClosingElement(node, false);
|
|
81742
|
+
}
|
|
81743
|
+
if (ts.isJsxFragment(node)) {
|
|
81744
|
+
return visitJsxFragment(node, false);
|
|
81745
|
+
}
|
|
81746
|
+
return ts.Debug.failBadSyntaxKind(node);
|
|
81653
81747
|
}
|
|
81654
81748
|
function visitJsxText(node) {
|
|
81655
81749
|
var fixed = fixupWhitespaceAndDecodeEntities(node.text);
|
|
@@ -98108,7 +98202,7 @@ var ts;
|
|
|
98108
98202
|
break;
|
|
98109
98203
|
}
|
|
98110
98204
|
var matchedByInclude = ts.getMatchedIncludeSpec(program, fileName);
|
|
98111
|
-
if (!matchedByInclude)
|
|
98205
|
+
if (!matchedByInclude || !ts.isString(matchedByInclude))
|
|
98112
98206
|
return undefined;
|
|
98113
98207
|
configFileNode = ts.getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude);
|
|
98114
98208
|
message = ts.Diagnostics.File_is_matched_by_include_pattern_specified_here;
|
|
@@ -101158,6 +101252,8 @@ var ts;
|
|
|
101158
101252
|
if (ts.fileExtensionIsOneOf(fileName, [".json", ".mjs", ".cjs"]))
|
|
101159
101253
|
return fileName;
|
|
101160
101254
|
var noExtension = ts.removeFileExtension(fileName);
|
|
101255
|
+
if (fileName === noExtension)
|
|
101256
|
+
return fileName;
|
|
101161
101257
|
if (ts.fileExtensionIsOneOf(fileName, [".d.mts", ".mts", ".d.cts", ".cts"]))
|
|
101162
101258
|
return noExtension + getJSExtensionForFile(fileName, options);
|
|
101163
101259
|
switch (ending) {
|
|
@@ -101428,6 +101524,8 @@ var ts;
|
|
|
101428
101524
|
var configFile = program.getCompilerOptions().configFile;
|
|
101429
101525
|
if (!((_a = configFile === null || configFile === void 0 ? void 0 : configFile.configFileSpecs) === null || _a === void 0 ? void 0 : _a.validatedIncludeSpecs))
|
|
101430
101526
|
return undefined;
|
|
101527
|
+
if (configFile.configFileSpecs.isDefaultIncludeSpec)
|
|
101528
|
+
return true;
|
|
101431
101529
|
var isJsonFile = ts.fileExtensionIs(fileName, ".json");
|
|
101432
101530
|
var basePath = ts.getDirectoryPath(ts.getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory()));
|
|
101433
101531
|
var useCaseSensitiveFileNames = program.useCaseSensitiveFileNames();
|
|
@@ -101492,9 +101590,11 @@ var ts;
|
|
|
101492
101590
|
if (matchedByFiles)
|
|
101493
101591
|
return ts.chainDiagnosticMessages(undefined, ts.Diagnostics.Part_of_files_list_in_tsconfig_json);
|
|
101494
101592
|
var matchedByInclude = getMatchedIncludeSpec(program, fileName);
|
|
101495
|
-
return matchedByInclude ?
|
|
101593
|
+
return ts.isString(matchedByInclude) ?
|
|
101496
101594
|
ts.chainDiagnosticMessages(undefined, ts.Diagnostics.Matched_by_include_pattern_0_in_1, matchedByInclude, toFileName(options.configFile, fileNameConvertor)) :
|
|
101497
|
-
ts.chainDiagnosticMessages(undefined,
|
|
101595
|
+
ts.chainDiagnosticMessages(undefined, matchedByInclude ?
|
|
101596
|
+
ts.Diagnostics.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk :
|
|
101597
|
+
ts.Diagnostics.Root_file_specified_for_compilation);
|
|
101498
101598
|
case ts.FileIncludeKind.SourceFromProjectReference:
|
|
101499
101599
|
case ts.FileIncludeKind.OutputFromProjectReference:
|
|
101500
101600
|
var isOutput = reason.kind === ts.FileIncludeKind.OutputFromProjectReference;
|