@typescript-deploys/pr-build 5.4.0-pr-55924-28 → 5.4.0-pr-56247-3

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 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(+name));
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
  }
@@ -60319,12 +60316,12 @@ function createTypeChecker(host) {
60319
60316
  return !!(entry & 1 /* Succeeded */);
60320
60317
  }
60321
60318
  const targetEnumType = getTypeOfSymbol(targetSymbol);
60322
- for (const sourceProperty of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) {
60323
- if (sourceProperty.flags & 8 /* EnumMember */) {
60324
- const targetProperty = getPropertyOfType(targetEnumType, sourceProperty.escapedName);
60319
+ for (const property of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) {
60320
+ if (property.flags & 8 /* EnumMember */) {
60321
+ const targetProperty = getPropertyOfType(targetEnumType, property.escapedName);
60325
60322
  if (!targetProperty || !(targetProperty.flags & 8 /* EnumMember */)) {
60326
60323
  if (errorReporter) {
60327
- errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(sourceProperty), typeToString(
60324
+ errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(property), typeToString(
60328
60325
  getDeclaredTypeOfSymbol(targetSymbol),
60329
60326
  /*enclosingDeclaration*/
60330
60327
  void 0,
@@ -60336,34 +60333,6 @@ function createTypeChecker(host) {
60336
60333
  }
60337
60334
  return false;
60338
60335
  }
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
60336
  }
60368
60337
  }
60369
60338
  enumRelation.set(id, 1 /* Succeeded */);
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(+name));
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
  }
@@ -65048,12 +65045,12 @@ function createTypeChecker(host) {
65048
65045
  return !!(entry & 1 /* Succeeded */);
65049
65046
  }
65050
65047
  const targetEnumType = getTypeOfSymbol(targetSymbol);
65051
- for (const sourceProperty of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) {
65052
- if (sourceProperty.flags & 8 /* EnumMember */) {
65053
- const targetProperty = getPropertyOfType(targetEnumType, sourceProperty.escapedName);
65048
+ for (const property of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) {
65049
+ if (property.flags & 8 /* EnumMember */) {
65050
+ const targetProperty = getPropertyOfType(targetEnumType, property.escapedName);
65054
65051
  if (!targetProperty || !(targetProperty.flags & 8 /* EnumMember */)) {
65055
65052
  if (errorReporter) {
65056
- errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(sourceProperty), typeToString(
65053
+ errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(property), typeToString(
65057
65054
  getDeclaredTypeOfSymbol(targetSymbol),
65058
65055
  /*enclosingDeclaration*/
65059
65056
  void 0,
@@ -65065,34 +65062,6 @@ function createTypeChecker(host) {
65065
65062
  }
65066
65063
  return false;
65067
65064
  }
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
65065
  }
65097
65066
  }
65098
65067
  enumRelation.set(id, 1 /* Succeeded */);
@@ -159793,7 +159762,6 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
159793
159762
  }
159794
159763
  const semanticStart = timestamp();
159795
159764
  let completionKind = 5 /* None */;
159796
- let isNonContextualObjectLiteral = false;
159797
159765
  let hasUnresolvedAutoImports = false;
159798
159766
  let symbols = [];
159799
159767
  let importSpecifierResolver;
@@ -160153,8 +160121,6 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
160153
160121
  function shouldOfferImportCompletions() {
160154
160122
  if (importStatementCompletion)
160155
160123
  return true;
160156
- if (isNonContextualObjectLiteral)
160157
- return false;
160158
160124
  if (!preferences.includeCompletionsForModuleExports)
160159
160125
  return false;
160160
160126
  if (sourceFile.externalModuleIndicator || sourceFile.commonJsModuleIndicator)
@@ -160457,7 +160423,6 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
160457
160423
  if (objectLikeContainer.flags & 67108864 /* InWithStatement */) {
160458
160424
  return 2 /* Fail */;
160459
160425
  }
160460
- isNonContextualObjectLiteral = true;
160461
160426
  return 0 /* Continue */;
160462
160427
  }
160463
160428
  const completionsType = typeChecker.getContextualType(objectLikeContainer, 4 /* Completions */);
@@ -160468,7 +160433,6 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
160468
160433
  existingMembers = objectLikeContainer.properties;
160469
160434
  if (typeMembers.length === 0) {
160470
160435
  if (!hasNumberIndextype) {
160471
- isNonContextualObjectLiteral = true;
160472
160436
  return 0 /* Continue */;
160473
160437
  }
160474
160438
  }
@@ -165985,9 +165949,8 @@ function provideInlayHints(context) {
165985
165949
  break;
165986
165950
  case 181 /* IndexSignature */:
165987
165951
  Debug.assertNode(node, isIndexSignatureDeclaration);
165988
- Debug.assertEqual(node.parameters.length, 1);
165989
165952
  parts.push({ text: "[" });
165990
- visitForDisplayParts(node.parameters[0]);
165953
+ visitDisplayPartList(node.parameters, ", ");
165991
165954
  parts.push({ text: "]" });
165992
165955
  if (node.type) {
165993
165956
  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(+name));
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
  }
@@ -62809,12 +62806,12 @@ ${lanes.join("\n")}
62809
62806
  return !!(entry & 1 /* Succeeded */);
62810
62807
  }
62811
62808
  const targetEnumType = getTypeOfSymbol(targetSymbol);
62812
- for (const sourceProperty of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) {
62813
- if (sourceProperty.flags & 8 /* EnumMember */) {
62814
- const targetProperty = getPropertyOfType(targetEnumType, sourceProperty.escapedName);
62809
+ for (const property of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) {
62810
+ if (property.flags & 8 /* EnumMember */) {
62811
+ const targetProperty = getPropertyOfType(targetEnumType, property.escapedName);
62815
62812
  if (!targetProperty || !(targetProperty.flags & 8 /* EnumMember */)) {
62816
62813
  if (errorReporter) {
62817
- errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(sourceProperty), typeToString(
62814
+ errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(property), typeToString(
62818
62815
  getDeclaredTypeOfSymbol(targetSymbol),
62819
62816
  /*enclosingDeclaration*/
62820
62817
  void 0,
@@ -62826,34 +62823,6 @@ ${lanes.join("\n")}
62826
62823
  }
62827
62824
  return false;
62828
62825
  }
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
62826
  }
62858
62827
  }
62859
62828
  enumRelation.set(id, 1 /* Succeeded */);
@@ -159003,7 +158972,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
159003
158972
  }
159004
158973
  const semanticStart = timestamp();
159005
158974
  let completionKind = 5 /* None */;
159006
- let isNonContextualObjectLiteral = false;
159007
158975
  let hasUnresolvedAutoImports = false;
159008
158976
  let symbols = [];
159009
158977
  let importSpecifierResolver;
@@ -159363,8 +159331,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
159363
159331
  function shouldOfferImportCompletions() {
159364
159332
  if (importStatementCompletion)
159365
159333
  return true;
159366
- if (isNonContextualObjectLiteral)
159367
- return false;
159368
159334
  if (!preferences.includeCompletionsForModuleExports)
159369
159335
  return false;
159370
159336
  if (sourceFile.externalModuleIndicator || sourceFile.commonJsModuleIndicator)
@@ -159667,7 +159633,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
159667
159633
  if (objectLikeContainer.flags & 67108864 /* InWithStatement */) {
159668
159634
  return 2 /* Fail */;
159669
159635
  }
159670
- isNonContextualObjectLiteral = true;
159671
159636
  return 0 /* Continue */;
159672
159637
  }
159673
159638
  const completionsType = typeChecker.getContextualType(objectLikeContainer, 4 /* Completions */);
@@ -159678,7 +159643,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
159678
159643
  existingMembers = objectLikeContainer.properties;
159679
159644
  if (typeMembers.length === 0) {
159680
159645
  if (!hasNumberIndextype) {
159681
- isNonContextualObjectLiteral = true;
159682
159646
  return 0 /* Continue */;
159683
159647
  }
159684
159648
  }
@@ -165325,9 +165289,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
165325
165289
  break;
165326
165290
  case 181 /* IndexSignature */:
165327
165291
  Debug.assertNode(node, isIndexSignatureDeclaration);
165328
- Debug.assertEqual(node.parameters.length, 1);
165329
165292
  parts.push({ text: "[" });
165330
- visitForDisplayParts(node.parameters[0]);
165293
+ visitDisplayPartList(node.parameters, ", ");
165331
165294
  parts.push({ text: "]" });
165332
165295
  if (node.type) {
165333
165296
  parts.push({ text: ": " });
@@ -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-55924-28",
5
+ "version": "5.4.0-pr-56247-3",
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": "d11a6082070015d644600ca130bab2b0111bc55a"
118
+ "gitHead": "df1d9661e3b6b609ada9836f51db4ec0e1c54394"
119
119
  }