@typescript-deploys/pr-build 5.9.0-pr-60898-5 → 5.9.0-pr-61342-2
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 +28 -25
- 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 +28 -25
- 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.20250304`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -50483,6 +50483,7 @@ function createTypeChecker(host) {
|
|
|
50483
50483
|
const context = syntacticContext;
|
|
50484
50484
|
if (context.bundled || context.enclosingFile !== getSourceFileOfNode(lit)) {
|
|
50485
50485
|
let name = lit.text;
|
|
50486
|
+
const originalName = name;
|
|
50486
50487
|
const nodeSymbol = getNodeLinks(parent).resolvedSymbol;
|
|
50487
50488
|
const meaning = parent.isTypeOf ? 111551 /* Value */ : 788968 /* Type */;
|
|
50488
50489
|
const parentSymbol = nodeSymbol && isSymbolAccessible(
|
|
@@ -50512,7 +50513,9 @@ function createTypeChecker(host) {
|
|
|
50512
50513
|
context.tracker.reportLikelyUnsafeImportRequiredError(name);
|
|
50513
50514
|
}
|
|
50514
50515
|
}
|
|
50515
|
-
|
|
50516
|
+
if (name !== originalName) {
|
|
50517
|
+
return name;
|
|
50518
|
+
}
|
|
50516
50519
|
}
|
|
50517
50520
|
},
|
|
50518
50521
|
canReuseTypeNode(context, typeNode) {
|
|
@@ -52886,10 +52889,7 @@ function createTypeChecker(host) {
|
|
|
52886
52889
|
/*context*/
|
|
52887
52890
|
void 0
|
|
52888
52891
|
);
|
|
52889
|
-
|
|
52890
|
-
setTextRange2(context, updated, node2);
|
|
52891
|
-
}
|
|
52892
|
-
return updated;
|
|
52892
|
+
return setTextRange2(context, updated, node2);
|
|
52893
52893
|
}
|
|
52894
52894
|
}
|
|
52895
52895
|
function serializeTypeName(context, node, isTypeOf, typeArguments) {
|
|
@@ -55603,7 +55603,7 @@ function createTypeChecker(host) {
|
|
|
55603
55603
|
if (reportErrors2) {
|
|
55604
55604
|
reportErrorsFromWidening(declaration, type);
|
|
55605
55605
|
}
|
|
55606
|
-
if (type.flags & 8192 /* UniqueESSymbol */ && (isBindingElement(declaration) || !declaration
|
|
55606
|
+
if (type.flags & 8192 /* UniqueESSymbol */ && (isBindingElement(declaration) || !tryGetTypeFromEffectiveTypeNode(declaration)) && type.symbol !== getSymbolOfDeclaration(declaration)) {
|
|
55607
55607
|
type = esSymbolType;
|
|
55608
55608
|
}
|
|
55609
55609
|
return getWidenedType(type);
|
|
@@ -69702,7 +69702,7 @@ function createTypeChecker(host) {
|
|
|
69702
69702
|
if (isBindingPattern(reference) || isFunctionExpressionOrArrowFunction(reference) || isObjectLiteralMethod(reference)) {
|
|
69703
69703
|
if (isIdentifier(expr)) {
|
|
69704
69704
|
const symbol = getResolvedSymbol(expr);
|
|
69705
|
-
const declaration = symbol.valueDeclaration;
|
|
69705
|
+
const declaration = getExportSymbolOfValueSymbolIfExported(symbol).valueDeclaration;
|
|
69706
69706
|
if (declaration && (isBindingElement(declaration) || isParameter(declaration)) && reference === declaration.parent && !declaration.initializer && !declaration.dotDotDotToken) {
|
|
69707
69707
|
return declaration;
|
|
69708
69708
|
}
|
|
@@ -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
|
}
|
|
@@ -131886,9 +131891,11 @@ function createSyntacticTypeNodeBuilder(options, resolver) {
|
|
|
131886
131891
|
if (!resolver.canReuseTypeNode(context, node)) {
|
|
131887
131892
|
return resolver.serializeExistingTypeNode(context, node);
|
|
131888
131893
|
}
|
|
131894
|
+
const specifier = rewriteModuleSpecifier2(node, node.argument.literal);
|
|
131895
|
+
const literal = specifier === node.argument.literal ? reuseNode(context, node.argument.literal) : specifier;
|
|
131889
131896
|
return factory.updateImportTypeNode(
|
|
131890
131897
|
node,
|
|
131891
|
-
|
|
131898
|
+
literal === node.argument.literal ? reuseNode(context, node.argument) : factory.createLiteralTypeNode(literal),
|
|
131892
131899
|
visitNode(node.attributes, visitExistingNodeTreeSymbols, isImportAttributes),
|
|
131893
131900
|
visitNode(node.qualifier, visitExistingNodeTreeSymbols, isEntityName),
|
|
131894
131901
|
visitNodes2(node.typeArguments, visitExistingNodeTreeSymbols, isTypeNode),
|
|
@@ -132043,10 +132050,7 @@ function createSyntacticTypeNodeBuilder(options, resolver) {
|
|
|
132043
132050
|
}
|
|
132044
132051
|
function rewriteModuleSpecifier2(parent, lit) {
|
|
132045
132052
|
const newName = resolver.getModuleSpecifierOverride(context, parent, lit);
|
|
132046
|
-
|
|
132047
|
-
return setOriginalNode(factory.createStringLiteral(newName), lit);
|
|
132048
|
-
}
|
|
132049
|
-
return visitNode(lit, visitExistingNodeTreeSymbols, isStringLiteral);
|
|
132053
|
+
return newName ? setOriginalNode(factory.createStringLiteral(newName), lit) : lit;
|
|
132050
132054
|
}
|
|
132051
132055
|
}
|
|
132052
132056
|
}
|
|
@@ -132625,18 +132629,17 @@ function createSyntacticTypeNodeBuilder(options, resolver) {
|
|
|
132625
132629
|
);
|
|
132626
132630
|
}
|
|
132627
132631
|
function reuseTypeParameters(typeParameters, context) {
|
|
132628
|
-
return typeParameters == null ? void 0 : typeParameters.map(
|
|
132629
|
-
|
|
132630
|
-
|
|
132631
|
-
|
|
132632
|
-
|
|
132633
|
-
|
|
132634
|
-
|
|
132635
|
-
|
|
132636
|
-
|
|
132637
|
-
|
|
132638
|
-
|
|
132639
|
-
);
|
|
132632
|
+
return typeParameters == null ? void 0 : typeParameters.map((tp) => {
|
|
132633
|
+
var _a;
|
|
132634
|
+
const { node: tpName } = resolver.trackExistingEntityName(context, tp.name);
|
|
132635
|
+
return factory.updateTypeParameterDeclaration(
|
|
132636
|
+
tp,
|
|
132637
|
+
(_a = tp.modifiers) == null ? void 0 : _a.map((m) => reuseNode(context, m)),
|
|
132638
|
+
tpName,
|
|
132639
|
+
serializeExistingTypeNodeWithFallback(tp.constraint, context),
|
|
132640
|
+
serializeExistingTypeNodeWithFallback(tp.default, context)
|
|
132641
|
+
);
|
|
132642
|
+
});
|
|
132640
132643
|
}
|
|
132641
132644
|
function typeFromObjectLiteralMethod(method, name, context, isConstContext) {
|
|
132642
132645
|
const returnType = createReturnFromSignature(
|
|
@@ -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.20250304`;
|
|
2289
2289
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2290
2290
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2291
2291
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -55093,6 +55093,7 @@ function createTypeChecker(host) {
|
|
|
55093
55093
|
const context = syntacticContext;
|
|
55094
55094
|
if (context.bundled || context.enclosingFile !== getSourceFileOfNode(lit)) {
|
|
55095
55095
|
let name = lit.text;
|
|
55096
|
+
const originalName = name;
|
|
55096
55097
|
const nodeSymbol = getNodeLinks(parent2).resolvedSymbol;
|
|
55097
55098
|
const meaning = parent2.isTypeOf ? 111551 /* Value */ : 788968 /* Type */;
|
|
55098
55099
|
const parentSymbol = nodeSymbol && isSymbolAccessible(
|
|
@@ -55122,7 +55123,9 @@ function createTypeChecker(host) {
|
|
|
55122
55123
|
context.tracker.reportLikelyUnsafeImportRequiredError(name);
|
|
55123
55124
|
}
|
|
55124
55125
|
}
|
|
55125
|
-
|
|
55126
|
+
if (name !== originalName) {
|
|
55127
|
+
return name;
|
|
55128
|
+
}
|
|
55126
55129
|
}
|
|
55127
55130
|
},
|
|
55128
55131
|
canReuseTypeNode(context, typeNode) {
|
|
@@ -57496,10 +57499,7 @@ function createTypeChecker(host) {
|
|
|
57496
57499
|
/*context*/
|
|
57497
57500
|
void 0
|
|
57498
57501
|
);
|
|
57499
|
-
|
|
57500
|
-
setTextRange2(context, updated, node2);
|
|
57501
|
-
}
|
|
57502
|
-
return updated;
|
|
57502
|
+
return setTextRange2(context, updated, node2);
|
|
57503
57503
|
}
|
|
57504
57504
|
}
|
|
57505
57505
|
function serializeTypeName(context, node, isTypeOf, typeArguments) {
|
|
@@ -60213,7 +60213,7 @@ function createTypeChecker(host) {
|
|
|
60213
60213
|
if (reportErrors2) {
|
|
60214
60214
|
reportErrorsFromWidening(declaration, type);
|
|
60215
60215
|
}
|
|
60216
|
-
if (type.flags & 8192 /* UniqueESSymbol */ && (isBindingElement(declaration) || !declaration
|
|
60216
|
+
if (type.flags & 8192 /* UniqueESSymbol */ && (isBindingElement(declaration) || !tryGetTypeFromEffectiveTypeNode(declaration)) && type.symbol !== getSymbolOfDeclaration(declaration)) {
|
|
60217
60217
|
type = esSymbolType;
|
|
60218
60218
|
}
|
|
60219
60219
|
return getWidenedType(type);
|
|
@@ -74312,7 +74312,7 @@ function createTypeChecker(host) {
|
|
|
74312
74312
|
if (isBindingPattern(reference) || isFunctionExpressionOrArrowFunction(reference) || isObjectLiteralMethod(reference)) {
|
|
74313
74313
|
if (isIdentifier(expr)) {
|
|
74314
74314
|
const symbol = getResolvedSymbol(expr);
|
|
74315
|
-
const declaration = symbol.valueDeclaration;
|
|
74315
|
+
const declaration = getExportSymbolOfValueSymbolIfExported(symbol).valueDeclaration;
|
|
74316
74316
|
if (declaration && (isBindingElement(declaration) || isParameter(declaration)) && reference === declaration.parent && !declaration.initializer && !declaration.dotDotDotToken) {
|
|
74317
74317
|
return declaration;
|
|
74318
74318
|
}
|
|
@@ -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
|
}
|
|
@@ -136853,9 +136858,11 @@ function createSyntacticTypeNodeBuilder(options, resolver) {
|
|
|
136853
136858
|
if (!resolver.canReuseTypeNode(context, node)) {
|
|
136854
136859
|
return resolver.serializeExistingTypeNode(context, node);
|
|
136855
136860
|
}
|
|
136861
|
+
const specifier = rewriteModuleSpecifier2(node, node.argument.literal);
|
|
136862
|
+
const literal = specifier === node.argument.literal ? reuseNode(context, node.argument.literal) : specifier;
|
|
136856
136863
|
return factory.updateImportTypeNode(
|
|
136857
136864
|
node,
|
|
136858
|
-
|
|
136865
|
+
literal === node.argument.literal ? reuseNode(context, node.argument) : factory.createLiteralTypeNode(literal),
|
|
136859
136866
|
visitNode(node.attributes, visitExistingNodeTreeSymbols, isImportAttributes),
|
|
136860
136867
|
visitNode(node.qualifier, visitExistingNodeTreeSymbols, isEntityName),
|
|
136861
136868
|
visitNodes2(node.typeArguments, visitExistingNodeTreeSymbols, isTypeNode),
|
|
@@ -137010,10 +137017,7 @@ function createSyntacticTypeNodeBuilder(options, resolver) {
|
|
|
137010
137017
|
}
|
|
137011
137018
|
function rewriteModuleSpecifier2(parent2, lit) {
|
|
137012
137019
|
const newName = resolver.getModuleSpecifierOverride(context, parent2, lit);
|
|
137013
|
-
|
|
137014
|
-
return setOriginalNode(factory.createStringLiteral(newName), lit);
|
|
137015
|
-
}
|
|
137016
|
-
return visitNode(lit, visitExistingNodeTreeSymbols, isStringLiteral);
|
|
137020
|
+
return newName ? setOriginalNode(factory.createStringLiteral(newName), lit) : lit;
|
|
137017
137021
|
}
|
|
137018
137022
|
}
|
|
137019
137023
|
}
|
|
@@ -137592,18 +137596,17 @@ function createSyntacticTypeNodeBuilder(options, resolver) {
|
|
|
137592
137596
|
);
|
|
137593
137597
|
}
|
|
137594
137598
|
function reuseTypeParameters(typeParameters, context) {
|
|
137595
|
-
return typeParameters == null ? void 0 : typeParameters.map(
|
|
137596
|
-
|
|
137597
|
-
|
|
137598
|
-
|
|
137599
|
-
|
|
137600
|
-
|
|
137601
|
-
|
|
137602
|
-
|
|
137603
|
-
|
|
137604
|
-
|
|
137605
|
-
|
|
137606
|
-
);
|
|
137599
|
+
return typeParameters == null ? void 0 : typeParameters.map((tp) => {
|
|
137600
|
+
var _a;
|
|
137601
|
+
const { node: tpName } = resolver.trackExistingEntityName(context, tp.name);
|
|
137602
|
+
return factory.updateTypeParameterDeclaration(
|
|
137603
|
+
tp,
|
|
137604
|
+
(_a = tp.modifiers) == null ? void 0 : _a.map((m) => reuseNode(context, m)),
|
|
137605
|
+
tpName,
|
|
137606
|
+
serializeExistingTypeNodeWithFallback(tp.constraint, context),
|
|
137607
|
+
serializeExistingTypeNodeWithFallback(tp.default, context)
|
|
137608
|
+
);
|
|
137609
|
+
});
|
|
137607
137610
|
}
|
|
137608
137611
|
function typeFromObjectLiteralMethod(method, name, context, isConstContext) {
|
|
137609
137612
|
const returnType = createReturnFromSignature(
|
|
@@ -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-61342-2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|