@typescript-deploys/pr-build 5.3.0-pr-55924-5 → 5.3.0-pr-55926-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
@@ -6761,7 +6761,6 @@ var Diagnostics = {
6761
6761
  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}'."),
6762
6762
  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}'?"),
6763
6763
  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'."),
6764
- The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given: diag(4125, 1 /* Error */, "The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given_4125", "The values of '{0}.{1}' differ in their declarations, where '{2}' was expected but '{3}' was given."),
6765
6764
  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."),
6766
6765
  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."),
6767
6766
  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}'."),
@@ -59951,12 +59950,12 @@ function createTypeChecker(host) {
59951
59950
  return !!(entry & 1 /* Succeeded */);
59952
59951
  }
59953
59952
  const targetEnumType = getTypeOfSymbol(targetSymbol);
59954
- for (const sourceProperty of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) {
59955
- if (sourceProperty.flags & 8 /* EnumMember */) {
59956
- const targetProperty = getPropertyOfType(targetEnumType, sourceProperty.escapedName);
59953
+ for (const property of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) {
59954
+ if (property.flags & 8 /* EnumMember */) {
59955
+ const targetProperty = getPropertyOfType(targetEnumType, property.escapedName);
59957
59956
  if (!targetProperty || !(targetProperty.flags & 8 /* EnumMember */)) {
59958
59957
  if (errorReporter) {
59959
- errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(sourceProperty), typeToString(
59958
+ errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(property), typeToString(
59960
59959
  getDeclaredTypeOfSymbol(targetSymbol),
59961
59960
  /*enclosingDeclaration*/
59962
59961
  void 0,
@@ -59968,19 +59967,6 @@ function createTypeChecker(host) {
59968
59967
  }
59969
59968
  return false;
59970
59969
  }
59971
- const sourceValue = getEnumMemberValue(getDeclarationOfKind(sourceProperty, 306 /* EnumMember */));
59972
- const targetValue = getEnumMemberValue(getDeclarationOfKind(targetProperty, 306 /* EnumMember */));
59973
- if (sourceValue !== void 0 && targetValue !== void 0 && sourceValue !== targetValue) {
59974
- if (errorReporter) {
59975
- const escapedSource = typeof sourceValue === "string" ? `"${escapeString(sourceValue)}"` : sourceValue;
59976
- const escapedTarget = typeof targetValue === "string" ? `"${escapeString(targetValue)}"` : targetValue;
59977
- errorReporter(Diagnostics.The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given, symbolName(targetSymbol), symbolName(targetProperty), escapedTarget, escapedSource);
59978
- enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */);
59979
- } else {
59980
- enumRelation.set(id, 2 /* Failed */);
59981
- }
59982
- return false;
59983
- }
59984
59970
  }
59985
59971
  }
59986
59972
  enumRelation.set(id, 1 /* Succeeded */);
@@ -66371,6 +66357,9 @@ function createTypeChecker(host) {
66371
66357
  if (type.flags & 3 /* AnyOrUnknown */) {
66372
66358
  return candidate;
66373
66359
  }
66360
+ if (isTypeIdenticalTo(type, candidate)) {
66361
+ return candidate;
66362
+ }
66374
66363
  const isRelated = checkDerived ? isTypeDerivedFrom : isTypeSubtypeOf;
66375
66364
  const keyPropertyName = type.flags & 1048576 /* Union */ ? getKeyPropertyName(type) : void 0;
66376
66365
  const narrowedType = mapType(candidate, (c) => {
package/lib/tsserver.js CHANGED
@@ -10289,7 +10289,6 @@ var Diagnostics = {
10289
10289
  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}'."),
10290
10290
  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}'?"),
10291
10291
  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'."),
10292
- The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given: diag(4125, 1 /* Error */, "The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given_4125", "The values of '{0}.{1}' differ in their declarations, where '{2}' was expected but '{3}' was given."),
10293
10292
  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."),
10294
10293
  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."),
10295
10294
  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}'."),
@@ -64663,12 +64662,12 @@ function createTypeChecker(host) {
64663
64662
  return !!(entry & 1 /* Succeeded */);
64664
64663
  }
64665
64664
  const targetEnumType = getTypeOfSymbol(targetSymbol);
64666
- for (const sourceProperty of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) {
64667
- if (sourceProperty.flags & 8 /* EnumMember */) {
64668
- const targetProperty = getPropertyOfType(targetEnumType, sourceProperty.escapedName);
64665
+ for (const property of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) {
64666
+ if (property.flags & 8 /* EnumMember */) {
64667
+ const targetProperty = getPropertyOfType(targetEnumType, property.escapedName);
64669
64668
  if (!targetProperty || !(targetProperty.flags & 8 /* EnumMember */)) {
64670
64669
  if (errorReporter) {
64671
- errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(sourceProperty), typeToString(
64670
+ errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(property), typeToString(
64672
64671
  getDeclaredTypeOfSymbol(targetSymbol),
64673
64672
  /*enclosingDeclaration*/
64674
64673
  void 0,
@@ -64680,19 +64679,6 @@ function createTypeChecker(host) {
64680
64679
  }
64681
64680
  return false;
64682
64681
  }
64683
- const sourceValue = getEnumMemberValue(getDeclarationOfKind(sourceProperty, 306 /* EnumMember */));
64684
- const targetValue = getEnumMemberValue(getDeclarationOfKind(targetProperty, 306 /* EnumMember */));
64685
- if (sourceValue !== void 0 && targetValue !== void 0 && sourceValue !== targetValue) {
64686
- if (errorReporter) {
64687
- const escapedSource = typeof sourceValue === "string" ? `"${escapeString(sourceValue)}"` : sourceValue;
64688
- const escapedTarget = typeof targetValue === "string" ? `"${escapeString(targetValue)}"` : targetValue;
64689
- errorReporter(Diagnostics.The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given, symbolName(targetSymbol), symbolName(targetProperty), escapedTarget, escapedSource);
64690
- enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */);
64691
- } else {
64692
- enumRelation.set(id, 2 /* Failed */);
64693
- }
64694
- return false;
64695
- }
64696
64682
  }
64697
64683
  }
64698
64684
  enumRelation.set(id, 1 /* Succeeded */);
@@ -71083,6 +71069,9 @@ function createTypeChecker(host) {
71083
71069
  if (type.flags & 3 /* AnyOrUnknown */) {
71084
71070
  return candidate;
71085
71071
  }
71072
+ if (isTypeIdenticalTo(type, candidate)) {
71073
+ return candidate;
71074
+ }
71086
71075
  const isRelated = checkDerived ? isTypeDerivedFrom : isTypeSubtypeOf;
71087
71076
  const keyPropertyName = type.flags & 1048576 /* Union */ ? getKeyPropertyName(type) : void 0;
71088
71077
  const narrowedType = mapType(candidate, (c) => {
package/lib/typescript.js CHANGED
@@ -8071,7 +8071,6 @@ ${lanes.join("\n")}
8071
8071
  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}'."),
8072
8072
  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}'?"),
8073
8073
  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'."),
8074
- The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given: diag(4125, 1 /* Error */, "The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given_4125", "The values of '{0}.{1}' differ in their declarations, where '{2}' was expected but '{3}' was given."),
8075
8074
  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."),
8076
8075
  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."),
8077
8076
  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}'."),
@@ -62430,12 +62429,12 @@ ${lanes.join("\n")}
62430
62429
  return !!(entry & 1 /* Succeeded */);
62431
62430
  }
62432
62431
  const targetEnumType = getTypeOfSymbol(targetSymbol);
62433
- for (const sourceProperty of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) {
62434
- if (sourceProperty.flags & 8 /* EnumMember */) {
62435
- const targetProperty = getPropertyOfType(targetEnumType, sourceProperty.escapedName);
62432
+ for (const property of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) {
62433
+ if (property.flags & 8 /* EnumMember */) {
62434
+ const targetProperty = getPropertyOfType(targetEnumType, property.escapedName);
62436
62435
  if (!targetProperty || !(targetProperty.flags & 8 /* EnumMember */)) {
62437
62436
  if (errorReporter) {
62438
- errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(sourceProperty), typeToString(
62437
+ errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(property), typeToString(
62439
62438
  getDeclaredTypeOfSymbol(targetSymbol),
62440
62439
  /*enclosingDeclaration*/
62441
62440
  void 0,
@@ -62447,19 +62446,6 @@ ${lanes.join("\n")}
62447
62446
  }
62448
62447
  return false;
62449
62448
  }
62450
- const sourceValue = getEnumMemberValue(getDeclarationOfKind(sourceProperty, 306 /* EnumMember */));
62451
- const targetValue = getEnumMemberValue(getDeclarationOfKind(targetProperty, 306 /* EnumMember */));
62452
- if (sourceValue !== void 0 && targetValue !== void 0 && sourceValue !== targetValue) {
62453
- if (errorReporter) {
62454
- const escapedSource = typeof sourceValue === "string" ? `"${escapeString(sourceValue)}"` : sourceValue;
62455
- const escapedTarget = typeof targetValue === "string" ? `"${escapeString(targetValue)}"` : targetValue;
62456
- errorReporter(Diagnostics.The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given, symbolName(targetSymbol), symbolName(targetProperty), escapedTarget, escapedSource);
62457
- enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */);
62458
- } else {
62459
- enumRelation.set(id, 2 /* Failed */);
62460
- }
62461
- return false;
62462
- }
62463
62449
  }
62464
62450
  }
62465
62451
  enumRelation.set(id, 1 /* Succeeded */);
@@ -68850,6 +68836,9 @@ ${lanes.join("\n")}
68850
68836
  if (type.flags & 3 /* AnyOrUnknown */) {
68851
68837
  return candidate;
68852
68838
  }
68839
+ if (isTypeIdenticalTo(type, candidate)) {
68840
+ return candidate;
68841
+ }
68853
68842
  const isRelated = checkDerived ? isTypeDerivedFrom : isTypeSubtypeOf;
68854
68843
  const keyPropertyName = type.flags & 1048576 /* Union */ ? getKeyPropertyName(type) : void 0;
68855
68844
  const narrowedType = mapType(candidate, (c) => {
@@ -6138,7 +6138,6 @@ var Diagnostics = {
6138
6138
  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}'."),
6139
6139
  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}'?"),
6140
6140
  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'."),
6141
- The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given: diag(4125, 1 /* Error */, "The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given_4125", "The values of '{0}.{1}' differ in their declarations, where '{2}' was expected but '{3}' was given."),
6142
6141
  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."),
6143
6142
  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."),
6144
6143
  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.3.0-pr-55924-5",
5
+ "version": "5.3.0-pr-55926-3",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -114,5 +114,5 @@
114
114
  "node": "20.1.0",
115
115
  "npm": "8.19.4"
116
116
  },
117
- "gitHead": "febb51a2ef7bed17d1ab08e9c573d68d680518e9"
117
+ "gitHead": "0aae977155b035922037ff0c16e828184a47f8c9"
118
118
  }