@typescript-deploys/pr-build 5.4.0-pr-56907-6 → 5.4.0-pr-56878-6

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
@@ -55652,7 +55652,7 @@ function createTypeChecker(host) {
55652
55652
  let hasThisParameter = false;
55653
55653
  const iife = getImmediatelyInvokedFunctionExpression(declaration);
55654
55654
  const isJSConstructSignature = isJSDocConstructSignature(declaration);
55655
- const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration) && !getContextualSignatureForFunctionLikeDeclaration(declaration);
55655
+ const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration);
55656
55656
  if (isUntypedSignatureInJSFile) {
55657
55657
  flags |= 32 /* IsUntypedSignatureInJSFile */;
55658
55658
  }
@@ -76770,7 +76770,7 @@ function createTypeChecker(host) {
76770
76770
  return type;
76771
76771
  }
76772
76772
  const apparentObjectType = getApparentType(objectType);
76773
- if (getIndexInfoOfType(apparentObjectType, numberType) && isTypeAssignableToKind(indexType, 296 /* NumberLike */)) {
76773
+ if (getIndexInfoOfType(apparentObjectType, numberType) && isApplicableIndexType(indexType, numberType)) {
76774
76774
  return type;
76775
76775
  }
76776
76776
  if (isGenericObjectType(objectType)) {
package/lib/tsserver.js CHANGED
@@ -60380,7 +60380,7 @@ function createTypeChecker(host) {
60380
60380
  let hasThisParameter2 = false;
60381
60381
  const iife = getImmediatelyInvokedFunctionExpression(declaration);
60382
60382
  const isJSConstructSignature = isJSDocConstructSignature(declaration);
60383
- const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration) && !getContextualSignatureForFunctionLikeDeclaration(declaration);
60383
+ const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration);
60384
60384
  if (isUntypedSignatureInJSFile) {
60385
60385
  flags |= 32 /* IsUntypedSignatureInJSFile */;
60386
60386
  }
@@ -81498,7 +81498,7 @@ function createTypeChecker(host) {
81498
81498
  return type;
81499
81499
  }
81500
81500
  const apparentObjectType = getApparentType(objectType);
81501
- if (getIndexInfoOfType(apparentObjectType, numberType) && isTypeAssignableToKind(indexType, 296 /* NumberLike */)) {
81501
+ if (getIndexInfoOfType(apparentObjectType, numberType) && isApplicableIndexType(indexType, numberType)) {
81502
81502
  return type;
81503
81503
  }
81504
81504
  if (isGenericObjectType(objectType)) {
package/lib/typescript.js CHANGED
@@ -58134,7 +58134,7 @@ ${lanes.join("\n")}
58134
58134
  let hasThisParameter2 = false;
58135
58135
  const iife = getImmediatelyInvokedFunctionExpression(declaration);
58136
58136
  const isJSConstructSignature = isJSDocConstructSignature(declaration);
58137
- const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration) && !getContextualSignatureForFunctionLikeDeclaration(declaration);
58137
+ const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration);
58138
58138
  if (isUntypedSignatureInJSFile) {
58139
58139
  flags |= 32 /* IsUntypedSignatureInJSFile */;
58140
58140
  }
@@ -79252,7 +79252,7 @@ ${lanes.join("\n")}
79252
79252
  return type;
79253
79253
  }
79254
79254
  const apparentObjectType = getApparentType(objectType);
79255
- if (getIndexInfoOfType(apparentObjectType, numberType) && isTypeAssignableToKind(indexType, 296 /* NumberLike */)) {
79255
+ if (getIndexInfoOfType(apparentObjectType, numberType) && isApplicableIndexType(indexType, numberType)) {
79256
79256
  return type;
79257
79257
  }
79258
79258
  if (isGenericObjectType(objectType)) {
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.4.0-pr-56907-6",
5
+ "version": "5.4.0-pr-56878-6",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -114,5 +114,5 @@
114
114
  "node": "20.1.0",
115
115
  "npm": "8.19.4"
116
116
  },
117
- "gitHead": "7b4764f94bcf7c612b152c1231f62d5b2c8c983a"
117
+ "gitHead": "5a05f78d175d6dff8785929533135d4603e5b4c8"
118
118
  }