@typescript-deploys/pr-build 5.3.0-pr-55774-4 → 5.3.0-pr-56201-9

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.
@@ -209,7 +209,7 @@ interface Int8Array {
209
209
  * Copies and sorts the array.
210
210
  * @param compareFn Function used to determine the order of the elements. It is expected to return
211
211
  * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
212
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
212
+ * value otherwise. If omitted, the elements are sorted in ascending order.
213
213
  * ```ts
214
214
  * const myNums = Uint8Array.from([11, 2, 22, 1]);
215
215
  * myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
@@ -273,7 +273,7 @@ interface Uint8Array {
273
273
  * Copies and sorts the array.
274
274
  * @param compareFn Function used to determine the order of the elements. It is expected to return
275
275
  * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
276
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
276
+ * value otherwise. If omitted, the elements are sorted in ascending order.
277
277
  * ```ts
278
278
  * const myNums = Uint8Array.from([11, 2, 22, 1]);
279
279
  * myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
@@ -345,7 +345,7 @@ interface Uint8ClampedArray {
345
345
  * Copies and sorts the array.
346
346
  * @param compareFn Function used to determine the order of the elements. It is expected to return
347
347
  * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
348
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
348
+ * value otherwise. If omitted, the elements are sorted in ascending order.
349
349
  * ```ts
350
350
  * const myNums = Uint8ClampedArray.from([11, 2, 22, 1]);
351
351
  * myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22]
@@ -409,7 +409,7 @@ interface Int16Array {
409
409
  * Copies and sorts the array.
410
410
  * @param compareFn Function used to determine the order of the elements. It is expected to return
411
411
  * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
412
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
412
+ * value otherwise. If omitted, the elements are sorted in ascending order.
413
413
  * ```ts
414
414
  * const myNums = Int16Array.from([11, 2, -22, 1]);
415
415
  * myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11]
@@ -481,7 +481,7 @@ interface Uint16Array {
481
481
  * Copies and sorts the array.
482
482
  * @param compareFn Function used to determine the order of the elements. It is expected to return
483
483
  * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
484
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
484
+ * value otherwise. If omitted, the elements are sorted in ascending order.
485
485
  * ```ts
486
486
  * const myNums = Uint16Array.from([11, 2, 22, 1]);
487
487
  * myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22]
@@ -545,7 +545,7 @@ interface Int32Array {
545
545
  * Copies and sorts the array.
546
546
  * @param compareFn Function used to determine the order of the elements. It is expected to return
547
547
  * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
548
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
548
+ * value otherwise. If omitted, the elements are sorted in ascending order.
549
549
  * ```ts
550
550
  * const myNums = Int32Array.from([11, 2, -22, 1]);
551
551
  * myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11]
@@ -617,7 +617,7 @@ interface Uint32Array {
617
617
  * Copies and sorts the array.
618
618
  * @param compareFn Function used to determine the order of the elements. It is expected to return
619
619
  * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
620
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
620
+ * value otherwise. If omitted, the elements are sorted in ascending order.
621
621
  * ```ts
622
622
  * const myNums = Uint32Array.from([11, 2, 22, 1]);
623
623
  * myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22]
@@ -689,7 +689,7 @@ interface Float32Array {
689
689
  * Copies and sorts the array.
690
690
  * @param compareFn Function used to determine the order of the elements. It is expected to return
691
691
  * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
692
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
692
+ * value otherwise. If omitted, the elements are sorted in ascending order.
693
693
  * ```ts
694
694
  * const myNums = Float32Array.from([11.25, 2, -22.5, 1]);
695
695
  * myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5]
@@ -761,7 +761,7 @@ interface Float64Array {
761
761
  * Copies and sorts the array.
762
762
  * @param compareFn Function used to determine the order of the elements. It is expected to return
763
763
  * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
764
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
764
+ * value otherwise. If omitted, the elements are sorted in ascending order.
765
765
  * ```ts
766
766
  * const myNums = Float64Array.from([11.25, 2, -22.5, 1]);
767
767
  * myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5]
@@ -833,7 +833,7 @@ interface BigInt64Array {
833
833
  * Copies and sorts the array.
834
834
  * @param compareFn Function used to determine the order of the elements. It is expected to return
835
835
  * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
836
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
836
+ * value otherwise. If omitted, the elements are sorted in ascending order.
837
837
  * ```ts
838
838
  * const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]);
