@typescript-deploys/pr-build 5.2.0-pr-54753-25 → 5.2.0-pr-55152-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tsc.js +15 -30
- package/lib/tsserver.js +15 -30
- package/lib/tsserverlibrary.js +15 -30
- package/lib/typescript.js +15 -30
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -53914,12 +53914,7 @@ 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(
|
|
53918
|
-
type,
|
|
53919
|
-
prop.escapedName,
|
|
53920
|
-
/*skipObjectFunctionPropertyAugment*/
|
|
53921
|
-
!!(type.flags & 2097152 /* Intersection */)
|
|
53922
|
-
);
|
|
53917
|
+
const combinedProp = getPropertyOfUnionOrIntersectionType(type, prop.escapedName);
|
|
53923
53918
|
if (combinedProp) {
|
|
53924
53919
|
members.set(prop.escapedName, combinedProp);
|
|
53925
53920
|
}
|
|
@@ -54399,17 +54394,13 @@ function createTypeChecker(host) {
|
|
|
54399
54394
|
return result;
|
|
54400
54395
|
}
|
|
54401
54396
|
function getUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment) {
|
|
54402
|
-
var _a, _b
|
|
54397
|
+
var _a, _b;
|
|
54403
54398
|
let property = ((_a = type.propertyCacheWithoutObjectFunctionPropertyAugment) == null ? void 0 : _a.get(name)) || !skipObjectFunctionPropertyAugment ? (_b = type.propertyCache) == null ? void 0 : _b.get(name) : void 0;
|
|
54404
54399
|
if (!property) {
|
|
54405
54400
|
property = createUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment);
|
|
54406
54401
|
if (property) {
|
|
54407
54402
|
const properties = skipObjectFunctionPropertyAugment ? type.propertyCacheWithoutObjectFunctionPropertyAugment || (type.propertyCacheWithoutObjectFunctionPropertyAugment = createSymbolTable()) : type.propertyCache || (type.propertyCache = createSymbolTable());
|
|
54408
54403
|
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
|
-
}
|
|
54413
54404
|
}
|
|
54414
54405
|
}
|
|
54415
54406
|
return property;
|
|
@@ -54529,22 +54520,7 @@ function createTypeChecker(host) {
|
|
|
54529
54520
|
}
|
|
54530
54521
|
return getPropertyOfObjectType(globalObjectType, name);
|
|
54531
54522
|
}
|
|
54532
|
-
if (type.flags &
|
|
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 */) {
|
|
54523
|
+
if (type.flags & 3145728 /* UnionOrIntersection */) {
|
|
54548
54524
|
return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment);
|
|
54549
54525
|
}
|
|
54550
54526
|
return void 0;
|
|
@@ -59827,6 +59803,7 @@ function createTypeChecker(host) {
|
|
|
59827
59803
|
let overrideNextErrorInfo = 0;
|
|
59828
59804
|
let lastSkippedInfo;
|
|
59829
59805
|
let incompatibleStack;
|
|
59806
|
+
let skipParentCounter = 0;
|
|
59830
59807
|
Debug.assert(relation !== identityRelation || !errorNode, "no error reporting in identity checking");
|
|
59831
59808
|
const result = isRelatedTo(
|
|
59832
59809
|
source,
|
|
@@ -60002,7 +59979,15 @@ function createTypeChecker(host) {
|
|
|
60002
59979
|
reportIncompatibleStack();
|
|
60003
59980
|
if (message.elidedInCompatabilityPyramid)
|
|
60004
59981
|
return;
|
|
60005
|
-
|
|
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++;
|
|
60006
59991
|
}
|
|
60007
59992
|
function associateRelatedInfo(info) {
|
|
60008
59993
|
Debug.assert(!!errorInfo);
|
|
@@ -60339,14 +60324,14 @@ function createTypeChecker(host) {
|
|
|
60339
60324
|
}
|
|
60340
60325
|
}
|
|
60341
60326
|
if (suggestion !== void 0) {
|
|
60342
|
-
|
|
60327
|
+
reportParentSkippedError(
|
|
60343
60328
|
Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,
|
|
60344
60329
|
symbolToString(prop),
|
|
60345
60330
|
typeToString(errorTarget),
|
|
60346
60331
|
suggestion
|
|
60347
60332
|
);
|
|
60348
60333
|
} else {
|
|
60349
|
-
|
|
60334
|
+
reportParentSkippedError(
|
|
60350
60335
|
Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,
|
|
60351
60336
|
symbolToString(prop),
|
|
60352
60337
|
typeToString(errorTarget)
|
package/lib/tsserver.js
CHANGED
|
@@ -58623,12 +58623,7 @@ 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(
|
|
58627
|
-
type,
|
|
58628
|
-
prop.escapedName,
|
|
58629
|
-
/*skipObjectFunctionPropertyAugment*/
|
|
58630
|
-
!!(type.flags & 2097152 /* Intersection */)
|
|
58631
|
-
);
|
|
58626
|
+
const combinedProp = getPropertyOfUnionOrIntersectionType(type, prop.escapedName);
|
|
58632
58627
|
if (combinedProp) {
|
|
58633
58628
|
members.set(prop.escapedName, combinedProp);
|
|
58634
58629
|
}
|
|
@@ -59108,17 +59103,13 @@ function createTypeChecker(host) {
|
|
|
59108
59103
|
return result;
|
|
59109
59104
|
}
|
|
59110
59105
|
function getUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment) {
|
|
59111
|
-
var _a, _b
|
|
59106
|
+
var _a, _b;
|
|
59112
59107
|
let property = ((_a = type.propertyCacheWithoutObjectFunctionPropertyAugment) == null ? void 0 : _a.get(name)) || !skipObjectFunctionPropertyAugment ? (_b = type.propertyCache) == null ? void 0 : _b.get(name) : void 0;
|
|
59113
59108
|
if (!property) {
|
|
59114
59109
|
property = createUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment);
|
|
59115
59110
|
if (property) {
|
|
59116
59111
|
const properties = skipObjectFunctionPropertyAugment ? type.propertyCacheWithoutObjectFunctionPropertyAugment || (type.propertyCacheWithoutObjectFunctionPropertyAugment = createSymbolTable()) : type.propertyCache || (type.propertyCache = createSymbolTable());
|
|
59117
59112
|
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
|
-
}
|
|
59122
59113
|
}
|
|
59123
59114
|
}
|
|
59124
59115
|
return property;
|
|
@@ -59238,22 +59229,7 @@ function createTypeChecker(host) {
|
|
|
59238
59229
|
}
|
|
59239
59230
|
return getPropertyOfObjectType(globalObjectType, name);
|
|
59240
59231
|
}
|
|
59241
|
-
if (type.flags &
|
|
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 */) {
|
|
59232
|
+
if (type.flags & 3145728 /* UnionOrIntersection */) {
|
|
59257
59233
|
return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment);
|
|
59258
59234
|
}
|
|
59259
59235
|
return void 0;
|
|
@@ -64536,6 +64512,7 @@ function createTypeChecker(host) {
|
|
|
64536
64512
|
let overrideNextErrorInfo = 0;
|
|
64537
64513
|
let lastSkippedInfo;
|
|
64538
64514
|
let incompatibleStack;
|
|
64515
|
+
let skipParentCounter = 0;
|
|
64539
64516
|
Debug.assert(relation !== identityRelation || !errorNode, "no error reporting in identity checking");
|
|
64540
64517
|
const result = isRelatedTo(
|
|
64541
64518
|
source,
|
|
@@ -64711,7 +64688,15 @@ function createTypeChecker(host) {
|
|
|
64711
64688
|
reportIncompatibleStack();
|
|
64712
64689
|
if (message.elidedInCompatabilityPyramid)
|
|
64713
64690
|
return;
|
|
64714
|
-
|
|
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++;
|
|
64715
64700
|
}
|
|
64716
64701
|
function associateRelatedInfo(info) {
|
|
64717
64702
|
Debug.assert(!!errorInfo);
|
|
@@ -65048,14 +65033,14 @@ function createTypeChecker(host) {
|
|
|
65048
65033
|
}
|
|
65049
65034
|
}
|
|
65050
65035
|
if (suggestion !== void 0) {
|
|
65051
|
-
|
|
65036
|
+
reportParentSkippedError(
|
|
65052
65037
|
Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,
|
|
65053
65038
|
symbolToString(prop),
|
|
65054
65039
|
typeToString(errorTarget),
|
|
65055
65040
|
suggestion
|
|
65056
65041
|
);
|
|
65057
65042
|
} else {
|
|
65058
|
-
|
|
65043
|
+
reportParentSkippedError(
|
|
65059
65044
|
Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,
|
|
65060
65045
|
symbolToString(prop),
|
|
65061
65046
|
typeToString(errorTarget)
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -56388,12 +56388,7 @@ ${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(
|
|
56392
|
-
type,
|
|
56393
|
-
prop.escapedName,
|
|
56394
|
-
/*skipObjectFunctionPropertyAugment*/
|
|
56395
|
-
!!(type.flags & 2097152 /* Intersection */)
|
|
56396
|
-
);
|
|
56391
|
+
const combinedProp = getPropertyOfUnionOrIntersectionType(type, prop.escapedName);
|
|
56397
56392
|
if (combinedProp) {
|
|
56398
56393
|
members.set(prop.escapedName, combinedProp);
|
|
56399
56394
|
}
|
|
@@ -56873,17 +56868,13 @@ ${lanes.join("\n")}
|
|
|
56873
56868
|
return result;
|
|
56874
56869
|
}
|
|
56875
56870
|
function getUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment) {
|
|
56876
|
-
var _a, _b
|
|
56871
|
+
var _a, _b;
|
|
56877
56872
|
let property = ((_a = type.propertyCacheWithoutObjectFunctionPropertyAugment) == null ? void 0 : _a.get(name)) || !skipObjectFunctionPropertyAugment ? (_b = type.propertyCache) == null ? void 0 : _b.get(name) : void 0;
|
|
56878
56873
|
if (!property) {
|
|
56879
56874
|
property = createUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment);
|
|
56880
56875
|
if (property) {
|
|
56881
56876
|
const properties = skipObjectFunctionPropertyAugment ? type.propertyCacheWithoutObjectFunctionPropertyAugment || (type.propertyCacheWithoutObjectFunctionPropertyAugment = createSymbolTable()) : type.propertyCache || (type.propertyCache = createSymbolTable());
|
|
56882
56877
|
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
|
-
}
|
|
56887
56878
|
}
|
|
56888
56879
|
}
|
|
56889
56880
|
return property;
|
|
@@ -57003,22 +56994,7 @@ ${lanes.join("\n")}
|
|
|
57003
56994
|
}
|
|
57004
56995
|
return getPropertyOfObjectType(globalObjectType, name);
|
|
57005
56996
|
}
|
|
57006
|
-
if (type.flags &
|
|
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 */) {
|
|
56997
|
+
if (type.flags & 3145728 /* UnionOrIntersection */) {
|
|
57022
56998
|
return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment);
|
|
57023
56999
|
}
|
|
57024
57000
|
return void 0;
|
|
@@ -62301,6 +62277,7 @@ ${lanes.join("\n")}
|
|
|
62301
62277
|
let overrideNextErrorInfo = 0;
|
|
62302
62278
|
let lastSkippedInfo;
|
|
62303
62279
|
let incompatibleStack;
|
|
62280
|
+
let skipParentCounter = 0;
|
|
62304
62281
|
Debug.assert(relation !== identityRelation || !errorNode, "no error reporting in identity checking");
|
|
62305
62282
|
const result = isRelatedTo(
|
|
62306
62283
|
source,
|
|
@@ -62476,7 +62453,15 @@ ${lanes.join("\n")}
|
|
|
62476
62453
|
reportIncompatibleStack();
|
|
62477
62454
|
if (message.elidedInCompatabilityPyramid)
|
|
62478
62455
|
return;
|
|
62479
|
-
|
|
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++;
|
|
62480
62465
|
}
|
|
62481
62466
|
function associateRelatedInfo(info) {
|
|
62482
62467
|
Debug.assert(!!errorInfo);
|
|
@@ -62813,14 +62798,14 @@ ${lanes.join("\n")}
|
|
|
62813
62798
|
}
|
|
62814
62799
|
}
|
|
62815
62800
|
if (suggestion !== void 0) {
|
|
62816
|
-
|
|
62801
|
+
reportParentSkippedError(
|
|
62817
62802
|
Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,
|
|
62818
62803
|
symbolToString(prop),
|
|
62819
62804
|
typeToString(errorTarget),
|
|
62820
62805
|
suggestion
|
|
62821
62806
|
);
|
|
62822
62807
|
} else {
|
|
62823
|
-
|
|
62808
|
+
reportParentSkippedError(
|
|
62824
62809
|
Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,
|
|
62825
62810
|
symbolToString(prop),
|
|
62826
62811
|
typeToString(errorTarget)
|
package/lib/typescript.js
CHANGED
|
@@ -56388,12 +56388,7 @@ ${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(
|
|
56392
|
-
type,
|
|
56393
|
-
prop.escapedName,
|
|
56394
|
-
/*skipObjectFunctionPropertyAugment*/
|
|
56395
|
-
!!(type.flags & 2097152 /* Intersection */)
|
|
56396
|
-
);
|
|
56391
|
+
const combinedProp = getPropertyOfUnionOrIntersectionType(type, prop.escapedName);
|
|
56397
56392
|
if (combinedProp) {
|
|
56398
56393
|
members.set(prop.escapedName, combinedProp);
|
|
56399
56394
|
}
|
|
@@ -56873,17 +56868,13 @@ ${lanes.join("\n")}
|
|
|
56873
56868
|
return result;
|
|
56874
56869
|
}
|
|
56875
56870
|
function getUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment) {
|
|
56876
|
-
var _a, _b
|
|
56871
|
+
var _a, _b;
|
|
56877
56872
|
let property = ((_a = type.propertyCacheWithoutObjectFunctionPropertyAugment) == null ? void 0 : _a.get(name)) || !skipObjectFunctionPropertyAugment ? (_b = type.propertyCache) == null ? void 0 : _b.get(name) : void 0;
|
|
56878
56873
|
if (!property) {
|
|
56879
56874
|
property = createUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment);
|
|
56880
56875
|
if (property) {
|
|
56881
56876
|
const properties = skipObjectFunctionPropertyAugment ? type.propertyCacheWithoutObjectFunctionPropertyAugment || (type.propertyCacheWithoutObjectFunctionPropertyAugment = createSymbolTable()) : type.propertyCache || (type.propertyCache = createSymbolTable());
|
|
56882
56877
|
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
|
-
}
|
|
56887
56878
|
}
|
|
56888
56879
|
}
|
|
56889
56880
|
return property;
|
|
@@ -57003,22 +56994,7 @@ ${lanes.join("\n")}
|
|
|
57003
56994
|
}
|
|
57004
56995
|
return getPropertyOfObjectType(globalObjectType, name);
|
|
57005
56996
|
}
|
|
57006
|
-
if (type.flags &
|
|
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 */) {
|
|
56997
|
+
if (type.flags & 3145728 /* UnionOrIntersection */) {
|
|
57022
56998
|
return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment);
|
|
57023
56999
|
}
|
|
57024
57000
|
return void 0;
|
|
@@ -62301,6 +62277,7 @@ ${lanes.join("\n")}
|
|
|
62301
62277
|
let overrideNextErrorInfo = 0;
|
|
62302
62278
|
let lastSkippedInfo;
|
|
62303
62279
|
let incompatibleStack;
|
|
62280
|
+
let skipParentCounter = 0;
|
|
62304
62281
|
Debug.assert(relation !== identityRelation || !errorNode, "no error reporting in identity checking");
|
|
62305
62282
|
const result = isRelatedTo(
|
|
62306
62283
|
source,
|
|
@@ -62476,7 +62453,15 @@ ${lanes.join("\n")}
|
|
|
62476
62453
|
reportIncompatibleStack();
|
|
62477
62454
|
if (message.elidedInCompatabilityPyramid)
|
|
62478
62455
|
return;
|
|
62479
|
-
|
|
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++;
|
|
62480
62465
|
}
|
|
62481
62466
|
function associateRelatedInfo(info) {
|
|
62482
62467
|
Debug.assert(!!errorInfo);
|
|
@@ -62813,14 +62798,14 @@ ${lanes.join("\n")}
|
|
|
62813
62798
|
}
|
|
62814
62799
|
}
|
|
62815
62800
|
if (suggestion !== void 0) {
|
|
62816
|
-
|
|
62801
|
+
reportParentSkippedError(
|
|
62817
62802
|
Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,
|
|
62818
62803
|
symbolToString(prop),
|
|
62819
62804
|
typeToString(errorTarget),
|
|
62820
62805
|
suggestion
|
|
62821
62806
|
);
|
|
62822
62807
|
} else {
|
|
62823
|
-
|
|
62808
|
+
reportParentSkippedError(
|
|
62824
62809
|
Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,
|
|
62825
62810
|
symbolToString(prop),
|
|
62826
62811
|
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-
|
|
5
|
+
"version": "5.2.0-pr-55152-2",
|
|
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": "
|
|
117
|
+
"gitHead": "4e746373c1770c712d9801932e5188ab7bc6447e"
|
|
118
118
|
}
|