@typescript-deploys/pr-build 5.2.0-pr-55152-2 → 5.2.0-pr-54753-32

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
@@ -53914,7 +53914,12 @@ function createTypeChecker(host) {
53914
53914
  for (const current of type.types) {
53915
53915
  for (const prop of getPropertiesOfType(current)) {
53916
53916
  if (!members.has(prop.escapedName)) {
53917
- const combinedProp = getPropertyOfUnionOrIntersectionType(type, prop.escapedName);
53917
+ const combinedProp = getPropertyOfUnionOrIntersectionType(
53918
+ type,
53919
+ prop.escapedName,
53920
+ /*skipObjectFunctionPropertyAugment*/
53921
+ !!(type.flags & 2097152 /* Intersection */)
53922
+ );
53918
53923
  if (combinedProp) {
53919
53924
  members.set(prop.escapedName, combinedProp);
53920
53925
  }
@@ -54394,13 +54399,17 @@ function createTypeChecker(host) {
54394
54399
  return result;
54395
54400
  }
54396
54401
  function getUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment) {
54397
- var _a, _b;
54402
+ var _a, _b, _c;
54398
54403
  let property = ((_a = type.propertyCacheWithoutObjectFunctionPropertyAugment) == null ? void 0 : _a.get(name)) || !skipObjectFunctionPropertyAugment ? (_b = type.propertyCache) == null ? void 0 : _b.get(name) : void 0;
54399
54404
  if (!property) {
54400
54405
  property = createUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment);
54401
54406
  if (property) {
54402
54407
  const properties = skipObjectFunctionPropertyAugment ? type.propertyCacheWithoutObjectFunctionPropertyAugment || (type.propertyCacheWithoutObjectFunctionPropertyAugment = createSymbolTable()) : type.propertyCache || (type.propertyCache = createSymbolTable());
54403
54408
  properties.set(name, property);
54409
+ if (skipObjectFunctionPropertyAugment && !((_c = type.propertyCache) == null ? void 0 : _c.get(name))) {
54410
+ const properties2 = type.propertyCache || (type.propertyCache = createSymbolTable());
54411
+ properties2.set(name, property);
54412
+ }
54404
54413
  }
54405
54414
  }
54406
54415
  return property;
@@ -54520,7 +54529,22 @@ function createTypeChecker(host) {
54520
54529
  }
54521
54530
  return getPropertyOfObjectType(globalObjectType, name);
54522
54531
  }
54523
- if (type.flags & 3145728 /* UnionOrIntersection */) {
54532
+ if (type.flags & 2097152 /* Intersection */) {
54533
+ const prop = getPropertyOfUnionOrIntersectionType(
54534
+ type,
54535
+ name,
54536
+ /*skipObjectFunctionPropertyAugment*/
54537
+ true
54538
+ );
54539
+ if (prop) {
54540
+ return prop;
54541
+ }
54542
+ if (!skipObjectFunctionPropertyAugment) {
54543
+ return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment);
54544
+ }
54545
+ return void 0;
54546
+ }
54547
+ if (type.flags & 1048576 /* Union */) {
54524
54548
  return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment);
54525
54549
  }
54526
54550
  return void 0;
@@ -59803,7 +59827,6 @@ function createTypeChecker(host) {
59803
59827
  let overrideNextErrorInfo = 0;
59804
59828
  let lastSkippedInfo;
59805
59829
  let incompatibleStack;
59806
- let skipParentCounter = 0;
59807
59830
  Debug.assert(relation !== identityRelation || !errorNode, "no error reporting in identity checking");
59808
59831
  const result = isRelatedTo(
59809
59832
  source,
@@ -59979,15 +60002,7 @@ function createTypeChecker(host) {
59979
60002
  reportIncompatibleStack();
59980
60003
  if (message.elidedInCompatabilityPyramid)
59981
60004
  return;
59982
- if (skipParentCounter === 0) {
59983
- errorInfo = chainDiagnosticMessages(errorInfo, message, ...args);
59984
- } else {
59985
- skipParentCounter--;
59986
- }
59987
- }
59988
- function reportParentSkippedError(message, ...args) {
59989
- reportError(message, ...args);
59990
- skipParentCounter++;
60005
+ errorInfo = chainDiagnosticMessages(errorInfo, message, ...args);
59991
60006
  }
59992
60007
  function associateRelatedInfo(info) {
59993
60008
  Debug.assert(!!errorInfo);
@@ -60324,14 +60339,14 @@ function createTypeChecker(host) {
60324
60339
  }
60325
60340
  }
60326
60341
  if (suggestion !== void 0) {
60327
- reportParentSkippedError(
60342
+ reportError(
60328
60343
  Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,
60329
60344
  symbolToString(prop),
60330
60345
  typeToString(errorTarget),
60331
60346
  suggestion
60332
60347
  );
60333
60348
  } else {
60334
- reportParentSkippedError(
60349
+ reportError(
60335
60350
  Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,
60336
60351
  symbolToString(prop),
60337
60352
  typeToString(errorTarget)
package/lib/tsserver.js CHANGED
@@ -58623,7 +58623,12 @@ function createTypeChecker(host) {
58623
58623
  for (const current of type.types) {
58624
58624
  for (const prop of getPropertiesOfType(current)) {
58625
58625
  if (!members.has(prop.escapedName)) {
58626
- const combinedProp = getPropertyOfUnionOrIntersectionType(type, prop.escapedName);
58626
+ const combinedProp = getPropertyOfUnionOrIntersectionType(
58627
+ type,
58628
+ prop.escapedName,
58629
+ /*skipObjectFunctionPropertyAugment*/
58630
+ !!(type.flags & 2097152 /* Intersection */)
58631
+ );
58627
58632
  if (combinedProp) {
58628
58633
  members.set(prop.escapedName, combinedProp);
58629
58634
  }
@@ -59103,13 +59108,17 @@ function createTypeChecker(host) {
59103
59108
  return result;
59104
59109
  }
59105
59110
  function getUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment) {
59106
- var _a, _b;
59111
+ var _a, _b, _c;
59107
59112
  let property = ((_a = type.propertyCacheWithoutObjectFunctionPropertyAugment) == null ? void 0 : _a.get(name)) || !skipObjectFunctionPropertyAugment ? (_b = type.propertyCache) == null ? void 0 : _b.get(name) : void 0;
59108
59113
  if (!property) {
59109
59114
  property = createUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment);
59110
59115
  if (property) {
59111
59116
  const properties = skipObjectFunctionPropertyAugment ? type.propertyCacheWithoutObjectFunctionPropertyAugment || (type.propertyCacheWithoutObjectFunctionPropertyAugment = createSymbolTable()) : type.propertyCache || (type.propertyCache = createSymbolTable());
59112
59117
  properties.set(name, property);
59118
+ if (skipObjectFunctionPropertyAugment && !((_c = type.propertyCache) == null ? void 0 : _c.get(name))) {
59119
+ const properties2 = type.propertyCache || (type.propertyCache = createSymbolTable());
59120
+ properties2.set(name, property);
59121
+ }
59113
59122
  }
59114
59123
  }
59115
59124
  return property;
@@ -59229,7 +59238,22 @@ function createTypeChecker(host) {
59229
59238
  }
59230
59239
  return getPropertyOfObjectType(globalObjectType, name);
59231
59240
  }
59232
- if (type.flags & 3145728 /* UnionOrIntersection */) {
59241
+ if (type.flags & 2097152 /* Intersection */) {
59242
+ const prop = getPropertyOfUnionOrIntersectionType(
59243
+ type,
59244
+ name,
59245
+ /*skipObjectFunctionPropertyAugment*/
59246
+ true
59247
+ );
59248
+ if (prop) {
59249
+ return prop;
59250
+ }
59251
+ if (!skipObjectFunctionPropertyAugment) {
59252
+ return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment);
59253
+ }
59254
+ return void 0;
59255
+ }
59256
+ if (type.flags & 1048576 /* Union */) {
59233
59257
  return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment);
59234
59258
  }
59235
59259
  return void 0;
@@ -64512,7 +64536,6 @@ function createTypeChecker(host) {
64512
64536
  let overrideNextErrorInfo = 0;
64513
64537
  let lastSkippedInfo;
64514
64538
  let incompatibleStack;
64515
- let skipParentCounter = 0;
64516
64539
  Debug.assert(relation !== identityRelation || !errorNode, "no error reporting in identity checking");
64517
64540
  const result = isRelatedTo(
64518
64541
  source,
@@ -64688,15 +64711,7 @@ function createTypeChecker(host) {
64688
64711
  reportIncompatibleStack();
64689
64712
  if (message.elidedInCompatabilityPyramid)
64690
64713
  return;
64691
- if (skipParentCounter === 0) {
64692
- errorInfo = chainDiagnosticMessages(errorInfo, message, ...args);
64693
- } else {
64694
- skipParentCounter--;
64695
- }
64696
- }
64697
- function reportParentSkippedError(message, ...args) {
64698
- reportError(message, ...args);
64699
- skipParentCounter++;
64714
+ errorInfo = chainDiagnosticMessages(errorInfo, message, ...args);
64700
64715
  }
64701
64716
  function associateRelatedInfo(info) {
64702
64717
  Debug.assert(!!errorInfo);
@@ -65033,14 +65048,14 @@ function createTypeChecker(host) {
65033
65048
  }
65034
65049
  }
65035
65050
  if (suggestion !== void 0) {
65036
- reportParentSkippedError(
65051
+ reportError(
65037
65052
  Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,
65038
65053
  symbolToString(prop),
65039
65054
  typeToString(errorTarget),
65040
65055
  suggestion
65041
65056
  );
65042
65057
  } else {
65043
- reportParentSkippedError(
65058
+ reportError(
65044
65059
  Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,
65045
65060
  symbolToString(prop),
65046
65061
  typeToString(errorTarget)
@@ -56388,7 +56388,12 @@ ${lanes.join("\n")}
56388
56388
  for (const current of type.types) {
56389
56389
  for (const prop of getPropertiesOfType(current)) {
56390
56390
  if (!members.has(prop.escapedName)) {
56391
- const combinedProp = getPropertyOfUnionOrIntersectionType(type, prop.escapedName);
56391
+ const combinedProp = getPropertyOfUnionOrIntersectionType(
56392
+ type,
56393
+ prop.escapedName,
56394
+ /*skipObjectFunctionPropertyAugment*/
56395
+ !!(type.flags & 2097152 /* Intersection */)
56396
+ );
56392
56397
  if (combinedProp) {
56393
56398
  members.set(prop.escapedName, combinedProp);
56394
56399
  }
@@ -56868,13 +56873,17 @@ ${lanes.join("\n")}
56868
56873
  return result;
56869
56874
  }
56870
56875
  function getUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment) {
56871
- var _a, _b;
56876
+ var _a, _b, _c;
56872
56877
  let property = ((_a = type.propertyCacheWithoutObjectFunctionPropertyAugment) == null ? void 0 : _a.get(name)) || !skipObjectFunctionPropertyAugment ? (_b = type.propertyCache) == null ? void 0 : _b.get(name) : void 0;
56873
56878
  if (!property) {
56874
56879
  property = createUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment);
56875
56880
  if (property) {
56876
56881
  const properties = skipObjectFunctionPropertyAugment ? type.propertyCacheWithoutObjectFunctionPropertyAugment || (type.propertyCacheWithoutObjectFunctionPropertyAugment = createSymbolTable()) : type.propertyCache || (type.propertyCache = createSymbolTable());
56877
56882
  properties.set(name, property);
56883
+ if (skipObjectFunctionPropertyAugment && !((_c = type.propertyCache) == null ? void 0 : _c.get(name))) {
56884
+ const properties2 = type.propertyCache || (type.propertyCache = createSymbolTable());
56885
+ properties2.set(name, property);
56886
+ }
56878
56887
  }
56879
56888
  }
56880
56889
  return property;
@@ -56994,7 +57003,22 @@ ${lanes.join("\n")}
56994
57003
  }
56995
57004
  return getPropertyOfObjectType(globalObjectType, name);
56996
57005
  }
56997
- if (type.flags & 3145728 /* UnionOrIntersection */) {
57006
+ if (type.flags & 2097152 /* Intersection */) {
57007
+ const prop = getPropertyOfUnionOrIntersectionType(
57008
+ type,
57009
+ name,
57010
+ /*skipObjectFunctionPropertyAugment*/
57011
+ true
57012
+ );
57013
+ if (prop) {
57014
+ return prop;
57015
+ }
57016
+ if (!skipObjectFunctionPropertyAugment) {
57017
+ return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment);
57018
+ }
57019
+ return void 0;
57020
+ }
57021
+ if (type.flags & 1048576 /* Union */) {
56998
57022
  return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment);
56999
57023
  }
57000
57024
  return void 0;
@@ -62277,7 +62301,6 @@ ${lanes.join("\n")}
62277
62301
  let overrideNextErrorInfo = 0;
62278
62302
  let lastSkippedInfo;
62279
62303
  let incompatibleStack;
62280
- let skipParentCounter = 0;
62281
62304
  Debug.assert(relation !== identityRelation || !errorNode, "no error reporting in identity checking");
62282
62305
  const result = isRelatedTo(
62283
62306
  source,
@@ -62453,15 +62476,7 @@ ${lanes.join("\n")}
62453
62476
  reportIncompatibleStack();
62454
62477
  if (message.elidedInCompatabilityPyramid)
62455
62478
  return;
62456
- if (skipParentCounter === 0) {
62457
- errorInfo = chainDiagnosticMessages(errorInfo, message, ...args);
62458
- } else {
62459
- skipParentCounter--;
62460
- }
62461
- }
62462
- function reportParentSkippedError(message, ...args) {
62463
- reportError(message, ...args);
62464
- skipParentCounter++;
62479
+ errorInfo = chainDiagnosticMessages(errorInfo, message, ...args);
62465
62480
  }
62466
62481
  function associateRelatedInfo(info) {
62467
62482
  Debug.assert(!!errorInfo);
@@ -62798,14 +62813,14 @@ ${lanes.join("\n")}
62798
62813
  }
62799
62814
  }
62800
62815
  if (suggestion !== void 0) {
62801
- reportParentSkippedError(
62816
+ reportError(
62802
62817
  Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,
62803
62818
  symbolToString(prop),
62804
62819
  typeToString(errorTarget),
62805
62820
  suggestion
62806
62821
  );
62807
62822
  } else {
62808
- reportParentSkippedError(
62823
+ reportError(
62809
62824
  Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,
62810
62825
  symbolToString(prop),
62811
62826
  typeToString(errorTarget)
package/lib/typescript.js CHANGED
@@ -56388,7 +56388,12 @@ ${lanes.join("\n")}
56388
56388
  for (const current of type.types) {
56389
56389
  for (const prop of getPropertiesOfType(current)) {
56390
56390
  if (!members.has(prop.escapedName)) {
56391
- const combinedProp = getPropertyOfUnionOrIntersectionType(type, prop.escapedName);
56391
+ const combinedProp = getPropertyOfUnionOrIntersectionType(
56392
+ type,
56393
+ prop.escapedName,
56394
+ /*skipObjectFunctionPropertyAugment*/
56395
+ !!(type.flags & 2097152 /* Intersection */)
56396
+ );
56392
56397
  if (combinedProp) {
56393
56398
  members.set(prop.escapedName, combinedProp);
56394
56399
  }
@@ -56868,13 +56873,17 @@ ${lanes.join("\n")}
56868
56873
  return result;
56869
56874
  }
56870
56875
  function getUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment) {
56871
- var _a, _b;
56876
+ var _a, _b, _c;
56872
56877
  let property = ((_a = type.propertyCacheWithoutObjectFunctionPropertyAugment) == null ? void 0 : _a.get(name)) || !skipObjectFunctionPropertyAugment ? (_b = type.propertyCache) == null ? void 0 : _b.get(name) : void 0;
56873
56878
  if (!property) {
56874
56879
  property = createUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment);
56875
56880
  if (property) {
56876
56881
  const properties = skipObjectFunctionPropertyAugment ? type.propertyCacheWithoutObjectFunctionPropertyAugment || (type.propertyCacheWithoutObjectFunctionPropertyAugment = createSymbolTable()) : type.propertyCache || (type.propertyCache = createSymbolTable());
56877
56882
  properties.set(name, property);
56883
+ if (skipObjectFunctionPropertyAugment && !((_c = type.propertyCache) == null ? void 0 : _c.get(name))) {
56884
+ const properties2 = type.propertyCache || (type.propertyCache = createSymbolTable());
56885
+ properties2.set(name, property);
56886
+ }
56878
56887
  }
56879
56888
  }
56880
56889
  return property;
@@ -56994,7 +57003,22 @@ ${lanes.join("\n")}
56994
57003
  }
56995
57004
  return getPropertyOfObjectType(globalObjectType, name);
56996
57005
  }
56997
- if (type.flags & 3145728 /* UnionOrIntersection */) {
57006
+ if (type.flags & 2097152 /* Intersection */) {
57007
+ const prop = getPropertyOfUnionOrIntersectionType(
57008
+ type,
57009
+ name,
57010
+ /*skipObjectFunctionPropertyAugment*/
57011
+ true
57012
+ );
57013
+ if (prop) {
57014
+ return prop;
57015
+ }
57016
+ if (!skipObjectFunctionPropertyAugment) {
57017
+ return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment);
57018
+ }
57019
+ return void 0;
57020
+ }
57021
+ if (type.flags & 1048576 /* Union */) {
56998
57022
  return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment);
56999
57023
  }
57000
57024
  return void 0;
@@ -62277,7 +62301,6 @@ ${lanes.join("\n")}
62277
62301
  let overrideNextErrorInfo = 0;
62278
62302
  let lastSkippedInfo;
62279
62303
  let incompatibleStack;
62280
- let skipParentCounter = 0;
62281
62304
  Debug.assert(relation !== identityRelation || !errorNode, "no error reporting in identity checking");
62282
62305
  const result = isRelatedTo(
62283
62306
  source,
@@ -62453,15 +62476,7 @@ ${lanes.join("\n")}
62453
62476
  reportIncompatibleStack();
62454
62477
  if (message.elidedInCompatabilityPyramid)
62455
62478
  return;
62456
- if (skipParentCounter === 0) {
62457
- errorInfo = chainDiagnosticMessages(errorInfo, message, ...args);
62458
- } else {
62459
- skipParentCounter--;
62460
- }
62461
- }
62462
- function reportParentSkippedError(message, ...args) {
62463
- reportError(message, ...args);
62464
- skipParentCounter++;
62479
+ errorInfo = chainDiagnosticMessages(errorInfo, message, ...args);
62465
62480
  }
62466
62481
  function associateRelatedInfo(info) {
62467
62482
  Debug.assert(!!errorInfo);
@@ -62798,14 +62813,14 @@ ${lanes.join("\n")}
62798
62813
  }
62799
62814
  }
62800
62815
  if (suggestion !== void 0) {
62801
- reportParentSkippedError(
62816
+ reportError(
62802
62817
  Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,
62803
62818
  symbolToString(prop),
62804
62819
  typeToString(errorTarget),
62805
62820
  suggestion
62806
62821
  );
62807
62822
  } else {
62808
- reportParentSkippedError(
62823
+ reportError(
62809
62824
  Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,
62810
62825
  symbolToString(prop),
62811
62826
  typeToString(errorTarget)
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.2.0-pr-55152-2",
5
+ "version": "5.2.0-pr-54753-32",
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": "4e746373c1770c712d9801932e5188ab7bc6447e"
117
+ "gitHead": "c0de1c1946fa712793c87b058898fb22d4a474d1"
118
118
  }