@typescript-deploys/pr-build 5.5.0-pr-58321-4 → 5.5.0-pr-58323-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 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.20240425`;
21
+ var version = `${versionMajorMinor}.0-insiders.20240426`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -73182,7 +73182,7 @@ function createTypeChecker(host) {
73182
73182
  });
73183
73183
  if (!inferenceContext) {
73184
73184
  applyToReturnTypes(contextualSignature, signature, (source, target) => {
73185
- inferTypes(context.inferences, source, target);
73185
+ inferTypes(context.inferences, source, target, 128 /* ReturnType */);
73186
73186
  });
73187
73187
  }
73188
73188
  return getSignatureInstantiation(signature, getInferredTypes(context), isInJSFile(contextualSignature.declaration));
@@ -84464,6 +84464,18 @@ function createTypeChecker(host) {
84464
84464
  if (node.flags & 67108864 /* InWithStatement */) {
84465
84465
  return errorType;
84466
84466
  }
84467
+ const containingFunction = findAncestor(node, (node2) => {
84468
+ if (isFunctionLikeDeclaration(node2)) {
84469
+ if (node2.asteriskToken) {
84470
+ return true;
84471
+ }
84472
+ return "quit";
84473
+ }
84474
+ return false;
84475
+ });
84476
+ if (containingFunction) {
84477
+ getReturnTypeOfSignature(getSignatureFromDeclaration(containingFunction));
84478
+ }
84467
84479
  const classDecl = tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node);
84468
84480
  const classType = classDecl && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(classDecl.class));
84469
84481
  if (isPartOfTypeNode(node)) {
@@ -9456,6 +9456,7 @@ declare namespace ts {
9456
9456
  interface EmitOutput {
9457
9457
  outputFiles: OutputFile[];
9458
9458
  emitSkipped: boolean;
9459
+ diagnostics: readonly Diagnostic[];
9459
9460
  }
9460
9461
  interface OutputFile {
9461
9462
  name: string;
package/lib/typescript.js CHANGED
@@ -2360,7 +2360,7 @@ module.exports = __toCommonJS(typescript_exports);
2360
2360
 
2361
2361
  // src/compiler/corePublic.ts
2362
2362
  var versionMajorMinor = "5.5";
2363
- var version = `${versionMajorMinor}.0-insiders.20240425`;
2363
+ var version = `${versionMajorMinor}.0-insiders.20240426`;
2364
2364
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2365
2365
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2366
2366
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -78011,7 +78011,7 @@ function createTypeChecker(host) {
78011
78011
  });
78012
78012
  if (!inferenceContext) {
78013
78013
  applyToReturnTypes(contextualSignature, signature, (source, target) => {
78014
- inferTypes(context.inferences, source, target);
78014
+ inferTypes(context.inferences, source, target, 128 /* ReturnType */);
78015
78015
  });
78016
78016
  }
78017
78017
  return getSignatureInstantiation(signature, getInferredTypes(context), isInJSFile(contextualSignature.declaration));
@@ -89293,6 +89293,18 @@ function createTypeChecker(host) {
89293
89293
  if (node.flags & 67108864 /* InWithStatement */) {
89294
89294
  return errorType;
89295
89295
  }
89296
+ const containingFunction = findAncestor(node, (node2) => {
89297
+ if (isFunctionLikeDeclaration(node2)) {
89298
+ if (node2.asteriskToken) {
89299
+ return true;
89300
+ }
89301
+ return "quit";
89302
+ }
89303
+ return false;
89304
+ });
89305
+ if (containingFunction) {
89306
+ getReturnTypeOfSignature(getSignatureFromDeclaration(containingFunction));
89307
+ }
89296
89308
  const classDecl = tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node);
89297
89309
  const classType = classDecl && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(classDecl.class));
89298
89310
  if (isPartOfTypeNode(node)) {
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-58321-4",
5
+ "version": "5.5.0-pr-58323-2",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [