@typescript-deploys/pr-build 5.8.0-pr-52972-10 → 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.20241127`;
21
+ var version = `${versionMajorMinor}.0-insiders.20241202`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -57342,20 +57342,12 @@ function createTypeChecker(host) {
57342
57342
  const indexInfos = indexInfo ? [createIndexInfo(stringType, inferReverseMappedType(indexInfo.type, type.mappedType, type.constraintType) || unknownType, readonlyMask && indexInfo.isReadonly)] : emptyArray;
57343
57343
  const members = createSymbolTable();
57344
57344
  const limitedConstraint = getLimitedConstraint(type);
57345
- const nameType = getNameTypeFromMappedType(type.mappedType);
57346
57345
  for (const prop of getPropertiesOfType(type.source)) {
57347
- if (limitedConstraint || nameType) {
57346
+ if (limitedConstraint) {
57348
57347
  const propertyNameType = getLiteralTypeFromProperty(prop, 8576 /* StringOrNumberLiteralOrUnique */);
57349
- if (limitedConstraint && !isTypeAssignableTo(propertyNameType, limitedConstraint)) {
57348
+ if (!isTypeAssignableTo(propertyNameType, limitedConstraint)) {
57350
57349
  continue;
57351
57350
  }
57352
- if (nameType) {
57353
- const nameMapper = appendTypeMapping(type.mappedType.mapper, getTypeParameterFromMappedType(type.mappedType), propertyNameType);
57354
- const instantiatedNameType = instantiateType(nameType, nameMapper);
57355
- if (instantiatedNameType.flags & 131072 /* Never */) {
57356
- continue;
57357
- }
57358
- }
57359
57351
  }
57360
57352
  const checkFlags = 8192 /* ReverseMapped */ | (readonlyMask && isReadonlySymbol(prop) ? 8 /* Readonly */ : 0);
57361
57353
  const inferredProp = createSymbol(4 /* Property */ | prop.flags & optionalMask, prop.escapedName, checkFlags);
@@ -67983,13 +67975,10 @@ function createTypeChecker(host) {
67983
67975
  if (isGenericMappedType(source) && isGenericMappedType(target)) {
67984
67976
  inferFromGenericMappedTypes(source, target);
67985
67977
  }
67986
- if (getObjectFlags(target) & 32 /* Mapped */) {
67987
- const mappedType = target;
67988
- if (getMappedTypeNameTypeKind(mappedType) !== 2 /* Remapping */) {
67989
- const constraintType = getConstraintTypeFromMappedType(mappedType);
67990
- if (inferToMappedType(source, mappedType, constraintType)) {
67991
- return;
67992
- }
67978
+ if (getObjectFlags(target) & 32 /* Mapped */ && !target.declaration.nameType) {
67979
+ const constraintType = getConstraintTypeFromMappedType(target);
67980
+ if (inferToMappedType(source, target, constraintType)) {
67981
+ return;
67993
67982
  }
67994
67983
  }
67995
67984
  if (!typesDefinitelyUnrelated(source, target)) {
@@ -77784,7 +77773,7 @@ function createTypeChecker(host) {
77784
77773
  }
77785
77774
  return !someType(operandConstraint, (t) => getTypeFacts(t, notEqualFacts) === notEqualFacts);
77786
77775
  }
77787
- const type = checkExpressionCached(node.expression);
77776
+ const type = getBaseConstraintOrType(checkExpressionCached(node.expression));
77788
77777
  if (!isLiteralType(type)) {
77789
77778
  return false;
77790
77779
  }
package/lib/lib.es5.d.ts CHANGED
@@ -696,7 +696,7 @@ interface Math {
696
696
  */
697
697
  atan(x: number): number;
698
698
  /**
699
- * Returns the angle (in radians) from the X axis to a point.
699
+ * Returns the angle (in radians) between the X axis and the line going through both the origin and the given point.
700
700
  * @param y A numeric expression representing the cartesian y-coordinate.
701
701
  * @param x A numeric expression representing the cartesian x-coordinate.
702
702
  */
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.20241127`;
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";
@@ -61946,20 +61946,12 @@ function createTypeChecker(host) {
61946
61946
  const indexInfos = indexInfo ? [createIndexInfo(stringType, inferReverseMappedType(indexInfo.type, type.mappedType, type.constraintType) || unknownType, readonlyMask && indexInfo.isReadonly)] : emptyArray;
61947
61947
  const members = createSymbolTable();
61948
61948
  const limitedConstraint = getLimitedConstraint(type);
61949
- const nameType = getNameTypeFromMappedType(type.mappedType);
61950
61949
  for (const prop of getPropertiesOfType(type.source)) {
61951
- if (limitedConstraint || nameType) {
61950
+ if (limitedConstraint) {
61952
61951
  const propertyNameType = getLiteralTypeFromProperty(prop, 8576 /* StringOrNumberLiteralOrUnique */);
61953
- if (limitedConstraint && !isTypeAssignableTo(propertyNameType, limitedConstraint)) {
61952
+ if (!isTypeAssignableTo(propertyNameType, limitedConstraint)) {
61954
61953
  continue;
61955
61954
  }
61956
- if (nameType) {
61957
- const nameMapper = appendTypeMapping(type.mappedType.mapper, getTypeParameterFromMappedType(type.mappedType), propertyNameType);
61958
- const instantiatedNameType = instantiateType(nameType, nameMapper);
61959
- if (instantiatedNameType.flags & 131072 /* Never */) {
61960
- continue;
61961
- }
61962
- }
61963
61955
  }
61964
61956
  const checkFlags = 8192 /* ReverseMapped */ | (readonlyMask && isReadonlySymbol(prop) ? 8 /* Readonly */ : 0);
61965
61957
  const inferredProp = createSymbol(4 /* Property */ | prop.flags & optionalMask, prop.escapedName, checkFlags);
@@ -72587,13 +72579,10 @@ function createTypeChecker(host) {
72587
72579
  if (isGenericMappedType(source) && isGenericMappedType(target)) {
72588
72580
  inferFromGenericMappedTypes(source, target);
72589
72581
  }
72590
- if (getObjectFlags(target) & 32 /* Mapped */) {
72591
- const mappedType = target;
72592
- if (getMappedTypeNameTypeKind(mappedType) !== 2 /* Remapping */) {
72593
- const constraintType = getConstraintTypeFromMappedType(mappedType);
72594
- if (inferToMappedType(source, mappedType, constraintType)) {
72595
- return;
72596
- }
72582
+ if (getObjectFlags(target) & 32 /* Mapped */ && !target.declaration.nameType) {
72583
+ const constraintType = getConstraintTypeFromMappedType(target);
72584
+ if (inferToMappedType(source, target, constraintType)) {
72585
+ return;
72597
72586
  }
72598
72587
  }
72599
72588
  if (!typesDefinitelyUnrelated(source, target)) {
@@ -82388,7 +82377,7 @@ function createTypeChecker(host) {
82388
82377
  }
82389
82378
  return !someType(operandConstraint, (t) => getTypeFacts(t, notEqualFacts) === notEqualFacts);
82390
82379
  }
82391
- const type = checkExpressionCached(node.expression);
82380
+ const type = getBaseConstraintOrType(checkExpressionCached(node.expression));
82392
82381
  if (!isLiteralType(type)) {
82393
82382
  return false;
82394
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-52972-10",
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": [