typescript 5.9.0-dev.20250227 → 5.9.0-dev.20250301
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/_tsc.js +6 -1
- package/lib/cs/diagnosticMessages.generated.json +1 -0
- package/lib/de/diagnosticMessages.generated.json +1 -0
- package/lib/fr/diagnosticMessages.generated.json +1 -0
- package/lib/ja/diagnosticMessages.generated.json +1 -0
- package/lib/ko/diagnosticMessages.generated.json +1 -0
- package/lib/pl/diagnosticMessages.generated.json +1 -0
- package/lib/tr/diagnosticMessages.generated.json +1 -0
- package/lib/typescript.js +6 -1
- package/lib/zh-tw/diagnosticMessages.generated.json +1 -0
- package/package.json +2 -2
package/lib/_tsc.js
CHANGED
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
18
18
|
|
19
19
|
// src/compiler/corePublic.ts
|
20
20
|
var versionMajorMinor = "5.9";
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20250301`;
|
22
22
|
|
23
23
|
// src/compiler/core.ts
|
24
24
|
var emptyArray = [];
|
@@ -76782,6 +76782,11 @@ function createTypeChecker(host) {
|
|
76782
76782
|
if (file && fileExtensionIsOneOf(file.fileName, [".cts" /* Cts */, ".mts" /* Mts */])) {
|
76783
76783
|
grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead);
|
76784
76784
|
}
|
76785
|
+
if (compilerOptions.erasableSyntaxOnly) {
|
76786
|
+
const start = node.type.pos - "<".length;
|
76787
|
+
const end = skipTrivia(file.text, node.type.end) + ">".length;
|
76788
|
+
diagnostics.add(createFileDiagnostic(file, start, end - start, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled));
|
76789
|
+
}
|
76785
76790
|
}
|
76786
76791
|
return checkAssertionWorker(node, checkMode);
|
76787
76792
|
}
|
@@ -1655,6 +1655,7 @@
|
|
1655
1655
|
"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Tato podmínka vždy vrátí hodnotu True, protože tato funkce je vždy definována. Chtěli jste ji místo toho nazvat?",
|
1656
1656
|
"This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Tato funkce konstruktoru se může převést na deklaraci třídy.",
|
1657
1657
|
"This_expression_is_always_nullish_2871": "Tento výraz má vždy hodnotu null.",
|
1658
|
+
"This_expression_is_never_nullish_2881": "Tento výraz nikdy nemá hodnotu null.",
|
1658
1659
|
"This_expression_is_not_callable_2349": "Tento výraz se nedá zavolat.",
|
1659
1660
|
"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Tento výraz se nedá volat, protože je to přístupový objekt get. Nechtěli jste ho použít bez ()?",
|
1660
1661
|
"This_expression_is_not_constructable_2351": "Tento výraz se nedá vytvořit.",
|
@@ -1655,6 +1655,7 @@
|
|
1655
1655
|
"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Diese Bedingung gibt immer TRUE zurück, weil diese Funktion immer definiert ist. Möchten Sie sie stattdessen aufrufen?",
|
1656
1656
|
"This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Diese Konstruktorfunktion kann in eine Klassendeklaration konvertiert werden.",
|
1657
1657
|
"This_expression_is_always_nullish_2871": "Dieser Ausdruck ist immer „NULLISH“.",
|
1658
|
+
"This_expression_is_never_nullish_2881": "Dieser binäre Ausdruck ist nie „NULLISH“.",
|
1658
1659
|
"This_expression_is_not_callable_2349": "Dieser Ausdruck kann nicht aufgerufen werden.",
|
1659
1660
|
"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Dieser Ausdruck kann nicht aufgerufen werden, weil es sich um eine get-Zugriffsmethode handelt. Möchten Sie den Wert ohne \"()\" verwenden?",
|
1660
1661
|
"This_expression_is_not_constructable_2351": "Dieser Ausdruck kann nicht erstellt werden.",
|
@@ -1655,6 +1655,7 @@
|
|
1655
1655
|
"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Cette condition retourne toujours true, car cette fonction est toujours définie. Est-ce que vous avez voulu l'appeler à la place ?",
|
1656
1656
|
"This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Cette fonction constructeur peut être convertie en déclaration de classe.",
|
1657
1657
|
"This_expression_is_always_nullish_2871": "Cette expression est toujours nulle.",
|
1658
|
+
"This_expression_is_never_nullish_2881": "Cette expression n’est jamais nulle.",
|
1658
1659
|
"This_expression_is_not_callable_2349": "Impossible d'appeler cette expression.",
|
1659
1660
|
"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Impossible d'appeler cette expression, car il s'agit d'un accesseur 'get'. Voulez-vous vraiment l'utiliser sans '()' ?",
|
1660
1661
|
"This_expression_is_not_constructable_2351": "Impossible de construire cette expression.",
|
@@ -1655,6 +1655,7 @@
|
|
1655
1655
|
"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "この関数は常に定義されているため、この条件は常に true を返します。代わりにこれを呼び出すことを意図していましたか?",
|
1656
1656
|
"This_constructor_function_may_be_converted_to_a_class_declaration_80002": "このコンストラクター関数はクラス宣言に変換される可能性があります。",
|
1657
1657
|
"This_expression_is_always_nullish_2871": "この式は常に null です。",
|
1658
|
+
"This_expression_is_never_nullish_2881": "この式が NULL 値になることはありません。",
|
1658
1659
|
"This_expression_is_not_callable_2349": "この式は呼び出し可能ではありません。",
|
1659
1660
|
"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "この式は 'get' アクセサーであるため、呼び出すことができません。'()' なしで使用しますか?",
|
1660
1661
|
"This_expression_is_not_constructable_2351": "この式はコンストラクト可能ではありません。",
|
@@ -1655,6 +1655,7 @@
|
|
1655
1655
|
"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "함수가 항상 정의되므로 이 조건은 항상 true를 반환합니다. 대신 호출하시겠어요?",
|
1656
1656
|
"This_constructor_function_may_be_converted_to_a_class_declaration_80002": "이 생성자 함수는 클래스 선언으로 변환될 수 있습니다.",
|
1657
1657
|
"This_expression_is_always_nullish_2871": "이 식은 항상 nullish입니다.",
|
1658
|
+
"This_expression_is_never_nullish_2881": "이 표현식은 nullish가 되지 않습니다.",
|
1658
1659
|
"This_expression_is_not_callable_2349": "이 식은 호출할 수 없습니다.",
|
1659
1660
|
"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "이 식은 'get' 접근자이므로 호출할 수 없습니다. '()' 없이 사용하시겠습니까?",
|
1660
1661
|
"This_expression_is_not_constructable_2351": "이 식은 생성할 수 없습니다.",
|
@@ -1655,6 +1655,7 @@
|
|
1655
1655
|
"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Ten warunek będzie zawsze zwracał wartość true, ponieważ funkcja jest zawsze zdefiniowana. Czy chcesz wywołać ją zamiast tego?",
|
1656
1656
|
"This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Ta funkcja konstruktora może zostać przekonwertowana na deklarację klasy.",
|
1657
1657
|
"This_expression_is_always_nullish_2871": "To wyrażenie ma zawsze wartość null.",
|
1658
|
+
"This_expression_is_never_nullish_2881": "To wyrażenie nigdy nie ma wartości null.",
|
1658
1659
|
"This_expression_is_not_callable_2349": "To wyrażenie nie jest wywoływalne.",
|
1659
1660
|
"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Tego wyrażenia nie można wywoływać, ponieważ jest to metoda dostępu „get”. Czy chodziło Ci o użycie go bez znaków „()”?",
|
1660
1661
|
"This_expression_is_not_constructable_2351": "Tego wyrażenia nie można skonstruować.",
|
@@ -1655,6 +1655,7 @@
|
|
1655
1655
|
"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "İşlev her zaman tanımlı olduğundan bu koşul her zaman true döndürür. Bunun yerine işlevi çağırmayı mı istediniz?",
|
1656
1656
|
"This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Bu oluşturucu işlevi bir sınıf bildirimine dönüştürülebilir.",
|
1657
1657
|
"This_expression_is_always_nullish_2871": "Bu ifade her zaman boş değerlidir.",
|
1658
|
+
"This_expression_is_never_nullish_2881": "Bu ifade hiçbir zaman boş gibi değildir.",
|
1658
1659
|
"This_expression_is_not_callable_2349": "Bu ifade çağrılabilir değil.",
|
1659
1660
|
"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Bu ifade 'get' erişimcisi olduğundan çağrılamaz. Bunu '()' olmadan mı kullanmak istiyorsunuz?",
|
1660
1661
|
"This_expression_is_not_constructable_2351": "Bu ifade oluşturulabilir değil.",
|
package/lib/typescript.js
CHANGED
@@ -2285,7 +2285,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
2285
2285
|
|
2286
2286
|
// src/compiler/corePublic.ts
|
2287
2287
|
var versionMajorMinor = "5.9";
|
2288
|
-
var version = `${versionMajorMinor}.0-dev.
|
2288
|
+
var version = `${versionMajorMinor}.0-dev.20250301`;
|
2289
2289
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
2290
2290
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
2291
2291
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
@@ -81392,6 +81392,11 @@ function createTypeChecker(host) {
|
|
81392
81392
|
if (file && fileExtensionIsOneOf(file.fileName, [".cts" /* Cts */, ".mts" /* Mts */])) {
|
81393
81393
|
grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead);
|
81394
81394
|
}
|
81395
|
+
if (compilerOptions.erasableSyntaxOnly) {
|
81396
|
+
const start = node.type.pos - "<".length;
|
81397
|
+
const end = skipTrivia(file.text, node.type.end) + ">".length;
|
81398
|
+
diagnostics.add(createFileDiagnostic(file, start, end - start, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled));
|
81399
|
+
}
|
81395
81400
|
}
|
81396
81401
|
return checkAssertionWorker(node, checkMode);
|
81397
81402
|
}
|
@@ -1655,6 +1655,7 @@
|
|
1655
1655
|
"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "因為永遠會定義此函式,所以此條件永遠會傳回 true。您是要改為呼叫該條件嗎?",
|
1656
1656
|
"This_constructor_function_may_be_converted_to_a_class_declaration_80002": "此建構函式可轉換為類別宣告。",
|
1657
1657
|
"This_expression_is_always_nullish_2871": "此運算式一律為 nullish.",
|
1658
|
+
"This_expression_is_never_nullish_2881": "此運算式一律不會是 nullish。",
|
1658
1659
|
"This_expression_is_not_callable_2349": "無法呼叫此運算式。",
|
1659
1660
|
"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "因為此運算式為 'get' 存取子,所以無法呼叫。要在沒有 '()' 的情況下,使用該運算式嗎?",
|
1660
1661
|
"This_expression_is_not_constructable_2351": "無法建構此運算式。",
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "typescript",
|
3
3
|
"author": "Microsoft Corp.",
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
5
|
-
"version": "5.9.0-dev.
|
5
|
+
"version": "5.9.0-dev.20250301",
|
6
6
|
"license": "Apache-2.0",
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
8
8
|
"keywords": [
|
@@ -116,5 +116,5 @@
|
|
116
116
|
"node": "20.1.0",
|
117
117
|
"npm": "8.19.4"
|
118
118
|
},
|
119
|
-
"gitHead": "
|
119
|
+
"gitHead": "15392346d05045742e653eab5c87538ff2a3c863"
|
120
120
|
}
|