@typescript-deploys/pr-build 5.5.0-pr-58321-7 → 5.5.0-pr-58333-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 = [];
@@ -73178,19 +73178,11 @@ function createTypeChecker(host) {
73178
73178
  const mapper = inferenceContext && (restType && restType.flags & 262144 /* TypeParameter */ ? inferenceContext.nonFixingMapper : inferenceContext.mapper);
73179
73179
  const sourceSignature = mapper ? instantiateSignature(contextualSignature, mapper) : contextualSignature;
73180
73180
  applyToParameterTypes(sourceSignature, signature, (source, target) => {
73181
- inferTypes(
73182
- context.inferences,
73183
- source,
73184
- target,
73185
- /*priority*/
73186
- void 0,
73187
- /*contravariant*/
73188
- strictFunctionTypes
73189
- );
73181
+ inferTypes(context.inferences, source, target);
73190
73182
  });
73191
73183
  if (!inferenceContext) {
73192
73184
  applyToReturnTypes(contextualSignature, signature, (source, target) => {
73193
- inferTypes(context.inferences, source, target);
73185
+ inferTypes(context.inferences, source, target, 128 /* ReturnType */);
73194
73186
  });
73195
73187
  }
73196
73188
  return getSignatureInstantiation(signature, getInferredTypes(context), isInJSFile(contextualSignature.declaration));
@@ -110470,12 +110462,13 @@ function createGetIsolatedDeclarationErrors(resolver) {
110470
110462
  // src/compiler/transformers/declarations.ts
110471
110463
  function getDeclarationDiagnostics(host, resolver, file) {
110472
110464
  const compilerOptions = host.getCompilerOptions();
110465
+ const files = filter(getSourceFilesToEmit(host, file), isSourceFileNotJson);
110473
110466
  const result = transformNodes(
110474
110467
  resolver,
110475
110468
  host,
110476
110469
  factory,
110477
110470
  compilerOptions,
110478
- file ? [file] : filter(host.getSourceFiles(), isSourceFileNotJson),
110471
+ file ? contains(files, file) ? [file] : emptyArray : files,
110479
110472
  [transformDeclarations],
110480
110473
  /*allowDtsFiles*/
110481
110474
  false
@@ -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";
@@ -78007,19 +78007,11 @@ function createTypeChecker(host) {
78007
78007
  const mapper = inferenceContext && (restType && restType.flags & 262144 /* TypeParameter */ ? inferenceContext.nonFixingMapper : inferenceContext.mapper);
78008
78008
  const sourceSignature = mapper ? instantiateSignature(contextualSignature, mapper) : contextualSignature;
78009
78009
  applyToParameterTypes(sourceSignature, signature, (source, target) => {
78010
- inferTypes(
78011
- context.inferences,
78012
- source,
78013
- target,
78014
- /*priority*/
78015
- void 0,
78016
- /*contravariant*/
78017
- strictFunctionTypes
78018
- );
78010
+ inferTypes(context.inferences, source, target);
78019
78011
  });
78020
78012
  if (!inferenceContext) {
78021
78013
  applyToReturnTypes(contextualSignature, signature, (source, target) => {
78022
- inferTypes(context.inferences, source, target);
78014
+ inferTypes(context.inferences, source, target, 128 /* ReturnType */);
78023
78015
  });
78024
78016
  }
78025
78017
  return getSignatureInstantiation(signature, getInferredTypes(context), isInJSFile(contextualSignature.declaration));
@@ -115486,12 +115478,13 @@ function createGetIsolatedDeclarationErrors(resolver) {
115486
115478
  // src/compiler/transformers/declarations.ts
115487
115479
  function getDeclarationDiagnostics(host, resolver, file) {
115488
115480
  const compilerOptions = host.getCompilerOptions();
115481
+ const files = filter(getSourceFilesToEmit(host, file), isSourceFileNotJson);
115489
115482
  const result = transformNodes(
115490
115483
  resolver,
115491
115484
  host,
115492
115485
  factory,
115493
115486
  compilerOptions,
115494
- file ? [file] : filter(host.getSourceFiles(), isSourceFileNotJson),
115487
+ file ? contains(files, file) ? [file] : emptyArray : files,
115495
115488
  [transformDeclarations],
115496
115489
  /*allowDtsFiles*/
115497
115490
  false
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-7",
5
+ "version": "5.5.0-pr-58333-2",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [