@typescript-deploys/pr-build 5.6.0-pr-59170-2 → 5.6.0-pr-59170-7

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
@@ -51423,7 +51423,7 @@ function createTypeChecker(host) {
51423
51423
  const type = getReturnTypeOfSignature(signature);
51424
51424
  if (context.enclosingDeclaration && (!isErrorType(type) || context.flags & 1 /* AllowUnresolvedNames */) && signature.declaration && !nodeIsSynthesized(signature.declaration)) {
51425
51425
  const annotation = signature.declaration && getNonlocalEffectiveReturnTypeAnnotationNode(signature.declaration);
51426
- if (annotation && getTypeFromTypeNode2(context, annotation) === type) {
51426
+ if (annotation) {
51427
51427
  const result = tryReuseExistingTypeNode(context, annotation, type, context.enclosingDeclaration);
51428
51428
  if (result) {
51429
51429
  return result;
package/lib/typescript.js CHANGED
@@ -56011,7 +56011,7 @@ function createTypeChecker(host) {
56011
56011
  const type = getReturnTypeOfSignature(signature);
56012
56012
  if (context.enclosingDeclaration && (!isErrorType(type) || context.flags & 1 /* AllowUnresolvedNames */) && signature.declaration && !nodeIsSynthesized(signature.declaration)) {
56013
56013
  const annotation = signature.declaration && getNonlocalEffectiveReturnTypeAnnotationNode(signature.declaration);
56014
- if (annotation && getTypeFromTypeNode2(context, annotation) === type) {
56014
+ if (annotation) {
56015
56015
  const result = tryReuseExistingTypeNode(context, annotation, type, context.enclosingDeclaration);
56016
56016
  if (result) {
56017
56017
  return result;
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.6.0-pr-59170-2",
5
+ "version": "5.6.0-pr-59170-7",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [