@typescript-deploys/pr-build 5.4.0-pr-55924-28 → 5.4.0-pr-56640-15
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 +19 -41
- package/lib/tsserver.js +20 -43
- package/lib/typescript.js +20 -43
- package/lib/typingsInstaller.js +0 -3
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -3483,7 +3483,6 @@ var ModifierFlags = /* @__PURE__ */ ((ModifierFlags3) => {
|
|
|
3483
3483
|
return ModifierFlags3;
|
|
3484
3484
|
})(ModifierFlags || {});
|
|
3485
3485
|
var RelationComparisonResult = /* @__PURE__ */ ((RelationComparisonResult3) => {
|
|
3486
|
-
RelationComparisonResult3[RelationComparisonResult3["None"] = 0] = "None";
|
|
3487
3486
|
RelationComparisonResult3[RelationComparisonResult3["Succeeded"] = 1] = "Succeeded";
|
|
3488
3487
|
RelationComparisonResult3[RelationComparisonResult3["Failed"] = 2] = "Failed";
|
|
3489
3488
|
RelationComparisonResult3[RelationComparisonResult3["Reported"] = 4] = "Reported";
|
|
@@ -6781,8 +6780,6 @@ var Diagnostics = {
|
|
|
6781
6780
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0: diag(4122, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122", "This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),
|
|
6782
6781
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1: diag(4123, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123", "This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),
|
|
6783
6782
|
Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4124, 1 /* Error */, "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124", "Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),
|
|
6784
|
-
Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given: diag(4125, 1 /* Error */, "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125", "Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),
|
|
6785
|
-
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."),
|
|
6786
6783
|
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."),
|
|
6787
6784
|
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."),
|
|
6788
6785
|
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}'."),
|
|
@@ -49570,7 +49567,7 @@ function createTypeChecker(host) {
|
|
|
49570
49567
|
return factory.createStringLiteral(name, !!singleQuote);
|
|
49571
49568
|
}
|
|
49572
49569
|
if (isNumericLiteralName(name) && startsWith(name, "-")) {
|
|
49573
|
-
return factory.createComputedPropertyName(factory.createNumericLiteral(
|
|
49570
|
+
return factory.createComputedPropertyName(factory.createPrefixUnaryExpression(41 /* MinusToken */, factory.createNumericLiteral(-name)));
|
|
49574
49571
|
}
|
|
49575
49572
|
return createPropertyNameNodeForIdentifierOrLiteral(name, getEmitScriptTarget(compilerOptions), singleQuote, stringNamed, isMethod);
|
|
49576
49573
|
}
|
|
@@ -53636,11 +53633,10 @@ function createTypeChecker(host) {
|
|
|
53636
53633
|
const baseTypes = getBaseTypes(source);
|
|
53637
53634
|
if (baseTypes.length) {
|
|
53638
53635
|
if (source.symbol && members === getMembersOfSymbol(source.symbol)) {
|
|
53639
|
-
const symbolTable = createSymbolTable();
|
|
53640
|
-
|
|
53641
|
-
|
|
53642
|
-
|
|
53643
|
-
}
|
|
53636
|
+
const symbolTable = createSymbolTable(source.declaredProperties);
|
|
53637
|
+
const sourceIndex = getIndexSymbol(source.symbol);
|
|
53638
|
+
if (sourceIndex) {
|
|
53639
|
+
symbolTable.set("__index" /* Index */, sourceIndex);
|
|
53644
53640
|
}
|
|
53645
53641
|
members = symbolTable;
|
|
53646
53642
|
}
|
|
@@ -60319,12 +60315,12 @@ function createTypeChecker(host) {
|
|
|
60319
60315
|
return !!(entry & 1 /* Succeeded */);
|
|
60320
60316
|
}
|
|
60321
60317
|
const targetEnumType = getTypeOfSymbol(targetSymbol);
|
|
60322
|
-
for (const
|
|
60323
|
-
if (
|
|
60324
|
-
const targetProperty = getPropertyOfType(targetEnumType,
|
|
60318
|
+
for (const property of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) {
|
|
60319
|
+
if (property.flags & 8 /* EnumMember */) {
|
|
60320
|
+
const targetProperty = getPropertyOfType(targetEnumType, property.escapedName);
|
|
60325
60321
|
if (!targetProperty || !(targetProperty.flags & 8 /* EnumMember */)) {
|
|
60326
60322
|
if (errorReporter) {
|
|
60327
|
-
errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(
|
|
60323
|
+
errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(property), typeToString(
|
|
60328
60324
|
getDeclaredTypeOfSymbol(targetSymbol),
|
|
60329
60325
|
/*enclosingDeclaration*/
|
|
60330
60326
|
void 0,
|
|
@@ -60336,34 +60332,6 @@ function createTypeChecker(host) {
|
|
|
60336
60332
|
}
|
|
60337
60333
|
return false;
|
|
60338
60334
|
}
|
|
60339
|
-
const sourceValue = getEnumMemberValue(getDeclarationOfKind(sourceProperty, 306 /* EnumMember */));
|
|
60340
|
-
const targetValue = getEnumMemberValue(getDeclarationOfKind(targetProperty, 306 /* EnumMember */));
|
|
60341
|
-
if (sourceValue !== targetValue) {
|
|
60342
|
-
const sourceIsString = typeof sourceValue === "string";
|
|
60343
|
-
const targetIsString = typeof targetValue === "string";
|
|
60344
|
-
if (sourceValue !== void 0 && targetValue !== void 0) {
|
|
60345
|
-
if (!errorReporter) {
|
|
60346
|
-
enumRelation.set(id, 2 /* Failed */);
|
|
60347
|
-
} else {
|
|
60348
|
-
const escapedSource = sourceIsString ? `"${escapeString(sourceValue)}"` : sourceValue;
|
|
60349
|
-
const escapedTarget = targetIsString ? `"${escapeString(targetValue)}"` : targetValue;
|
|
60350
|
-
errorReporter(Diagnostics.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given, symbolName(targetSymbol), symbolName(targetProperty), escapedTarget, escapedSource);
|
|
60351
|
-
enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */);
|
|
60352
|
-
}
|
|
60353
|
-
return false;
|
|
60354
|
-
} else if (sourceIsString || targetIsString) {
|
|
60355
|
-
if (!errorReporter) {
|
|
60356
|
-
enumRelation.set(id, 2 /* Failed */);
|
|
60357
|
-
} else {
|
|
60358
|
-
const knownStringValue = sourceValue ?? targetValue;
|
|
60359
|
-
Debug.assert(typeof knownStringValue === "string");
|
|
60360
|
-
const escapedValue = `"${escapeString(knownStringValue)}"`;
|
|
60361
|
-
errorReporter(Diagnostics.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value, symbolName(targetSymbol), symbolName(targetProperty), escapedValue);
|
|
60362
|
-
enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */);
|
|
60363
|
-
}
|
|
60364
|
-
return false;
|
|
60365
|
-
}
|
|
60366
|
-
}
|
|
60367
60335
|
}
|
|
60368
60336
|
}
|
|
60369
60337
|
enumRelation.set(id, 1 /* Succeeded */);
|
|
@@ -64337,6 +64305,16 @@ function createTypeChecker(host) {
|
|
|
64337
64305
|
} else if (target.flags & 134217728 /* TemplateLiteral */) {
|
|
64338
64306
|
inferToTemplateLiteralType(source, target);
|
|
64339
64307
|
} else {
|
|
64308
|
+
if (isGenericMappedType(source) && isGenericMappedType(target)) {
|
|
64309
|
+
invokeOnce(source, target, (source2, target2) => {
|
|
64310
|
+
inferFromTypes(getConstraintTypeFromMappedType(source2), getConstraintTypeFromMappedType(target2));
|
|
64311
|
+
inferFromTypes(getTemplateTypeFromMappedType(source2), getTemplateTypeFromMappedType(target2));
|
|
64312
|
+
const sourceNameType = getNameTypeFromMappedType(source2);
|
|
64313
|
+
const targetNameType = getNameTypeFromMappedType(target2);
|
|
64314
|
+
if (sourceNameType && targetNameType)
|
|
64315
|
+
inferFromTypes(sourceNameType, targetNameType);
|
|
64316
|
+
});
|
|
64317
|
+
}
|
|
64340
64318
|
source = getReducedType(source);
|
|
64341
64319
|
if (!(priority & 512 /* NoConstraints */ && source.flags & (2097152 /* Intersection */ | 465829888 /* Instantiable */))) {
|
|
64342
64320
|
const apparentSource = getApparentType(source);
|
package/lib/tsserver.js
CHANGED
|
@@ -6238,7 +6238,6 @@ var JsxFlags = /* @__PURE__ */ ((JsxFlags2) => {
|
|
|
6238
6238
|
return JsxFlags2;
|
|
6239
6239
|
})(JsxFlags || {});
|
|
6240
6240
|
var RelationComparisonResult = /* @__PURE__ */ ((RelationComparisonResult3) => {
|
|
6241
|
-
RelationComparisonResult3[RelationComparisonResult3["None"] = 0] = "None";
|
|
6242
6241
|
RelationComparisonResult3[RelationComparisonResult3["Succeeded"] = 1] = "Succeeded";
|
|
6243
6242
|
RelationComparisonResult3[RelationComparisonResult3["Failed"] = 2] = "Failed";
|
|
6244
6243
|
RelationComparisonResult3[RelationComparisonResult3["Reported"] = 4] = "Reported";
|
|
@@ -10334,8 +10333,6 @@ var Diagnostics = {
|
|
|
10334
10333
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0: diag(4122, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122", "This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),
|
|
10335
10334
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1: diag(4123, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123", "This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),
|
|
10336
10335
|
Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4124, 1 /* Error */, "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124", "Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),
|
|
10337
|
-
Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given: diag(4125, 1 /* Error */, "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125", "Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),
|
|
10338
|
-
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."),
|
|
10339
10336
|
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."),
|
|
10340
10337
|
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."),
|
|
10341
10338
|
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}'."),
|
|
@@ -54299,7 +54296,7 @@ function createTypeChecker(host) {
|
|
|
54299
54296
|
return factory.createStringLiteral(name, !!singleQuote);
|
|
54300
54297
|
}
|
|
54301
54298
|
if (isNumericLiteralName(name) && startsWith(name, "-")) {
|
|
54302
|
-
return factory.createComputedPropertyName(factory.createNumericLiteral(
|
|
54299
|
+
return factory.createComputedPropertyName(factory.createPrefixUnaryExpression(41 /* MinusToken */, factory.createNumericLiteral(-name)));
|
|
54303
54300
|
}
|
|
54304
54301
|
return createPropertyNameNodeForIdentifierOrLiteral(name, getEmitScriptTarget(compilerOptions), singleQuote, stringNamed, isMethod);
|
|
54305
54302
|
}
|
|
@@ -58365,11 +58362,10 @@ function createTypeChecker(host) {
|
|
|
58365
58362
|
const baseTypes = getBaseTypes(source);
|
|
58366
58363
|
if (baseTypes.length) {
|
|
58367
58364
|
if (source.symbol && members === getMembersOfSymbol(source.symbol)) {
|
|
58368
|
-
const symbolTable = createSymbolTable();
|
|
58369
|
-
|
|
58370
|
-
|
|
58371
|
-
|
|
58372
|
-
}
|
|
58365
|
+
const symbolTable = createSymbolTable(source.declaredProperties);
|
|
58366
|
+
const sourceIndex = getIndexSymbol(source.symbol);
|
|
58367
|
+
if (sourceIndex) {
|
|
58368
|
+
symbolTable.set("__index" /* Index */, sourceIndex);
|
|
58373
58369
|
}
|
|
58374
58370
|
members = symbolTable;
|
|
58375
58371
|
}
|
|
@@ -65048,12 +65044,12 @@ function createTypeChecker(host) {
|
|
|
65048
65044
|
return !!(entry & 1 /* Succeeded */);
|
|
65049
65045
|
}
|
|
65050
65046
|
const targetEnumType = getTypeOfSymbol(targetSymbol);
|
|
65051
|
-
for (const
|
|
65052
|
-
if (
|
|
65053
|
-
const targetProperty = getPropertyOfType(targetEnumType,
|
|
65047
|
+
for (const property of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) {
|
|
65048
|
+
if (property.flags & 8 /* EnumMember */) {
|
|
65049
|
+
const targetProperty = getPropertyOfType(targetEnumType, property.escapedName);
|
|
65054
65050
|
if (!targetProperty || !(targetProperty.flags & 8 /* EnumMember */)) {
|
|
65055
65051
|
if (errorReporter) {
|
|
65056
|
-
errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(
|
|
65052
|
+
errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(property), typeToString(
|
|
65057
65053
|
getDeclaredTypeOfSymbol(targetSymbol),
|
|
65058
65054
|
/*enclosingDeclaration*/
|
|
65059
65055
|
void 0,
|
|
@@ -65065,34 +65061,6 @@ function createTypeChecker(host) {
|
|
|
65065
65061
|
}
|
|
65066
65062
|
return false;
|
|
65067
65063
|
}
|
|
65068
|
-
const sourceValue = getEnumMemberValue(getDeclarationOfKind(sourceProperty, 306 /* EnumMember */));
|
|
65069
|
-
const targetValue = getEnumMemberValue(getDeclarationOfKind(targetProperty, 306 /* EnumMember */));
|
|
65070
|
-
if (sourceValue !== targetValue) {
|
|
65071
|
-
const sourceIsString = typeof sourceValue === "string";
|
|
65072
|
-
const targetIsString = typeof targetValue === "string";
|
|
65073
|
-
if (sourceValue !== void 0 && targetValue !== void 0) {
|
|
65074
|
-
if (!errorReporter) {
|
|
65075
|
-
enumRelation.set(id, 2 /* Failed */);
|
|
65076
|
-
} else {
|
|
65077
|
-
const escapedSource = sourceIsString ? `"${escapeString(sourceValue)}"` : sourceValue;
|
|
65078
|
-
const escapedTarget = targetIsString ? `"${escapeString(targetValue)}"` : targetValue;
|
|
65079
|
-
errorReporter(Diagnostics.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given, symbolName(targetSymbol), symbolName(targetProperty), escapedTarget, escapedSource);
|
|
65080
|
-
enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */);
|
|
65081
|
-
}
|
|
65082
|
-
return false;
|
|
65083
|
-
} else if (sourceIsString || targetIsString) {
|
|
65084
|
-
if (!errorReporter) {
|
|
65085
|
-
enumRelation.set(id, 2 /* Failed */);
|
|
65086
|
-
} else {
|
|
65087
|
-
const knownStringValue = sourceValue ?? targetValue;
|
|
65088
|
-
Debug.assert(typeof knownStringValue === "string");
|
|
65089
|
-
const escapedValue = `"${escapeString(knownStringValue)}"`;
|
|
65090
|
-
errorReporter(Diagnostics.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value, symbolName(targetSymbol), symbolName(targetProperty), escapedValue);
|
|
65091
|
-
enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */);
|
|
65092
|
-
}
|
|
65093
|
-
return false;
|
|
65094
|
-
}
|
|
65095
|
-
}
|
|
65096
65064
|
}
|
|
65097
65065
|
}
|
|
65098
65066
|
enumRelation.set(id, 1 /* Succeeded */);
|
|
@@ -69066,6 +69034,16 @@ function createTypeChecker(host) {
|
|
|
69066
69034
|
} else if (target.flags & 134217728 /* TemplateLiteral */) {
|
|
69067
69035
|
inferToTemplateLiteralType(source, target);
|
|
69068
69036
|
} else {
|
|
69037
|
+
if (isGenericMappedType(source) && isGenericMappedType(target)) {
|
|
69038
|
+
invokeOnce(source, target, (source2, target2) => {
|
|
69039
|
+
inferFromTypes(getConstraintTypeFromMappedType(source2), getConstraintTypeFromMappedType(target2));
|
|
69040
|
+
inferFromTypes(getTemplateTypeFromMappedType(source2), getTemplateTypeFromMappedType(target2));
|
|
69041
|
+
const sourceNameType = getNameTypeFromMappedType(source2);
|
|
69042
|
+
const targetNameType = getNameTypeFromMappedType(target2);
|
|
69043
|
+
if (sourceNameType && targetNameType)
|
|
69044
|
+
inferFromTypes(sourceNameType, targetNameType);
|
|
69045
|
+
});
|
|
69046
|
+
}
|
|
69069
69047
|
source = getReducedType(source);
|
|
69070
69048
|
if (!(priority & 512 /* NoConstraints */ && source.flags & (2097152 /* Intersection */ | 465829888 /* Instantiable */))) {
|
|
69071
69049
|
const apparentSource = getApparentType(source);
|
|
@@ -165985,9 +165963,8 @@ function provideInlayHints(context) {
|
|
|
165985
165963
|
break;
|
|
165986
165964
|
case 181 /* IndexSignature */:
|
|
165987
165965
|
Debug.assertNode(node, isIndexSignatureDeclaration);
|
|
165988
|
-
Debug.assertEqual(node.parameters.length, 1);
|
|
165989
165966
|
parts.push({ text: "[" });
|
|
165990
|
-
|
|
165967
|
+
visitDisplayPartList(node.parameters, ", ");
|
|
165991
165968
|
parts.push({ text: "]" });
|
|
165992
165969
|
if (node.type) {
|
|
165993
165970
|
parts.push({ text: ": " });
|
package/lib/typescript.js
CHANGED
|
@@ -3997,7 +3997,6 @@ ${lanes.join("\n")}
|
|
|
3997
3997
|
return JsxFlags2;
|
|
3998
3998
|
})(JsxFlags || {});
|
|
3999
3999
|
RelationComparisonResult = /* @__PURE__ */ ((RelationComparisonResult3) => {
|
|
4000
|
-
RelationComparisonResult3[RelationComparisonResult3["None"] = 0] = "None";
|
|
4001
4000
|
RelationComparisonResult3[RelationComparisonResult3["Succeeded"] = 1] = "Succeeded";
|
|
4002
4001
|
RelationComparisonResult3[RelationComparisonResult3["Failed"] = 2] = "Failed";
|
|
4003
4002
|
RelationComparisonResult3[RelationComparisonResult3["Reported"] = 4] = "Reported";
|
|
@@ -8110,8 +8109,6 @@ ${lanes.join("\n")}
|
|
|
8110
8109
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0: diag(4122, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122", "This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),
|
|
8111
8110
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1: diag(4123, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123", "This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),
|
|
8112
8111
|
Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4124, 1 /* Error */, "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124", "Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),
|
|
8113
|
-
Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given: diag(4125, 1 /* Error */, "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125", "Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),
|
|
8114
|
-
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."),
|
|
8115
8112
|
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."),
|
|
8116
8113
|
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."),
|
|
8117
8114
|
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}'."),
|
|
@@ -52060,7 +52057,7 @@ ${lanes.join("\n")}
|
|
|
52060
52057
|
return factory.createStringLiteral(name, !!singleQuote);
|
|
52061
52058
|
}
|
|
52062
52059
|
if (isNumericLiteralName(name) && startsWith(name, "-")) {
|
|
52063
|
-
return factory.createComputedPropertyName(factory.createNumericLiteral(
|
|
52060
|
+
return factory.createComputedPropertyName(factory.createPrefixUnaryExpression(41 /* MinusToken */, factory.createNumericLiteral(-name)));
|
|
52064
52061
|
}
|
|
52065
52062
|
return createPropertyNameNodeForIdentifierOrLiteral(name, getEmitScriptTarget(compilerOptions), singleQuote, stringNamed, isMethod);
|
|
52066
52063
|
}
|
|
@@ -56126,11 +56123,10 @@ ${lanes.join("\n")}
|
|
|
56126
56123
|
const baseTypes = getBaseTypes(source);
|
|
56127
56124
|
if (baseTypes.length) {
|
|
56128
56125
|
if (source.symbol && members === getMembersOfSymbol(source.symbol)) {
|
|
56129
|
-
const symbolTable = createSymbolTable();
|
|
56130
|
-
|
|
56131
|
-
|
|
56132
|
-
|
|
56133
|
-
}
|
|
56126
|
+
const symbolTable = createSymbolTable(source.declaredProperties);
|
|
56127
|
+
const sourceIndex = getIndexSymbol(source.symbol);
|
|
56128
|
+
if (sourceIndex) {
|
|
56129
|
+
symbolTable.set("__index" /* Index */, sourceIndex);
|
|
56134
56130
|
}
|
|
56135
56131
|
members = symbolTable;
|
|
56136
56132
|
}
|
|
@@ -62809,12 +62805,12 @@ ${lanes.join("\n")}
|
|
|
62809
62805
|
return !!(entry & 1 /* Succeeded */);
|
|
62810
62806
|
}
|
|
62811
62807
|
const targetEnumType = getTypeOfSymbol(targetSymbol);
|
|
62812
|
-
for (const
|
|
62813
|
-
if (
|
|
62814
|
-
const targetProperty = getPropertyOfType(targetEnumType,
|
|
62808
|
+
for (const property of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) {
|
|
62809
|
+
if (property.flags & 8 /* EnumMember */) {
|
|
62810
|
+
const targetProperty = getPropertyOfType(targetEnumType, property.escapedName);
|
|
62815
62811
|
if (!targetProperty || !(targetProperty.flags & 8 /* EnumMember */)) {
|
|
62816
62812
|
if (errorReporter) {
|
|
62817
|
-
errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(
|
|
62813
|
+
errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(property), typeToString(
|
|
62818
62814
|
getDeclaredTypeOfSymbol(targetSymbol),
|
|
62819
62815
|
/*enclosingDeclaration*/
|
|
62820
62816
|
void 0,
|
|
@@ -62826,34 +62822,6 @@ ${lanes.join("\n")}
|
|
|
62826
62822
|
}
|
|
62827
62823
|
return false;
|
|
62828
62824
|
}
|
|
62829
|
-
const sourceValue = getEnumMemberValue(getDeclarationOfKind(sourceProperty, 306 /* EnumMember */));
|
|
62830
|
-
const targetValue = getEnumMemberValue(getDeclarationOfKind(targetProperty, 306 /* EnumMember */));
|
|
62831
|
-
if (sourceValue !== targetValue) {
|
|
62832
|
-
const sourceIsString = typeof sourceValue === "string";
|
|
62833
|
-
const targetIsString = typeof targetValue === "string";
|
|
62834
|
-
if (sourceValue !== void 0 && targetValue !== void 0) {
|
|
62835
|
-
if (!errorReporter) {
|
|
62836
|
-
enumRelation.set(id, 2 /* Failed */);
|
|
62837
|
-
} else {
|
|
62838
|
-
const escapedSource = sourceIsString ? `"${escapeString(sourceValue)}"` : sourceValue;
|
|
62839
|
-
const escapedTarget = targetIsString ? `"${escapeString(targetValue)}"` : targetValue;
|
|
62840
|
-
errorReporter(Diagnostics.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given, symbolName(targetSymbol), symbolName(targetProperty), escapedTarget, escapedSource);
|
|
62841
|
-
enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */);
|
|
62842
|
-
}
|
|
62843
|
-
return false;
|
|
62844
|
-
} else if (sourceIsString || targetIsString) {
|
|
62845
|
-
if (!errorReporter) {
|
|
62846
|
-
enumRelation.set(id, 2 /* Failed */);
|
|
62847
|
-
} else {
|
|
62848
|
-
const knownStringValue = sourceValue ?? targetValue;
|
|
62849
|
-
Debug.assert(typeof knownStringValue === "string");
|
|
62850
|
-
const escapedValue = `"${escapeString(knownStringValue)}"`;
|
|
62851
|
-
errorReporter(Diagnostics.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value, symbolName(targetSymbol), symbolName(targetProperty), escapedValue);
|
|
62852
|
-
enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */);
|
|
62853
|
-
}
|
|
62854
|
-
return false;
|
|
62855
|
-
}
|
|
62856
|
-
}
|
|
62857
62825
|
}
|
|
62858
62826
|
}
|
|
62859
62827
|
enumRelation.set(id, 1 /* Succeeded */);
|
|
@@ -66827,6 +66795,16 @@ ${lanes.join("\n")}
|
|
|
66827
66795
|
} else if (target.flags & 134217728 /* TemplateLiteral */) {
|
|
66828
66796
|
inferToTemplateLiteralType(source, target);
|
|
66829
66797
|
} else {
|
|
66798
|
+
if (isGenericMappedType(source) && isGenericMappedType(target)) {
|
|
66799
|
+
invokeOnce(source, target, (source2, target2) => {
|
|
66800
|
+
inferFromTypes(getConstraintTypeFromMappedType(source2), getConstraintTypeFromMappedType(target2));
|
|
66801
|
+
inferFromTypes(getTemplateTypeFromMappedType(source2), getTemplateTypeFromMappedType(target2));
|
|
66802
|
+
const sourceNameType = getNameTypeFromMappedType(source2);
|
|
66803
|
+
const targetNameType = getNameTypeFromMappedType(target2);
|
|
66804
|
+
if (sourceNameType && targetNameType)
|
|
66805
|
+
inferFromTypes(sourceNameType, targetNameType);
|
|
66806
|
+
});
|
|
66807
|
+
}
|
|
66830
66808
|
source = getReducedType(source);
|
|
66831
66809
|
if (!(priority & 512 /* NoConstraints */ && source.flags & (2097152 /* Intersection */ | 465829888 /* Instantiable */))) {
|
|
66832
66810
|
const apparentSource = getApparentType(source);
|
|
@@ -165325,9 +165303,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
165325
165303
|
break;
|
|
165326
165304
|
case 181 /* IndexSignature */:
|
|
165327
165305
|
Debug.assertNode(node, isIndexSignatureDeclaration);
|
|
165328
|
-
Debug.assertEqual(node.parameters.length, 1);
|
|
165329
165306
|
parts.push({ text: "[" });
|
|
165330
|
-
|
|
165307
|
+
visitDisplayPartList(node.parameters, ", ");
|
|
165331
165308
|
parts.push({ text: "]" });
|
|
165332
165309
|
if (node.type) {
|
|
165333
165310
|
parts.push({ text: ": " });
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -2944,7 +2944,6 @@ var ModifierFlags = /* @__PURE__ */ ((ModifierFlags3) => {
|
|
|
2944
2944
|
return ModifierFlags3;
|
|
2945
2945
|
})(ModifierFlags || {});
|
|
2946
2946
|
var RelationComparisonResult = /* @__PURE__ */ ((RelationComparisonResult3) => {
|
|
2947
|
-
RelationComparisonResult3[RelationComparisonResult3["None"] = 0] = "None";
|
|
2948
2947
|
RelationComparisonResult3[RelationComparisonResult3["Succeeded"] = 1] = "Succeeded";
|
|
2949
2948
|
RelationComparisonResult3[RelationComparisonResult3["Failed"] = 2] = "Failed";
|
|
2950
2949
|
RelationComparisonResult3[RelationComparisonResult3["Reported"] = 4] = "Reported";
|
|
@@ -6158,8 +6157,6 @@ var Diagnostics = {
|
|
|
6158
6157
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0: diag(4122, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122", "This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),
|
|
6159
6158
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1: diag(4123, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123", "This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),
|
|
6160
6159
|
Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4124, 1 /* Error */, "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124", "Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),
|
|
6161
|
-
Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given: diag(4125, 1 /* Error */, "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125", "Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),
|
|
6162
|
-
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."),
|
|
6163
6160
|
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."),
|
|
6164
6161
|
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."),
|
|
6165
6162
|
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}'."),
|
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.4.0-pr-
|
|
5
|
+
"version": "5.4.0-pr-56640-15",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"node": "20.1.0",
|
|
116
116
|
"npm": "8.19.4"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "4026160e842b53bdd5bb6b3e5694ad4496585386"
|
|
119
119
|
}
|