839
839
  * myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n]
@@ -905,7 +905,7 @@ interface BigUint64Array {
905
905
  * Copies and sorts the array.
906
906
  * @param compareFn Function used to determine the order of the elements. It is expected to return
907
907
  * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
908
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
908
+ * value otherwise. If omitted, the elements are sorted in ascending order.
909
909
  * ```ts
910
910
  * const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]);
911
911
  * myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n]
package/lib/tsc.js CHANGED
@@ -54159,13 +54159,7 @@ function createTypeChecker(host) {
54159
54159
  const templateModifiers = getMappedTypeModifiers(type);
54160
54160
  const include = keyofStringsOnly ? 128 /* StringLiteral */ : 8576 /* StringOrNumberLiteralOrUnique */;
54161
54161
  if (isMappedTypeWithKeyofConstraintDeclaration(type)) {
54162
- if (nameType && isTupleType(modifiersType)) {
54163
- forEachType(getUnionType(getElementTypes(modifiersType).map((_, i) => getStringLiteralType("" + i))), addMemberForKeyType);
54164
- } else if (isArrayType(modifiersType)) {
54165
- addMemberForKeyType(numberType);
54166
- } else {
54167
- forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, include, keyofStringsOnly, addMemberForKeyType);
54168
- }
54162
+ forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, include, keyofStringsOnly, addMemberForKeyType);
54169
54163
  } else {
54170
54164
  forEachType(getLowerBoundOfKeyType(constraintType), addMemberForKeyType);
54171
54165
  }
@@ -55974,7 +55968,7 @@ function createTypeChecker(host) {
55974
55968
  if (constraint) {
55975
55969
  constraints = append(constraints, constraint);
55976
55970
  }
55977
- } else if (type.flags & 262144 /* TypeParameter */ && parent.kind === 200 /* MappedType */ && (node === parent.type || node === parent.nameType)) {
55971
+ } else if (type.flags & 262144 /* TypeParameter */ && parent.kind === 200 /* MappedType */ && node === parent.type) {
55978
55972
  const mappedType = getTypeFromTypeNode(parent);
55979
55973
  if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) {
55980
55974
  const typeParameter = getHomomorphicTypeVariable(mappedType);
@@ -67792,7 +67786,7 @@ function createTypeChecker(host) {
67792
67786
  type,
67793
67787
  (t) => {
67794
67788
  var _a;
67795
- if (isGenericMappedType(t) && !t.declaration.nameType) {
67789
+ if (isGenericMappedType(t) && (!t.declaration.nameType || isFilteringMappedType(t))) {
67796
67790
  const constraint = getConstraintTypeFromMappedType(t);
67797
67791
  const constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint;
67798
67792
  const propertyNameType = nameType || getStringLiteralType(unescapeLeadingUnderscores(name));
package/lib/tsserver.js CHANGED
@@ -58871,13 +58871,7 @@ function createTypeChecker(host) {
58871
58871
  const templateModifiers = getMappedTypeModifiers(type);
58872
58872
  const include = keyofStringsOnly ? 128 /* StringLiteral */ : 8576 /* StringOrNumberLiteralOrUnique */;
58873
58873
  if (isMappedTypeWithKeyofConstraintDeclaration(type)) {
58874
- if (nameType && isTupleType(modifiersType)) {
58875
- forEachType(getUnionType(getElementTypes(modifiersType).map((_, i) => getStringLiteralType("" + i))), addMemberForKeyType);
58876
- } else if (isArrayType(modifiersType)) {
58877
- addMemberForKeyType(numberType);
58878
- } else {
58879
- forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, include, keyofStringsOnly, addMemberForKeyType);
58880
- }
58874
+ forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, include, keyofStringsOnly, addMemberForKeyType);
58881
58875
  } else {
58882
58876
  forEachType(getLowerBoundOfKeyType(constraintType), addMemberForKeyType);
58883
58877
  }
@@ -60686,7 +60680,7 @@ function createTypeChecker(host) {
60686
60680
  if (constraint) {
60687
60681
  constraints = append(constraints, constraint);
60688
60682
  }
60689
- } else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 200 /* MappedType */ && (node === parent2.type || node === parent2.nameType)) {
60683
+ } else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 200 /* MappedType */ && node === parent2.type) {
60690
60684
  const mappedType = getTypeFromTypeNode(parent2);
60691
60685
  if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) {
60692
60686
  const typeParameter = getHomomorphicTypeVariable(mappedType);
@@ -72504,7 +72498,7 @@ function createTypeChecker(host) {
72504
72498
  type,
72505
72499
  (t) => {
72506
72500
  var _a;
72507
- if (isGenericMappedType(t) && !t.declaration.nameType) {
72501
+ if (isGenericMappedType(t) && (!t.declaration.nameType || isFilteringMappedType(t))) {
72508
72502
  const constraint = getConstraintTypeFromMappedType(t);
72509
72503
  const constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint;
72510
72504
  const propertyNameType = nameType || getStringLiteralType(unescapeLeadingUnderscores(name));
package/lib/typescript.js CHANGED
@@ -56638,13 +56638,7 @@ ${lanes.join("\n")}
56638
56638
  const templateModifiers = getMappedTypeModifiers(type);
56639
56639
  const include = keyofStringsOnly ? 128 /* StringLiteral */ : 8576 /* StringOrNumberLiteralOrUnique */;
56640
56640
  if (isMappedTypeWithKeyofConstraintDeclaration(type)) {
56641
- if (nameType && isTupleType(modifiersType)) {
56642
- forEachType(getUnionType(getElementTypes(modifiersType).map((_, i) => getStringLiteralType("" + i))), addMemberForKeyType);
56643
- } else if (isArrayType(modifiersType)) {
56644
- addMemberForKeyType(numberType);
56645
- } else {
56646
- forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, include, keyofStringsOnly, addMemberForKeyType);
56647
- }
56641
+ forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, include, keyofStringsOnly, addMemberForKeyType);
56648
56642
  } else {
56649
56643
  forEachType(getLowerBoundOfKeyType(constraintType), addMemberForKeyType);
56650
56644
  }
@@ -58453,7 +58447,7 @@ ${lanes.join("\n")}
58453
58447
  if (constraint) {
58454
58448
  constraints = append(constraints, constraint);
58455
58449
  }
58456
- } else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 200 /* MappedType */ && (node === parent2.type || node === parent2.nameType)) {
58450
+ } else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 200 /* MappedType */ && node === parent2.type) {
58457
58451
  const mappedType = getTypeFromTypeNode(parent2);
58458
58452
  if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) {
58459
58453
  const typeParameter = getHomomorphicTypeVariable(mappedType);
@@ -70271,7 +70265,7 @@ ${lanes.join("\n")}
70271
70265
  type,
70272
70266
  (t) => {
70273
70267
  var _a;
70274
- if (isGenericMappedType(t) && !t.declaration.nameType) {
70268
+ if (isGenericMappedType(t) && (!t.declaration.nameType || isFilteringMappedType(t))) {
70275
70269
  const constraint = getConstraintTypeFromMappedType(t);
70276
70270
  const constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint;
70277
70271
  const propertyNameType = nameType || getStringLiteralType(unescapeLeadingUnderscores(name));
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.3.0-pr-55774-4",
5
+ "version": "5.3.0-pr-56201-9",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -115,5 +115,5 @@
115
115
  "node": "20.1.0",
116
116
  "npm": "8.19.4"
117
117
  },
118
- "gitHead": "ef8fa5c7138c4fd3ec88911189a124166ad69d9e"
118
+ "gitHead": "69faa739a0a93a110e571c95ef3ac58009b49f11"
119
119
  }