@typescript-deploys/pr-build 5.7.0-pr-60036-8 → 5.7.0-pr-59975-15

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
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "5.7";
21
- var version = `${versionMajorMinor}.0-insiders.20240924`;
21
+ var version = `${versionMajorMinor}.0-insiders.20240925`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -75645,11 +75645,11 @@ function createTypeChecker(host) {
75645
75645
  if (funcType === silentNeverType) {
75646
75646
  return silentNeverSignature;
75647
75647
  }
75648
- let apparentType = getApparentType(funcType);
75648
+ const apparentType = getApparentType(funcType);
75649
75649
  if (isErrorType(apparentType)) {
75650
75650
  return resolveErrorCall(node);
75651
75651
  }
75652
- let callSignatures = getSignaturesOfType(apparentType, 0 /* Call */);
75652
+ const callSignatures = getSignaturesOfType(apparentType, 0 /* Call */);
75653
75653
  const numConstructSignatures = getSignaturesOfType(apparentType, 1 /* Construct */).length;
75654
75654
  if (isUntypedFunctionCall(funcType, apparentType, callSignatures.length, numConstructSignatures)) {
75655
75655
  if (!isErrorType(funcType) && node.typeArguments) {
@@ -75677,29 +75677,6 @@ function createTypeChecker(host) {
75677
75677
  }
75678
75678
  return resolveErrorCall(node);
75679
75679
  }
75680
- if (callSignatures.length && node.typeArguments && apparentType.flags & 1048576 /* Union */) {
75681
- let hasPassingSignature = false;
75682
- for (const sig of callSignatures) {
75683
- if (hasCorrectTypeArgumentArity(sig, node.typeArguments)) {
75684
- hasPassingSignature = true;
75685
- break;
75686
- }
75687
- }
75688
- if (!hasPassingSignature) {
75689
- const reduced = getUnionType(apparentType.types, 2 /* Subtype */);
75690
- const reducedCallSignatures = getSignaturesOfType(reduced, 0 /* Call */);
75691
- for (const sig of reducedCallSignatures) {
75692
- if (hasCorrectTypeArgumentArity(sig, node.typeArguments)) {
75693
- hasPassingSignature = true;
75694
- break;
75695
- }
75696
- }
75697
- if (hasPassingSignature) {
75698
- apparentType = reduced;
75699
- callSignatures = reducedCallSignatures;
75700
- }
75701
- }
75702
- }
75703
75680
  if (checkMode & 8 /* SkipGenericFunctions */ && !node.typeArguments && callSignatures.some(isGenericFunctionReturningFunction)) {
75704
75681
  skippedGenericFunction(node, checkMode);
75705
75682
  return resolvingSignature;
@@ -79214,7 +79191,8 @@ function createTypeChecker(host) {
79214
79191
  void 0,
79215
79192
  checkMode || 0 /* Normal */
79216
79193
  ) : checkExpressionCached(initializer, checkMode));
79217
- if (isParameter(isBindingElement(declaration) ? walkUpBindingElementsAndPatterns(declaration) : declaration)) {
79194
+ const rootDeclaration = getRootDeclaration(declaration);
79195
+ if (isParameter(rootDeclaration) && !getEffectiveTypeAnnotationNode(rootDeclaration) && (!isFunctionLikeDeclaration(rootDeclaration.parent) || !getContextualSignatureForFunctionLikeDeclaration(rootDeclaration.parent))) {
79218
79196
  if (declaration.name.kind === 206 /* ObjectBindingPattern */ && isObjectLiteralType(type)) {
79219
79197
  return padObjectLiteralType(type, declaration.name);
79220
79198
  }
@@ -85808,7 +85786,7 @@ function createTypeChecker(host) {
85808
85786
  } else if (isJSDocMemberName(name)) {
85809
85787
  return resolveJSDocMemberName(name);
85810
85788
  }
85811
- } else if (isTypeReferenceIdentifier(name)) {
85789
+ } else if (isEntityName(name) && isTypeReferenceIdentifier(name)) {
85812
85790
  const meaning = name.parent.kind === 183 /* TypeReference */ ? 788968 /* Type */ : 1920 /* Namespace */;
85813
85791
  const symbol = resolveEntityName(
85814
85792
  name,
package/lib/typescript.js CHANGED
@@ -2270,7 +2270,7 @@ module.exports = __toCommonJS(typescript_exports);
2270
2270
 
2271
2271
  // src/compiler/corePublic.ts
2272
2272
  var versionMajorMinor = "5.7";
2273
- var version = `${versionMajorMinor}.0-insiders.20240924`;
2273
+ var version = `${versionMajorMinor}.0-insiders.20240925`;
2274
2274
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2275
2275
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2276
2276
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -80241,11 +80241,11 @@ function createTypeChecker(host) {
80241
80241
  if (funcType === silentNeverType) {
80242
80242
  return silentNeverSignature;
80243
80243
  }
80244
- let apparentType = getApparentType(funcType);
80244
+ const apparentType = getApparentType(funcType);
80245
80245
  if (isErrorType(apparentType)) {
80246
80246
  return resolveErrorCall(node);
80247
80247
  }
80248
- let callSignatures = getSignaturesOfType(apparentType, 0 /* Call */);
80248
+ const callSignatures = getSignaturesOfType(apparentType, 0 /* Call */);
80249
80249
  const numConstructSignatures = getSignaturesOfType(apparentType, 1 /* Construct */).length;
80250
80250
  if (isUntypedFunctionCall(funcType, apparentType, callSignatures.length, numConstructSignatures)) {
80251
80251
  if (!isErrorType(funcType) && node.typeArguments) {
@@ -80273,29 +80273,6 @@ function createTypeChecker(host) {
80273
80273
  }
80274
80274
  return resolveErrorCall(node);
80275
80275
  }
80276
- if (callSignatures.length && node.typeArguments && apparentType.flags & 1048576 /* Union */) {
80277
- let hasPassingSignature = false;
80278
- for (const sig of callSignatures) {
80279
- if (hasCorrectTypeArgumentArity(sig, node.typeArguments)) {
80280
- hasPassingSignature = true;
80281
- break;
80282
- }
80283
- }
80284
- if (!hasPassingSignature) {
80285
- const reduced = getUnionType(apparentType.types, 2 /* Subtype */);
80286
- const reducedCallSignatures = getSignaturesOfType(reduced, 0 /* Call */);
80287
- for (const sig of reducedCallSignatures) {
80288
- if (hasCorrectTypeArgumentArity(sig, node.typeArguments)) {
80289
- hasPassingSignature = true;
80290
- break;
80291
- }
80292
- }
80293
- if (hasPassingSignature) {
80294
- apparentType = reduced;
80295
- callSignatures = reducedCallSignatures;
80296
- }
80297
- }
80298
- }
80299
80276
  if (checkMode & 8 /* SkipGenericFunctions */ && !node.typeArguments && callSignatures.some(isGenericFunctionReturningFunction)) {
80300
80277
  skippedGenericFunction(node, checkMode);
80301
80278
  return resolvingSignature;
@@ -83810,7 +83787,8 @@ function createTypeChecker(host) {
83810
83787
  void 0,
83811
83788
  checkMode || 0 /* Normal */
83812
83789
  ) : checkExpressionCached(initializer, checkMode));
83813
- if (isParameter(isBindingElement(declaration) ? walkUpBindingElementsAndPatterns(declaration) : declaration)) {
83790
+ const rootDeclaration = getRootDeclaration(declaration);
83791
+ if (isParameter(rootDeclaration) && !getEffectiveTypeAnnotationNode(rootDeclaration) && (!isFunctionLikeDeclaration(rootDeclaration.parent) || !getContextualSignatureForFunctionLikeDeclaration(rootDeclaration.parent))) {
83814
83792
  if (declaration.name.kind === 206 /* ObjectBindingPattern */ && isObjectLiteralType2(type)) {
83815
83793
  return padObjectLiteralType(type, declaration.name);
83816
83794
  }
@@ -90404,7 +90382,7 @@ function createTypeChecker(host) {
90404
90382
  } else if (isJSDocMemberName(name)) {
90405
90383
  return resolveJSDocMemberName(name);
90406
90384
  }
90407
- } else if (isTypeReferenceIdentifier(name)) {
90385
+ } else if (isEntityName(name) && isTypeReferenceIdentifier(name)) {
90408
90386
  const meaning = name.parent.kind === 183 /* TypeReference */ ? 788968 /* Type */ : 1920 /* Namespace */;
90409
90387
  const symbol = resolveEntityName(
90410
90388
  name,
@@ -149780,6 +149758,7 @@ var SymbolObject = class {
149780
149758
  if (context) {
149781
149759
  if (isGetAccessor(context)) {
149782
149760
  if (!this.contextualGetAccessorDocumentationComment) {
149761
+ this.contextualGetAccessorDocumentationComment = emptyArray;
149783
149762
  this.contextualGetAccessorDocumentationComment = getDocumentationComment(filter(this.declarations, isGetAccessor), checker);
149784
149763
  }
149785
149764
  if (length(this.contextualGetAccessorDocumentationComment)) {
@@ -149788,6 +149767,7 @@ var SymbolObject = class {
149788
149767
  }
149789
149768
  if (isSetAccessor(context)) {
149790
149769
  if (!this.contextualSetAccessorDocumentationComment) {
149770
+ this.contextualSetAccessorDocumentationComment = emptyArray;
149791
149771
  this.contextualSetAccessorDocumentationComment = getDocumentationComment(filter(this.declarations, isSetAccessor), checker);
149792
149772
  }
149793
149773
  if (length(this.contextualSetAccessorDocumentationComment)) {
@@ -149808,6 +149788,7 @@ var SymbolObject = class {
149808
149788
  if (context) {
149809
149789
  if (isGetAccessor(context)) {
149810
149790
  if (!this.contextualGetAccessorTags) {
149791
+ this.contextualGetAccessorTags = emptyArray;
149811
149792
  this.contextualGetAccessorTags = getJsDocTagsOfDeclarations(filter(this.declarations, isGetAccessor), checker);
149812
149793
  }
149813
149794
  if (length(this.contextualGetAccessorTags)) {
@@ -149816,6 +149797,7 @@ var SymbolObject = class {
149816
149797
  }
149817
149798
  if (isSetAccessor(context)) {
149818
149799
  if (!this.contextualSetAccessorTags) {
149800
+ this.contextualSetAccessorTags = emptyArray;
149819
149801
  this.contextualSetAccessorTags = getJsDocTagsOfDeclarations(filter(this.declarations, isSetAccessor), checker);
149820
149802
  }
149821
149803
  if (length(this.contextualSetAccessorTags)) {
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.7.0-pr-60036-8",
5
+ "version": "5.7.0-pr-59975-15",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [