@typescript-deploys/pr-build 5.8.0-pr-57838-3 → 5.8.0-pr-60644-12

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.8";
21
- var version = `${versionMajorMinor}.0-insiders.20241130`;
21
+ var version = `${versionMajorMinor}.0-insiders.20241202`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -64859,15 +64859,15 @@ function createTypeChecker(host) {
64859
64859
  }
64860
64860
  return result2;
64861
64861
  }
64862
- function getApparentMappedTypeKeys(nameType, mappedType) {
64863
- const modifiersType = getApparentType(getModifiersTypeFromMappedType(mappedType));
64862
+ function getApparentMappedTypeKeys(nameType, targetType) {
64863
+ const modifiersType = getApparentType(getModifiersTypeFromMappedType(targetType));
64864
64864
  const mappedKeys = [];
64865
64865
  forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(
64866
64866
  modifiersType,
64867
64867
  8576 /* StringOrNumberLiteralOrUnique */,
64868
64868
  /*stringsOnly*/
64869
64869
  false,
64870
- (t) => void mappedKeys.push(instantiateType(nameType, appendTypeMapping(mappedType.mapper, getTypeParameterFromMappedType(mappedType), t)))
64870
+ (t) => void mappedKeys.push(instantiateType(nameType, appendTypeMapping(targetType.mapper, getTypeParameterFromMappedType(targetType), t)))
64871
64871
  );
64872
64872
  return getUnionType(mappedKeys);
64873
64873
  }
@@ -65232,15 +65232,7 @@ function createTypeChecker(host) {
65232
65232
  if (isDeferredMappedIndex) {
65233
65233
  const mappedType = source2.type;
65234
65234
  const nameType = getNameTypeFromMappedType(mappedType);
65235
- let sourceMappedKeys;
65236
- if (nameType && isMappedTypeWithKeyofConstraintDeclaration(mappedType)) {
65237
- sourceMappedKeys = getApparentMappedTypeKeys(nameType, mappedType);
65238
- if (sourceMappedKeys.flags & 131072 /* Never */) {
65239
- sourceMappedKeys = stringNumberSymbolType;
65240
- }
65241
- } else {
65242
- sourceMappedKeys = nameType || getConstraintTypeFromMappedType(mappedType);
65243
- }
65235
+ const sourceMappedKeys = nameType && isMappedTypeWithKeyofConstraintDeclaration(mappedType) ? getApparentMappedTypeKeys(nameType, mappedType) : nameType || getConstraintTypeFromMappedType(mappedType);
65244
65236
  if (result2 = isRelatedTo(sourceMappedKeys, target2, 1 /* Source */, reportErrors2)) {
65245
65237
  return result2;
65246
65238
  }
@@ -77781,7 +77773,7 @@ function createTypeChecker(host) {
77781
77773
  }
77782
77774
  return !someType(operandConstraint, (t) => getTypeFacts(t, notEqualFacts) === notEqualFacts);
77783
77775
  }
77784
- const type = checkExpressionCached(node.expression);
77776
+ const type = getBaseConstraintOrType(checkExpressionCached(node.expression));
77785
77777
  if (!isLiteralType(type)) {
77786
77778
  return false;
77787
77779
  }
package/lib/typescript.js CHANGED
@@ -2278,7 +2278,7 @@ module.exports = __toCommonJS(typescript_exports);
2278
2278
 
2279
2279
  // src/compiler/corePublic.ts
2280
2280
  var versionMajorMinor = "5.8";
2281
- var version = `${versionMajorMinor}.0-insiders.20241130`;
2281
+ var version = `${versionMajorMinor}.0-insiders.20241202`;
2282
2282
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2283
2283
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2284
2284
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -69463,15 +69463,15 @@ function createTypeChecker(host) {
69463
69463
  }
69464
69464
  return result2;
69465
69465
  }
69466
- function getApparentMappedTypeKeys(nameType, mappedType) {
69467
- const modifiersType = getApparentType(getModifiersTypeFromMappedType(mappedType));
69466
+ function getApparentMappedTypeKeys(nameType, targetType) {
69467
+ const modifiersType = getApparentType(getModifiersTypeFromMappedType(targetType));
69468
69468
  const mappedKeys = [];
69469
69469
  forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(
69470
69470
  modifiersType,
69471
69471
  8576 /* StringOrNumberLiteralOrUnique */,
69472
69472
  /*stringsOnly*/
69473
69473
  false,
69474
- (t) => void mappedKeys.push(instantiateType(nameType, appendTypeMapping(mappedType.mapper, getTypeParameterFromMappedType(mappedType), t)))
69474
+ (t) => void mappedKeys.push(instantiateType(nameType, appendTypeMapping(targetType.mapper, getTypeParameterFromMappedType(targetType), t)))
69475
69475
  );
69476
69476
  return getUnionType(mappedKeys);
69477
69477
  }
@@ -69836,15 +69836,7 @@ function createTypeChecker(host) {
69836
69836
  if (isDeferredMappedIndex) {
69837
69837
  const mappedType = source2.type;
69838
69838
  const nameType = getNameTypeFromMappedType(mappedType);
69839
- let sourceMappedKeys;
69840
- if (nameType && isMappedTypeWithKeyofConstraintDeclaration(mappedType)) {
69841
- sourceMappedKeys = getApparentMappedTypeKeys(nameType, mappedType);
69842
- if (sourceMappedKeys.flags & 131072 /* Never */) {
69843
- sourceMappedKeys = stringNumberSymbolType;
69844
- }
69845
- } else {
69846
- sourceMappedKeys = nameType || getConstraintTypeFromMappedType(mappedType);
69847
- }
69839
+ const sourceMappedKeys = nameType && isMappedTypeWithKeyofConstraintDeclaration(mappedType) ? getApparentMappedTypeKeys(nameType, mappedType) : nameType || getConstraintTypeFromMappedType(mappedType);
69848
69840
  if (result2 = isRelatedTo(sourceMappedKeys, target2, 1 /* Source */, reportErrors2)) {
69849
69841
  return result2;
69850
69842
  }
@@ -82385,7 +82377,7 @@ function createTypeChecker(host) {
82385
82377
  }
82386
82378
  return !someType(operandConstraint, (t) => getTypeFacts(t, notEqualFacts) === notEqualFacts);
82387
82379
  }
82388
- const type = checkExpressionCached(node.expression);
82380
+ const type = getBaseConstraintOrType(checkExpressionCached(node.expression));
82389
82381
  if (!isLiteralType(type)) {
82390
82382
  return false;
82391
82383
  }
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.8.0-pr-57838-3",
5
+ "version": "5.8.0-pr-60644-12",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [