@typescript-deploys/pr-build 5.9.0-pr-60898-5 → 5.9.0-pr-61291-4
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 +31 -21
- 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.es2015.symbol.wellknown.d.ts +1 -1
- package/lib/lib.es2017.sharedmemory.d.ts +1 -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/typescript.js +31 -21
- package/lib/zh-cn/diagnosticMessages.generated.json +1 -0
- package/lib/zh-tw/diagnosticMessages.generated.json +1 -0
- package/package.json +1 -1
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-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20250228`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -6937,6 +6937,7 @@ var Diagnostics = {
|
|
|
6937
6937
|
One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value: diag(4126, 1 /* Error */, "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126", "One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),
|
|
6938
6938
|
This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic: diag(4127, 1 /* Error */, "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127", "This member cannot have an 'override' modifier because its name is dynamic."),
|
|
6939
6939
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic: diag(4128, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128", "This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),
|
|
6940
|
+
Private_or_protected_member_0_cannot_be_accessed_via_indexed_access: diag(4129, 1 /* Error */, "Private_or_protected_member_0_cannot_be_accessed_via_indexed_access_4129", "Private or protected member '{0}' cannot be accessed via indexed access."),
|
|
6940
6941
|
The_current_host_does_not_support_the_0_option: diag(5001, 1 /* Error */, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
|
|
6941
6942
|
Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1 /* Error */, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
|
|
6942
6943
|
File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1 /* Error */, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
|
|
@@ -50483,6 +50484,7 @@ function createTypeChecker(host) {
|
|
|
50483
50484
|
const context = syntacticContext;
|
|
50484
50485
|
if (context.bundled || context.enclosingFile !== getSourceFileOfNode(lit)) {
|
|
50485
50486
|
let name = lit.text;
|
|
50487
|
+
const originalName = name;
|
|
50486
50488
|
const nodeSymbol = getNodeLinks(parent).resolvedSymbol;
|
|
50487
50489
|
const meaning = parent.isTypeOf ? 111551 /* Value */ : 788968 /* Type */;
|
|
50488
50490
|
const parentSymbol = nodeSymbol && isSymbolAccessible(
|
|
@@ -50512,7 +50514,9 @@ function createTypeChecker(host) {
|
|
|
50512
50514
|
context.tracker.reportLikelyUnsafeImportRequiredError(name);
|
|
50513
50515
|
}
|
|
50514
50516
|
}
|
|
50515
|
-
|
|
50517
|
+
if (name !== originalName) {
|
|
50518
|
+
return name;
|
|
50519
|
+
}
|
|
50516
50520
|
}
|
|
50517
50521
|
},
|
|
50518
50522
|
canReuseTypeNode(context, typeNode) {
|
|
@@ -52886,10 +52890,7 @@ function createTypeChecker(host) {
|
|
|
52886
52890
|
/*context*/
|
|
52887
52891
|
void 0
|
|
52888
52892
|
);
|
|
52889
|
-
|
|
52890
|
-
setTextRange2(context, updated, node2);
|
|
52891
|
-
}
|
|
52892
|
-
return updated;
|
|
52893
|
+
return setTextRange2(context, updated, node2);
|
|
52893
52894
|
}
|
|
52894
52895
|
}
|
|
52895
52896
|
function serializeTypeName(context, node, isTypeOf, typeArguments) {
|
|
@@ -55603,7 +55604,7 @@ function createTypeChecker(host) {
|
|
|
55603
55604
|
if (reportErrors2) {
|
|
55604
55605
|
reportErrorsFromWidening(declaration, type);
|
|
55605
55606
|
}
|
|
55606
|
-
if (type.flags & 8192 /* UniqueESSymbol */ && (isBindingElement(declaration) || !declaration
|
|
55607
|
+
if (type.flags & 8192 /* UniqueESSymbol */ && (isBindingElement(declaration) || !tryGetTypeFromEffectiveTypeNode(declaration)) && type.symbol !== getSymbolOfDeclaration(declaration)) {
|
|
55607
55608
|
type = esSymbolType;
|
|
55608
55609
|
}
|
|
55609
55610
|
return getWidenedType(type);
|
|
@@ -69702,7 +69703,7 @@ function createTypeChecker(host) {
|
|
|
69702
69703
|
if (isBindingPattern(reference) || isFunctionExpressionOrArrowFunction(reference) || isObjectLiteralMethod(reference)) {
|
|
69703
69704
|
if (isIdentifier(expr)) {
|
|
69704
69705
|
const symbol = getResolvedSymbol(expr);
|
|
69705
|
-
const declaration = symbol.valueDeclaration;
|
|
69706
|
+
const declaration = getExportSymbolOfValueSymbolIfExported(symbol).valueDeclaration;
|
|
69706
69707
|
if (declaration && (isBindingElement(declaration) || isParameter(declaration)) && reference === declaration.parent && !declaration.initializer && !declaration.dotDotDotToken) {
|
|
69707
69708
|
return declaration;
|
|
69708
69709
|
}
|
|
@@ -80719,6 +80720,18 @@ function createTypeChecker(host) {
|
|
|
80719
80720
|
}
|
|
80720
80721
|
function checkIndexedAccessIndexType(type, accessNode) {
|
|
80721
80722
|
if (!(type.flags & 8388608 /* IndexedAccess */)) {
|
|
80723
|
+
if (isIndexedAccessTypeNode(accessNode)) {
|
|
80724
|
+
const indexType2 = getTypeFromTypeNode(accessNode.indexType);
|
|
80725
|
+
const objectType2 = getTypeFromTypeNode(accessNode.objectType);
|
|
80726
|
+
const propertyName2 = getPropertyNameFromIndex(indexType2, accessNode);
|
|
80727
|
+
if (propertyName2) {
|
|
80728
|
+
const propertySymbol = forEachType(getApparentType(objectType2), (t) => getPropertyOfType(t, propertyName2));
|
|
80729
|
+
if (propertySymbol && getDeclarationModifierFlagsFromSymbol(propertySymbol) & 6 /* NonPublicAccessibilityModifier */) {
|
|
80730
|
+
error(accessNode, Diagnostics.Private_or_protected_member_0_cannot_be_accessed_via_indexed_access, unescapeLeadingUnderscores(propertyName2));
|
|
80731
|
+
return errorType;
|
|
80732
|
+
}
|
|
80733
|
+
}
|
|
80734
|
+
}
|
|
80722
80735
|
return type;
|
|
80723
80736
|
}
|
|
80724
80737
|
const objectType = type.objectType;
|
|
@@ -80731,14 +80744,12 @@ function createTypeChecker(host) {
|
|
|
80731
80744
|
}
|
|
80732
80745
|
return type;
|
|
80733
80746
|
}
|
|
80734
|
-
|
|
80735
|
-
|
|
80736
|
-
|
|
80737
|
-
|
|
80738
|
-
|
|
80739
|
-
|
|
80740
|
-
return errorType;
|
|
80741
|
-
}
|
|
80747
|
+
const propertyName = getPropertyNameFromIndex(indexType, accessNode);
|
|
80748
|
+
if (propertyName) {
|
|
80749
|
+
const propertySymbol = forEachType(getApparentType(objectType), (t) => getPropertyOfType(t, propertyName));
|
|
80750
|
+
if (propertySymbol && getDeclarationModifierFlagsFromSymbol(propertySymbol) & 6 /* NonPublicAccessibilityModifier */) {
|
|
80751
|
+
error(accessNode, Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter, unescapeLeadingUnderscores(propertyName));
|
|
80752
|
+
return errorType;
|
|
80742
80753
|
}
|
|
80743
80754
|
}
|
|
80744
80755
|
error(accessNode, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(objectType));
|
|
@@ -131886,9 +131897,11 @@ function createSyntacticTypeNodeBuilder(options, resolver) {
|
|
|
131886
131897
|
if (!resolver.canReuseTypeNode(context, node)) {
|
|
131887
131898
|
return resolver.serializeExistingTypeNode(context, node);
|
|
131888
131899
|
}
|
|
131900
|
+
const specifier = rewriteModuleSpecifier2(node, node.argument.literal);
|
|
131901
|
+
const literal = specifier === node.argument.literal ? reuseNode(context, node.argument.literal) : specifier;
|
|
131889
131902
|
return factory.updateImportTypeNode(
|
|
131890
131903
|
node,
|
|
131891
|
-
|
|
131904
|
+
literal === node.argument.literal ? reuseNode(context, node.argument) : factory.createLiteralTypeNode(literal),
|
|
131892
131905
|
visitNode(node.attributes, visitExistingNodeTreeSymbols, isImportAttributes),
|
|
131893
131906
|
visitNode(node.qualifier, visitExistingNodeTreeSymbols, isEntityName),
|
|
131894
131907
|
visitNodes2(node.typeArguments, visitExistingNodeTreeSymbols, isTypeNode),
|
|
@@ -132043,10 +132056,7 @@ function createSyntacticTypeNodeBuilder(options, resolver) {
|
|
|
132043
132056
|
}
|
|
132044
132057
|
function rewriteModuleSpecifier2(parent, lit) {
|
|
132045
132058
|
const newName = resolver.getModuleSpecifierOverride(context, parent, lit);
|
|
132046
|
-
|
|
132047
|
-
return setOriginalNode(factory.createStringLiteral(newName), lit);
|
|
132048
|
-
}
|
|
132049
|
-
return visitNode(lit, visitExistingNodeTreeSymbols, isStringLiteral);
|
|
132059
|
+
return newName ? setOriginalNode(factory.createStringLiteral(newName), lit) : lit;
|
|
132050
132060
|
}
|
|
132051
132061
|
}
|
|
132052
132062
|
}
|
|
@@ -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": "Esta condición siempre devolverá true, porque esta función se define siempre. ¿Pretendía llamarla en su lugar?",
|
|
1656
1656
|
"This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Esta función de constructor puede convertirse en una declaración de clase.",
|
|
1657
1657
|
"This_expression_is_always_nullish_2871": "Esta expresión siempre acepta valores NULL.",
|
|
1658
|
+
"This_expression_is_never_nullish_2881": "Esta expresión nunca es nula.",
|
|
1658
1659
|
"This_expression_is_not_callable_2349": "No se puede llamar a esta expresión.",
|
|
1659
1660
|
"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "No se puede llamar a esta expresión porque es un descriptor de acceso \"get\". ¿Pretendía usarlo sin \"()\"?",
|
|
1660
1661
|
"This_expression_is_not_constructable_2351": "No se puede construir esta expresión.",
|
|
@@ -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": "Questa condizione restituirà sempre true perché questa funzione è sempre definita. Si intendeva chiamarla?",
|
|
1656
1656
|
"This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Questa funzione del costruttore può essere convertita in una dichiarazione di classe.",
|
|
1657
1657
|
"This_expression_is_always_nullish_2871": "Questa espressione è sempre nullish.",
|
|
1658
|
+
"This_expression_is_never_nullish_2881": "Questa espressione non è mai null.",
|
|
1658
1659
|
"This_expression_is_not_callable_2349": "Questa espressione non può essere chiamata.",
|
|
1659
1660
|
"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Non è possibile chiamare questa espressione perché è una funzione di accesso 'get'. Si intendeva usarla senza '()'?",
|
|
1660
1661
|
"This_expression_is_not_constructable_2351": "Questa espressione non può essere costruita.",
|
|
@@ -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": "이 식은 생성할 수 없습니다.",
|
|
@@ -29,13 +29,13 @@ interface SharedArrayBuffer {
|
|
|
29
29
|
* Returns a section of an SharedArrayBuffer.
|
|
30
30
|
*/
|
|
31
31
|
slice(begin?: number, end?: number): SharedArrayBuffer;
|
|
32
|
-
readonly [Symbol.species]: SharedArrayBuffer;
|
|
33
32
|
readonly [Symbol.toStringTag]: "SharedArrayBuffer";
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
interface SharedArrayBufferConstructor {
|
|
37
36
|
readonly prototype: SharedArrayBuffer;
|
|
38
37
|
new (byteLength?: number): SharedArrayBuffer;
|
|
38
|
+
readonly [Symbol.species]: SharedArrayBufferConstructor;
|
|
39
39
|
}
|
|
40
40
|
declare var SharedArrayBuffer: SharedArrayBufferConstructor;
|
|
41
41
|
|
|
@@ -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": "Esta condição sempre retornará verdadeira, uma vez que esta função foi sempre definida. Você pretendia chamá-la em vez disso?",
|
|
1656
1656
|
"This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Esta função de construtor pode ser convertida em uma declaração de classe.",
|
|
1657
1657
|
"This_expression_is_always_nullish_2871": "Essa expressão sempre é nula.",
|
|
1658
|
+
"This_expression_is_never_nullish_2881": "Esta expressão nunca é nula.",
|
|
1658
1659
|
"This_expression_is_not_callable_2349": "Essa expressão não pode ser chamada.",
|
|
1659
1660
|
"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Esta expressão não pode ser chamada porque é um acessador 'get'. Você quis usá-la sem '()'?",
|
|
1660
1661
|
"This_expression_is_not_constructable_2351": "Essa expressão não pode ser construída.",
|
|
@@ -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": "Это выражение всегда равно нулю.",
|
|
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": "İş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-insiders.
|
|
2288
|
+
var version = `${versionMajorMinor}.0-insiders.20250228`;
|
|
2289
2289
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2290
2290
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2291
2291
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -10323,6 +10323,7 @@ var Diagnostics = {
|
|
|
10323
10323
|
One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value: diag(4126, 1 /* Error */, "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126", "One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),
|
|
10324
10324
|
This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic: diag(4127, 1 /* Error */, "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127", "This member cannot have an 'override' modifier because its name is dynamic."),
|
|
10325
10325
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic: diag(4128, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128", "This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),
|
|
10326
|
+
Private_or_protected_member_0_cannot_be_accessed_via_indexed_access: diag(4129, 1 /* Error */, "Private_or_protected_member_0_cannot_be_accessed_via_indexed_access_4129", "Private or protected member '{0}' cannot be accessed via indexed access."),
|
|
10326
10327
|
The_current_host_does_not_support_the_0_option: diag(5001, 1 /* Error */, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
|
|
10327
10328
|
Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1 /* Error */, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
|
|
10328
10329
|
File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1 /* Error */, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
|
|
@@ -55093,6 +55094,7 @@ function createTypeChecker(host) {
|
|
|
55093
55094
|
const context = syntacticContext;
|
|
55094
55095
|
if (context.bundled || context.enclosingFile !== getSourceFileOfNode(lit)) {
|
|
55095
55096
|
let name = lit.text;
|
|
55097
|
+
const originalName = name;
|
|
55096
55098
|
const nodeSymbol = getNodeLinks(parent2).resolvedSymbol;
|
|
55097
55099
|
const meaning = parent2.isTypeOf ? 111551 /* Value */ : 788968 /* Type */;
|
|
55098
55100
|
const parentSymbol = nodeSymbol && isSymbolAccessible(
|
|
@@ -55122,7 +55124,9 @@ function createTypeChecker(host) {
|
|
|
55122
55124
|
context.tracker.reportLikelyUnsafeImportRequiredError(name);
|
|
55123
55125
|
}
|
|
55124
55126
|
}
|
|
55125
|
-
|
|
55127
|
+
if (name !== originalName) {
|
|
55128
|
+
return name;
|
|
55129
|
+
}
|
|
55126
55130
|
}
|
|
55127
55131
|
},
|
|
55128
55132
|
canReuseTypeNode(context, typeNode) {
|
|
@@ -57496,10 +57500,7 @@ function createTypeChecker(host) {
|
|
|
57496
57500
|
/*context*/
|
|
57497
57501
|
void 0
|
|
57498
57502
|
);
|
|
57499
|
-
|
|
57500
|
-
setTextRange2(context, updated, node2);
|
|
57501
|
-
}
|
|
57502
|
-
return updated;
|
|
57503
|
+
return setTextRange2(context, updated, node2);
|
|
57503
57504
|
}
|
|
57504
57505
|
}
|
|
57505
57506
|
function serializeTypeName(context, node, isTypeOf, typeArguments) {
|
|
@@ -60213,7 +60214,7 @@ function createTypeChecker(host) {
|
|
|
60213
60214
|
if (reportErrors2) {
|
|
60214
60215
|
reportErrorsFromWidening(declaration, type);
|
|
60215
60216
|
}
|
|
60216
|
-
if (type.flags & 8192 /* UniqueESSymbol */ && (isBindingElement(declaration) || !declaration
|
|
60217
|
+
if (type.flags & 8192 /* UniqueESSymbol */ && (isBindingElement(declaration) || !tryGetTypeFromEffectiveTypeNode(declaration)) && type.symbol !== getSymbolOfDeclaration(declaration)) {
|
|
60217
60218
|
type = esSymbolType;
|
|
60218
60219
|
}
|
|
60219
60220
|
return getWidenedType(type);
|
|
@@ -74312,7 +74313,7 @@ function createTypeChecker(host) {
|
|
|
74312
74313
|
if (isBindingPattern(reference) || isFunctionExpressionOrArrowFunction(reference) || isObjectLiteralMethod(reference)) {
|
|
74313
74314
|
if (isIdentifier(expr)) {
|
|
74314
74315
|
const symbol = getResolvedSymbol(expr);
|
|
74315
|
-
const declaration = symbol.valueDeclaration;
|
|
74316
|
+
const declaration = getExportSymbolOfValueSymbolIfExported(symbol).valueDeclaration;
|
|
74316
74317
|
if (declaration && (isBindingElement(declaration) || isParameter(declaration)) && reference === declaration.parent && !declaration.initializer && !declaration.dotDotDotToken) {
|
|
74317
74318
|
return declaration;
|
|
74318
74319
|
}
|
|
@@ -85329,6 +85330,18 @@ function createTypeChecker(host) {
|
|
|
85329
85330
|
}
|
|
85330
85331
|
function checkIndexedAccessIndexType(type, accessNode) {
|
|
85331
85332
|
if (!(type.flags & 8388608 /* IndexedAccess */)) {
|
|
85333
|
+
if (isIndexedAccessTypeNode(accessNode)) {
|
|
85334
|
+
const indexType2 = getTypeFromTypeNode(accessNode.indexType);
|
|
85335
|
+
const objectType2 = getTypeFromTypeNode(accessNode.objectType);
|
|
85336
|
+
const propertyName2 = getPropertyNameFromIndex(indexType2, accessNode);
|
|
85337
|
+
if (propertyName2) {
|
|
85338
|
+
const propertySymbol = forEachType(getApparentType(objectType2), (t) => getPropertyOfType(t, propertyName2));
|
|
85339
|
+
if (propertySymbol && getDeclarationModifierFlagsFromSymbol(propertySymbol) & 6 /* NonPublicAccessibilityModifier */) {
|
|
85340
|
+
error2(accessNode, Diagnostics.Private_or_protected_member_0_cannot_be_accessed_via_indexed_access, unescapeLeadingUnderscores(propertyName2));
|
|
85341
|
+
return errorType;
|
|
85342
|
+
}
|
|
85343
|
+
}
|
|
85344
|
+
}
|
|
85332
85345
|
return type;
|
|
85333
85346
|
}
|
|
85334
85347
|
const objectType = type.objectType;
|
|
@@ -85341,14 +85354,12 @@ function createTypeChecker(host) {
|
|
|
85341
85354
|
}
|
|
85342
85355
|
return type;
|
|
85343
85356
|
}
|
|
85344
|
-
|
|
85345
|
-
|
|
85346
|
-
|
|
85347
|
-
|
|
85348
|
-
|
|
85349
|
-
|
|
85350
|
-
return errorType;
|
|
85351
|
-
}
|
|
85357
|
+
const propertyName = getPropertyNameFromIndex(indexType, accessNode);
|
|
85358
|
+
if (propertyName) {
|
|
85359
|
+
const propertySymbol = forEachType(getApparentType(objectType), (t) => getPropertyOfType(t, propertyName));
|
|
85360
|
+
if (propertySymbol && getDeclarationModifierFlagsFromSymbol(propertySymbol) & 6 /* NonPublicAccessibilityModifier */) {
|
|
85361
|
+
error2(accessNode, Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter, unescapeLeadingUnderscores(propertyName));
|
|
85362
|
+
return errorType;
|
|
85352
85363
|
}
|
|
85353
85364
|
}
|
|
85354
85365
|
error2(accessNode, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(objectType));
|
|
@@ -136853,9 +136864,11 @@ function createSyntacticTypeNodeBuilder(options, resolver) {
|
|
|
136853
136864
|
if (!resolver.canReuseTypeNode(context, node)) {
|
|
136854
136865
|
return resolver.serializeExistingTypeNode(context, node);
|
|
136855
136866
|
}
|
|
136867
|
+
const specifier = rewriteModuleSpecifier2(node, node.argument.literal);
|
|
136868
|
+
const literal = specifier === node.argument.literal ? reuseNode(context, node.argument.literal) : specifier;
|
|
136856
136869
|
return factory.updateImportTypeNode(
|
|
136857
136870
|
node,
|
|
136858
|
-
|
|
136871
|
+
literal === node.argument.literal ? reuseNode(context, node.argument) : factory.createLiteralTypeNode(literal),
|
|
136859
136872
|
visitNode(node.attributes, visitExistingNodeTreeSymbols, isImportAttributes),
|
|
136860
136873
|
visitNode(node.qualifier, visitExistingNodeTreeSymbols, isEntityName),
|
|
136861
136874
|
visitNodes2(node.typeArguments, visitExistingNodeTreeSymbols, isTypeNode),
|
|
@@ -137010,10 +137023,7 @@ function createSyntacticTypeNodeBuilder(options, resolver) {
|
|
|
137010
137023
|
}
|
|
137011
137024
|
function rewriteModuleSpecifier2(parent2, lit) {
|
|
137012
137025
|
const newName = resolver.getModuleSpecifierOverride(context, parent2, lit);
|
|
137013
|
-
|
|
137014
|
-
return setOriginalNode(factory.createStringLiteral(newName), lit);
|
|
137015
|
-
}
|
|
137016
|
-
return visitNode(lit, visitExistingNodeTreeSymbols, isStringLiteral);
|
|
137026
|
+
return newName ? setOriginalNode(factory.createStringLiteral(newName), lit) : lit;
|
|
137017
137027
|
}
|
|
137018
137028
|
}
|
|
137019
137029
|
}
|
|
@@ -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": "無法建構此運算式。",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typescript-deploys/pr-build",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.9.0-pr-
|
|
5
|
+
"version": "5.9.0-pr-61291-4",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|