@typescript-deploys/pr-build 5.5.0-pr-58337-46 → 5.5.0-pr-58352-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 +50 -24
- package/lib/typescript.js +53 -24
- package/package.json +1 -1
package/lib/tsc.js
CHANGED
|
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
// src/compiler/corePublic.ts
|
|
20
20
|
var versionMajorMinor = "5.5";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20240429`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -12623,6 +12623,35 @@ function packageIdToString(packageId) {
|
|
|
12623
12623
|
function typeDirectiveIsEqualTo(oldResolution, newResolution) {
|
|
12624
12624
|
return oldResolution === newResolution || oldResolution.resolvedTypeReferenceDirective === newResolution.resolvedTypeReferenceDirective || !!oldResolution.resolvedTypeReferenceDirective && !!newResolution.resolvedTypeReferenceDirective && oldResolution.resolvedTypeReferenceDirective.resolvedFileName === newResolution.resolvedTypeReferenceDirective.resolvedFileName && !!oldResolution.resolvedTypeReferenceDirective.primary === !!newResolution.resolvedTypeReferenceDirective.primary && oldResolution.resolvedTypeReferenceDirective.originalPath === newResolution.resolvedTypeReferenceDirective.originalPath;
|
|
12625
12625
|
}
|
|
12626
|
+
function fileIncludeReasonIsEqual(a, b) {
|
|
12627
|
+
if (a === b)
|
|
12628
|
+
return true;
|
|
12629
|
+
if (a.kind !== b.kind)
|
|
12630
|
+
return false;
|
|
12631
|
+
switch (a.kind) {
|
|
12632
|
+
case 0 /* RootFile */:
|
|
12633
|
+
Debug.type(b);
|
|
12634
|
+
return a.index === b.index;
|
|
12635
|
+
case 6 /* LibFile */:
|
|
12636
|
+
Debug.type(b);
|
|
12637
|
+
return a.index === b.index;
|
|
12638
|
+
case 1 /* SourceFromProjectReference */:
|
|
12639
|
+
case 2 /* OutputFromProjectReference */:
|
|
12640
|
+
Debug.type(b);
|
|
12641
|
+
return a.index === b.index;
|
|
12642
|
+
case 3 /* Import */:
|
|
12643
|
+
case 4 /* ReferenceFile */:
|
|
12644
|
+
case 5 /* TypeReferenceDirective */:
|
|
12645
|
+
case 7 /* LibReferenceDirective */:
|
|
12646
|
+
Debug.type(b);
|
|
12647
|
+
return a.file === b.file && a.index === b.index;
|
|
12648
|
+
case 8 /* AutomaticTypeDirectiveFile */:
|
|
12649
|
+
Debug.type(b);
|
|
12650
|
+
return a.typeReference === b.typeReference && packageIdIsEqual(a.packageId, b.packageId);
|
|
12651
|
+
default:
|
|
12652
|
+
return Debug.assertNever(a);
|
|
12653
|
+
}
|
|
12654
|
+
}
|
|
12626
12655
|
function hasChangesInResolutions(names, newResolutions, getOldResolution, comparer) {
|
|
12627
12656
|
Debug.assert(names.length === newResolutions.length);
|
|
12628
12657
|
for (let i = 0; i < names.length; i++) {
|
|
@@ -54774,7 +54803,7 @@ function createTypeChecker(host) {
|
|
|
54774
54803
|
}
|
|
54775
54804
|
type = anyType;
|
|
54776
54805
|
}
|
|
54777
|
-
links.type
|
|
54806
|
+
links.type = type;
|
|
54778
54807
|
}
|
|
54779
54808
|
return links.type;
|
|
54780
54809
|
}
|
|
@@ -54792,7 +54821,7 @@ function createTypeChecker(host) {
|
|
|
54792
54821
|
}
|
|
54793
54822
|
writeType = anyType;
|
|
54794
54823
|
}
|
|
54795
|
-
links.writeType
|
|
54824
|
+
links.writeType = writeType || getTypeOfAccessors(symbol);
|
|
54796
54825
|
}
|
|
54797
54826
|
return links.writeType;
|
|
54798
54827
|
}
|
|
@@ -54869,10 +54898,10 @@ function createTypeChecker(host) {
|
|
|
54869
54898
|
true
|
|
54870
54899
|
);
|
|
54871
54900
|
const declaredType = firstDefined(exportSymbol == null ? void 0 : exportSymbol.declarations, (d) => isExportAssignment(d) ? tryGetTypeFromEffectiveTypeNode(d) : void 0);
|
|
54872
|
-
links.type
|
|
54901
|
+
links.type = (exportSymbol == null ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol) : isDuplicatedCommonJSExport(symbol.declarations) ? autoType : declaredType ? declaredType : getSymbolFlags(targetSymbol) & 111551 /* Value */ ? getTypeOfSymbol(targetSymbol) : errorType;
|
|
54873
54902
|
if (!popTypeResolution()) {
|
|
54874
54903
|
reportCircularityError(exportSymbol ?? symbol);
|
|
54875
|
-
return links.type
|
|
54904
|
+
return links.type = errorType;
|
|
54876
54905
|
}
|
|
54877
54906
|
}
|
|
54878
54907
|
return links.type;
|
|
@@ -55138,7 +55167,7 @@ function createTypeChecker(host) {
|
|
|
55138
55167
|
}
|
|
55139
55168
|
if (!popTypeResolution()) {
|
|
55140
55169
|
error(type.symbol.valueDeclaration, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression, symbolToString(type.symbol));
|
|
55141
|
-
return type.resolvedBaseConstructorType
|
|
55170
|
+
return type.resolvedBaseConstructorType = errorType;
|
|
55142
55171
|
}
|
|
55143
55172
|
if (!(baseConstructorType.flags & 1 /* Any */) && baseConstructorType !== nullWideningType && !isConstructorType(baseConstructorType)) {
|
|
55144
55173
|
const err = error(baseTypeNode.expression, Diagnostics.Type_0_is_not_a_constructor_function_type, typeToString(baseConstructorType));
|
|
@@ -55155,9 +55184,9 @@ function createTypeChecker(host) {
|
|
|
55155
55184
|
addRelatedInfo(err, createDiagnosticForNode(baseConstructorType.symbol.declarations[0], Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1, symbolToString(baseConstructorType.symbol), typeToString(ctorReturn)));
|
|
55156
55185
|
}
|
|
55157
55186
|
}
|
|
55158
|
-
return type.resolvedBaseConstructorType
|
|
55187
|
+
return type.resolvedBaseConstructorType = errorType;
|
|
55159
55188
|
}
|
|
55160
|
-
type.resolvedBaseConstructorType
|
|
55189
|
+
type.resolvedBaseConstructorType = baseConstructorType;
|
|
55161
55190
|
}
|
|
55162
55191
|
return type.resolvedBaseConstructorType;
|
|
55163
55192
|
}
|
|
@@ -55398,7 +55427,7 @@ function createTypeChecker(host) {
|
|
|
55398
55427
|
error(isNamedDeclaration(declaration) ? declaration.name || declaration : declaration, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol));
|
|
55399
55428
|
}
|
|
55400
55429
|
}
|
|
55401
|
-
links.declaredType
|
|
55430
|
+
links.declaredType = type;
|
|
55402
55431
|
}
|
|
55403
55432
|
return links.declaredType;
|
|
55404
55433
|
}
|
|
@@ -56516,7 +56545,6 @@ function createTypeChecker(host) {
|
|
|
56516
56545
|
}
|
|
56517
56546
|
}
|
|
56518
56547
|
function getTypeOfMappedSymbol(symbol) {
|
|
56519
|
-
var _a;
|
|
56520
56548
|
if (!symbol.links.type) {
|
|
56521
56549
|
const mappedType = symbol.links.mappedType;
|
|
56522
56550
|
if (!pushTypeResolution(symbol, 0 /* Type */)) {
|
|
@@ -56535,7 +56563,7 @@ function createTypeChecker(host) {
|
|
|
56535
56563
|
error(currentNode, Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1, symbolToString(symbol), typeToString(mappedType));
|
|
56536
56564
|
type = errorType;
|
|
56537
56565
|
}
|
|
56538
|
-
|
|
56566
|
+
symbol.links.type = type;
|
|
56539
56567
|
}
|
|
56540
56568
|
return symbol.links.type;
|
|
56541
56569
|
}
|
|
@@ -56888,7 +56916,7 @@ function createTypeChecker(host) {
|
|
|
56888
56916
|
}
|
|
56889
56917
|
result = circularConstraintType;
|
|
56890
56918
|
}
|
|
56891
|
-
t.immediateBaseConstraint
|
|
56919
|
+
t.immediateBaseConstraint = result || noConstraintType;
|
|
56892
56920
|
}
|
|
56893
56921
|
return t.immediateBaseConstraint;
|
|
56894
56922
|
}
|
|
@@ -57762,7 +57790,7 @@ function createTypeChecker(host) {
|
|
|
57762
57790
|
}
|
|
57763
57791
|
type = anyType;
|
|
57764
57792
|
}
|
|
57765
|
-
signature.resolvedReturnType
|
|
57793
|
+
signature.resolvedReturnType = type;
|
|
57766
57794
|
}
|
|
57767
57795
|
return signature.resolvedReturnType;
|
|
57768
57796
|
}
|
|
@@ -58108,9 +58136,9 @@ function createTypeChecker(host) {
|
|
|
58108
58136
|
const node = type.node;
|
|
58109
58137
|
const typeArguments = !node ? emptyArray : node.kind === 183 /* TypeReference */ ? concatenate(type.target.outerTypeParameters, getEffectiveTypeArguments(node, type.target.localTypeParameters)) : node.kind === 188 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode);
|
|
58110
58138
|
if (popTypeResolution()) {
|
|
58111
|
-
type.resolvedTypeArguments
|
|
58139
|
+
type.resolvedTypeArguments = type.mapper ? instantiateTypes(typeArguments, type.mapper) : typeArguments;
|
|
58112
58140
|
} else {
|
|
58113
|
-
type.resolvedTypeArguments
|
|
58141
|
+
type.resolvedTypeArguments = ((_b = type.target.localTypeParameters) == null ? void 0 : _b.map(() => errorType)) || emptyArray;
|
|
58114
58142
|
error(
|
|
58115
58143
|
type.node || currentNode,
|
|
58116
58144
|
type.target.symbol ? Diagnostics.Type_arguments_for_0_circularly_reference_themselves : Diagnostics.Tuple_type_arguments_circularly_reference_themselves,
|
|
@@ -65157,7 +65185,6 @@ function createTypeChecker(host) {
|
|
|
65157
65185
|
if (!links.variances) {
|
|
65158
65186
|
(_a = tracing) == null ? void 0 : _a.push(tracing.Phase.CheckTypes, "getVariancesWorker", { arity: typeParameters.length, id: getTypeId(getDeclaredTypeOfSymbol(symbol)) });
|
|
65159
65187
|
const oldVarianceComputation = inVarianceComputation;
|
|
65160
|
-
const saveResolutionStart = resolutionStart;
|
|
65161
65188
|
if (!inVarianceComputation) {
|
|
65162
65189
|
inVarianceComputation = true;
|
|
65163
65190
|
resolutionStart = resolutionTargets.length;
|
|
@@ -65192,7 +65219,7 @@ function createTypeChecker(host) {
|
|
|
65192
65219
|
}
|
|
65193
65220
|
if (!oldVarianceComputation) {
|
|
65194
65221
|
inVarianceComputation = false;
|
|
65195
|
-
resolutionStart =
|
|
65222
|
+
resolutionStart = 0;
|
|
65196
65223
|
}
|
|
65197
65224
|
links.variances = variances;
|
|
65198
65225
|
(_b = tracing) == null ? void 0 : _b.pop({ variances: variances.map(Debug.formatVariance) });
|
|
@@ -69385,7 +69412,7 @@ function createTypeChecker(host) {
|
|
|
69385
69412
|
reportCircularityError(declaration.symbol);
|
|
69386
69413
|
return true;
|
|
69387
69414
|
}
|
|
69388
|
-
links.parameterInitializerContainsUndefined
|
|
69415
|
+
links.parameterInitializerContainsUndefined = containsUndefined;
|
|
69389
69416
|
}
|
|
69390
69417
|
return links.parameterInitializerContainsUndefined;
|
|
69391
69418
|
}
|
|
@@ -74794,13 +74821,8 @@ function createTypeChecker(host) {
|
|
|
74794
74821
|
if (cached && cached !== resolvingSignature && !candidatesOutArray) {
|
|
74795
74822
|
return cached;
|
|
74796
74823
|
}
|
|
74797
|
-
const saveResolutionStart = resolutionStart;
|
|
74798
|
-
if (!cached) {
|
|
74799
|
-
resolutionStart = resolutionTargets.length;
|
|
74800
|
-
}
|
|
74801
74824
|
links.resolvedSignature = resolvingSignature;
|
|
74802
74825
|
let result = resolveSignature(node, candidatesOutArray, checkMode || 0 /* Normal */);
|
|
74803
|
-
resolutionStart = saveResolutionStart;
|
|
74804
74826
|
if (result !== resolvingSignature) {
|
|
74805
74827
|
if (links.resolvedSignature !== resolvingSignature) {
|
|
74806
74828
|
result = links.resolvedSignature;
|
|
@@ -120789,8 +120811,12 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
120789
120811
|
return file;
|
|
120790
120812
|
}
|
|
120791
120813
|
function addFileIncludeReason(file, reason) {
|
|
120792
|
-
if (file)
|
|
120814
|
+
if (file) {
|
|
120815
|
+
const existing = fileReasons.get(file.path);
|
|
120816
|
+
if (some(existing, (r) => fileIncludeReasonIsEqual(r, reason)))
|
|
120817
|
+
return;
|
|
120793
120818
|
fileReasons.add(file.path, reason);
|
|
120819
|
+
}
|
|
120794
120820
|
}
|
|
120795
120821
|
function addFileToFilesByName(file, path, fileName, redirectedPath) {
|
|
120796
120822
|
if (redirectedPath) {
|
package/lib/typescript.js
CHANGED
|
@@ -572,6 +572,7 @@ __export(typescript_exports, {
|
|
|
572
572
|
factory: () => factory,
|
|
573
573
|
fileExtensionIs: () => fileExtensionIs,
|
|
574
574
|
fileExtensionIsOneOf: () => fileExtensionIsOneOf,
|
|
575
|
+
fileIncludeReasonIsEqual: () => fileIncludeReasonIsEqual,
|
|
575
576
|
fileIncludeReasonToDiagnostics: () => fileIncludeReasonToDiagnostics,
|
|
576
577
|
fileShouldUseJavaScriptRequire: () => fileShouldUseJavaScriptRequire,
|
|
577
578
|
filter: () => filter,
|
|
@@ -2361,7 +2362,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2361
2362
|
|
|
2362
2363
|
// src/compiler/corePublic.ts
|
|
2363
2364
|
var versionMajorMinor = "5.5";
|
|
2364
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2365
|
+
var version = `${versionMajorMinor}.0-insiders.20240429`;
|
|
2365
2366
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2366
2367
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2367
2368
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -16441,6 +16442,35 @@ function packageIdToString(packageId) {
|
|
|
16441
16442
|
function typeDirectiveIsEqualTo(oldResolution, newResolution) {
|
|
16442
16443
|
return oldResolution === newResolution || oldResolution.resolvedTypeReferenceDirective === newResolution.resolvedTypeReferenceDirective || !!oldResolution.resolvedTypeReferenceDirective && !!newResolution.resolvedTypeReferenceDirective && oldResolution.resolvedTypeReferenceDirective.resolvedFileName === newResolution.resolvedTypeReferenceDirective.resolvedFileName && !!oldResolution.resolvedTypeReferenceDirective.primary === !!newResolution.resolvedTypeReferenceDirective.primary && oldResolution.resolvedTypeReferenceDirective.originalPath === newResolution.resolvedTypeReferenceDirective.originalPath;
|
|
16443
16444
|
}
|
|
16445
|
+
function fileIncludeReasonIsEqual(a, b) {
|
|
16446
|
+
if (a === b)
|
|
16447
|
+
return true;
|
|
16448
|
+
if (a.kind !== b.kind)
|
|
16449
|
+
return false;
|
|
16450
|
+
switch (a.kind) {
|
|
16451
|
+
case 0 /* RootFile */:
|
|
16452
|
+
Debug.type(b);
|
|
16453
|
+
return a.index === b.index;
|
|
16454
|
+
case 6 /* LibFile */:
|
|
16455
|
+
Debug.type(b);
|
|
16456
|
+
return a.index === b.index;
|
|
16457
|
+
case 1 /* SourceFromProjectReference */:
|
|
16458
|
+
case 2 /* OutputFromProjectReference */:
|
|
16459
|
+
Debug.type(b);
|
|
16460
|
+
return a.index === b.index;
|
|
16461
|
+
case 3 /* Import */:
|
|
16462
|
+
case 4 /* ReferenceFile */:
|
|
16463
|
+
case 5 /* TypeReferenceDirective */:
|
|
16464
|
+
case 7 /* LibReferenceDirective */:
|
|
16465
|
+
Debug.type(b);
|
|
16466
|
+
return a.file === b.file && a.index === b.index;
|
|
16467
|
+
case 8 /* AutomaticTypeDirectiveFile */:
|
|
16468
|
+
Debug.type(b);
|
|
16469
|
+
return a.typeReference === b.typeReference && packageIdIsEqual(a.packageId, b.packageId);
|
|
16470
|
+
default:
|
|
16471
|
+
return Debug.assertNever(a);
|
|
16472
|
+
}
|
|
16473
|
+
}
|
|
16444
16474
|
function hasChangesInResolutions(names, newResolutions, getOldResolution, comparer) {
|
|
16445
16475
|
Debug.assert(names.length === newResolutions.length);
|
|
16446
16476
|
for (let i = 0; i < names.length; i++) {
|
|
@@ -59604,7 +59634,7 @@ function createTypeChecker(host) {
|
|
|
59604
59634
|
}
|
|
59605
59635
|
type = anyType;
|
|
59606
59636
|
}
|
|
59607
|
-
links.type
|
|
59637
|
+
links.type = type;
|
|
59608
59638
|
}
|
|
59609
59639
|
return links.type;
|
|
59610
59640
|
}
|
|
@@ -59622,7 +59652,7 @@ function createTypeChecker(host) {
|
|
|
59622
59652
|
}
|
|
59623
59653
|
writeType = anyType;
|
|
59624
59654
|
}
|
|
59625
|
-
links.writeType
|
|
59655
|
+
links.writeType = writeType || getTypeOfAccessors(symbol);
|
|
59626
59656
|
}
|
|
59627
59657
|
return links.writeType;
|
|
59628
59658
|
}
|
|
@@ -59699,10 +59729,10 @@ function createTypeChecker(host) {
|
|
|
59699
59729
|
true
|
|
59700
59730
|
);
|
|
59701
59731
|
const declaredType = firstDefined(exportSymbol == null ? void 0 : exportSymbol.declarations, (d) => isExportAssignment(d) ? tryGetTypeFromEffectiveTypeNode(d) : void 0);
|
|
59702
|
-
links.type
|
|
59732
|
+
links.type = (exportSymbol == null ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol) : isDuplicatedCommonJSExport(symbol.declarations) ? autoType : declaredType ? declaredType : getSymbolFlags(targetSymbol) & 111551 /* Value */ ? getTypeOfSymbol(targetSymbol) : errorType;
|
|
59703
59733
|
if (!popTypeResolution()) {
|
|
59704
59734
|
reportCircularityError(exportSymbol ?? symbol);
|
|
59705
|
-
return links.type
|
|
59735
|
+
return links.type = errorType;
|
|
59706
59736
|
}
|
|
59707
59737
|
}
|
|
59708
59738
|
return links.type;
|
|
@@ -59968,7 +59998,7 @@ function createTypeChecker(host) {
|
|
|
59968
59998
|
}
|
|
59969
59999
|
if (!popTypeResolution()) {
|
|
59970
60000
|
error2(type.symbol.valueDeclaration, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression, symbolToString(type.symbol));
|
|
59971
|
-
return type.resolvedBaseConstructorType
|
|
60001
|
+
return type.resolvedBaseConstructorType = errorType;
|
|
59972
60002
|
}
|
|
59973
60003
|
if (!(baseConstructorType.flags & 1 /* Any */) && baseConstructorType !== nullWideningType && !isConstructorType(baseConstructorType)) {
|
|
59974
60004
|
const err = error2(baseTypeNode.expression, Diagnostics.Type_0_is_not_a_constructor_function_type, typeToString(baseConstructorType));
|
|
@@ -59985,9 +60015,9 @@ function createTypeChecker(host) {
|
|
|
59985
60015
|
addRelatedInfo(err, createDiagnosticForNode(baseConstructorType.symbol.declarations[0], Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1, symbolToString(baseConstructorType.symbol), typeToString(ctorReturn)));
|
|
59986
60016
|
}
|
|
59987
60017
|
}
|
|
59988
|
-
return type.resolvedBaseConstructorType
|
|
60018
|
+
return type.resolvedBaseConstructorType = errorType;
|
|
59989
60019
|
}
|
|
59990
|
-
type.resolvedBaseConstructorType
|
|
60020
|
+
type.resolvedBaseConstructorType = baseConstructorType;
|
|
59991
60021
|
}
|
|
59992
60022
|
return type.resolvedBaseConstructorType;
|
|
59993
60023
|
}
|
|
@@ -60228,7 +60258,7 @@ function createTypeChecker(host) {
|
|
|
60228
60258
|
error2(isNamedDeclaration(declaration) ? declaration.name || declaration : declaration, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol));
|
|
60229
60259
|
}
|
|
60230
60260
|
}
|
|
60231
|
-
links.declaredType
|
|
60261
|
+
links.declaredType = type;
|
|
60232
60262
|
}
|
|
60233
60263
|
return links.declaredType;
|
|
60234
60264
|
}
|
|
@@ -61346,7 +61376,6 @@ function createTypeChecker(host) {
|
|
|
61346
61376
|
}
|
|
61347
61377
|
}
|
|
61348
61378
|
function getTypeOfMappedSymbol(symbol) {
|
|
61349
|
-
var _a;
|
|
61350
61379
|
if (!symbol.links.type) {
|
|
61351
61380
|
const mappedType = symbol.links.mappedType;
|
|
61352
61381
|
if (!pushTypeResolution(symbol, 0 /* Type */)) {
|
|
@@ -61365,7 +61394,7 @@ function createTypeChecker(host) {
|
|
|
61365
61394
|
error2(currentNode, Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1, symbolToString(symbol), typeToString(mappedType));
|
|
61366
61395
|
type = errorType;
|
|
61367
61396
|
}
|
|
61368
|
-
|
|
61397
|
+
symbol.links.type = type;
|
|
61369
61398
|
}
|
|
61370
61399
|
return symbol.links.type;
|
|
61371
61400
|
}
|
|
@@ -61718,7 +61747,7 @@ function createTypeChecker(host) {
|
|
|
61718
61747
|
}
|
|
61719
61748
|
result = circularConstraintType;
|
|
61720
61749
|
}
|
|
61721
|
-
t.immediateBaseConstraint
|
|
61750
|
+
t.immediateBaseConstraint = result || noConstraintType;
|
|
61722
61751
|
}
|
|
61723
61752
|
return t.immediateBaseConstraint;
|
|
61724
61753
|
}
|
|
@@ -62592,7 +62621,7 @@ function createTypeChecker(host) {
|
|
|
62592
62621
|
}
|
|
62593
62622
|
type = anyType;
|
|
62594
62623
|
}
|
|
62595
|
-
signature.resolvedReturnType
|
|
62624
|
+
signature.resolvedReturnType = type;
|
|
62596
62625
|
}
|
|
62597
62626
|
return signature.resolvedReturnType;
|
|
62598
62627
|
}
|
|
@@ -62938,9 +62967,9 @@ function createTypeChecker(host) {
|
|
|
62938
62967
|
const node = type.node;
|
|
62939
62968
|
const typeArguments = !node ? emptyArray : node.kind === 183 /* TypeReference */ ? concatenate(type.target.outerTypeParameters, getEffectiveTypeArguments2(node, type.target.localTypeParameters)) : node.kind === 188 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode);
|
|
62940
62969
|
if (popTypeResolution()) {
|
|
62941
|
-
type.resolvedTypeArguments
|
|
62970
|
+
type.resolvedTypeArguments = type.mapper ? instantiateTypes(typeArguments, type.mapper) : typeArguments;
|
|
62942
62971
|
} else {
|
|
62943
|
-
type.resolvedTypeArguments
|
|
62972
|
+
type.resolvedTypeArguments = ((_b = type.target.localTypeParameters) == null ? void 0 : _b.map(() => errorType)) || emptyArray;
|
|
62944
62973
|
error2(
|
|
62945
62974
|
type.node || currentNode,
|
|
62946
62975
|
type.target.symbol ? Diagnostics.Type_arguments_for_0_circularly_reference_themselves : Diagnostics.Tuple_type_arguments_circularly_reference_themselves,
|
|
@@ -69987,7 +70016,6 @@ function createTypeChecker(host) {
|
|
|
69987
70016
|
if (!links.variances) {
|
|
69988
70017
|
(_a = tracing) == null ? void 0 : _a.push(tracing.Phase.CheckTypes, "getVariancesWorker", { arity: typeParameters.length, id: getTypeId(getDeclaredTypeOfSymbol(symbol)) });
|
|
69989
70018
|
const oldVarianceComputation = inVarianceComputation;
|
|
69990
|
-
const saveResolutionStart = resolutionStart;
|
|
69991
70019
|
if (!inVarianceComputation) {
|
|
69992
70020
|
inVarianceComputation = true;
|
|
69993
70021
|
resolutionStart = resolutionTargets.length;
|
|
@@ -70022,7 +70050,7 @@ function createTypeChecker(host) {
|
|
|
70022
70050
|
}
|
|
70023
70051
|
if (!oldVarianceComputation) {
|
|
70024
70052
|
inVarianceComputation = false;
|
|
70025
|
-
resolutionStart =
|
|
70053
|
+
resolutionStart = 0;
|
|
70026
70054
|
}
|
|
70027
70055
|
links.variances = variances;
|
|
70028
70056
|
(_b = tracing) == null ? void 0 : _b.pop({ variances: variances.map(Debug.formatVariance) });
|
|
@@ -74215,7 +74243,7 @@ function createTypeChecker(host) {
|
|
|
74215
74243
|
reportCircularityError(declaration.symbol);
|
|
74216
74244
|
return true;
|
|
74217
74245
|
}
|
|
74218
|
-
links.parameterInitializerContainsUndefined
|
|
74246
|
+
links.parameterInitializerContainsUndefined = containsUndefined;
|
|
74219
74247
|
}
|
|
74220
74248
|
return links.parameterInitializerContainsUndefined;
|
|
74221
74249
|
}
|
|
@@ -79624,13 +79652,8 @@ function createTypeChecker(host) {
|
|
|
79624
79652
|
if (cached && cached !== resolvingSignature && !candidatesOutArray) {
|
|
79625
79653
|
return cached;
|
|
79626
79654
|
}
|
|
79627
|
-
const saveResolutionStart = resolutionStart;
|
|
79628
|
-
if (!cached) {
|
|
79629
|
-
resolutionStart = resolutionTargets.length;
|
|
79630
|
-
}
|
|
79631
79655
|
links.resolvedSignature = resolvingSignature;
|
|
79632
79656
|
let result = resolveSignature(node, candidatesOutArray, checkMode || 0 /* Normal */);
|
|
79633
|
-
resolutionStart = saveResolutionStart;
|
|
79634
79657
|
if (result !== resolvingSignature) {
|
|
79635
79658
|
if (links.resolvedSignature !== resolvingSignature) {
|
|
79636
79659
|
result = links.resolvedSignature;
|
|
@@ -125863,8 +125886,12 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
125863
125886
|
return file;
|
|
125864
125887
|
}
|
|
125865
125888
|
function addFileIncludeReason(file, reason) {
|
|
125866
|
-
if (file)
|
|
125889
|
+
if (file) {
|
|
125890
|
+
const existing = fileReasons.get(file.path);
|
|
125891
|
+
if (some(existing, (r) => fileIncludeReasonIsEqual(r, reason)))
|
|
125892
|
+
return;
|
|
125867
125893
|
fileReasons.add(file.path, reason);
|
|
125894
|
+
}
|
|
125868
125895
|
}
|
|
125869
125896
|
function addFileToFilesByName(file, path, fileName, redirectedPath) {
|
|
125870
125897
|
if (redirectedPath) {
|
|
@@ -178358,6 +178385,7 @@ __export(ts_exports2, {
|
|
|
178358
178385
|
factory: () => factory,
|
|
178359
178386
|
fileExtensionIs: () => fileExtensionIs,
|
|
178360
178387
|
fileExtensionIsOneOf: () => fileExtensionIsOneOf,
|
|
178388
|
+
fileIncludeReasonIsEqual: () => fileIncludeReasonIsEqual,
|
|
178361
178389
|
fileIncludeReasonToDiagnostics: () => fileIncludeReasonToDiagnostics,
|
|
178362
178390
|
fileShouldUseJavaScriptRequire: () => fileShouldUseJavaScriptRequire,
|
|
178363
178391
|
filter: () => filter,
|
|
@@ -192785,6 +192813,7 @@ if (typeof console !== "undefined") {
|
|
|
192785
192813
|
factory,
|
|
192786
192814
|
fileExtensionIs,
|
|
192787
192815
|
fileExtensionIsOneOf,
|
|
192816
|
+
fileIncludeReasonIsEqual,
|
|
192788
192817
|
fileIncludeReasonToDiagnostics,
|
|
192789
192818
|
fileShouldUseJavaScriptRequire,
|
|
192790
192819
|
filter,
|
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.5.0-pr-
|
|
5
|
+
"version": "5.5.0-pr-58352-3",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|