typescript 6.0.0-dev.20250928 → 6.0.0-dev.20250930

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 = "6.0";
21
- var version = `${versionMajorMinor}.0-dev.20250928`;
21
+ var version = `${versionMajorMinor}.0-dev.20250930`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -66786,13 +66786,10 @@ function createTypeChecker(host) {
66786
66786
  if (isObjectLiteralType(target2)) {
66787
66787
  for (const sourceProp of excludeProperties(getPropertiesOfType(source2), excludedProperties)) {
66788
66788
  if (!getPropertyOfObjectType(target2, sourceProp.escapedName)) {
66789
- const sourceType = getTypeOfSymbol(sourceProp);
66790
- if (!(sourceType.flags & 32768 /* Undefined */)) {
66791
- if (reportErrors2) {
66792
- reportError(Diagnostics.Property_0_does_not_exist_on_type_1, symbolToString(sourceProp), typeToString(target2));
66793
- }
66794
- return 0 /* False */;
66789
+ if (reportErrors2) {
66790
+ reportError(Diagnostics.Property_0_does_not_exist_on_type_1, symbolToString(sourceProp), typeToString(target2));
66795
66791
  }
66792
+ return 0 /* False */;
66796
66793
  }
66797
66794
  }
66798
66795
  }
@@ -69470,23 +69467,21 @@ function createTypeChecker(host) {
69470
69467
  for (const type of types) {
69471
69468
  if (type.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 58982400 /* InstantiableNonPrimitive */)) {
69472
69469
  const discriminant = getTypeOfPropertyOfType(type, name);
69473
- if (discriminant) {
69474
- if (!isLiteralType(discriminant)) {
69475
- return void 0;
69476
- }
69477
- let duplicate = false;
69478
- forEachType(discriminant, (t) => {
69479
- const id = getTypeId(getRegularTypeOfLiteralType(t));
69480
- const existing = map2.get(id);
69481
- if (!existing) {
69482
- map2.set(id, type);
69483
- } else if (existing !== unknownType) {
69484
- map2.set(id, unknownType);
69485
- duplicate = true;
69486
- }
69487
- });
69488
- if (!duplicate) count++;
69470
+ if (!discriminant || !isLiteralType(discriminant)) {
69471
+ return void 0;
69489
69472
  }
69473
+ let duplicate = false;
69474
+ forEachType(discriminant, (t) => {
69475
+ const id = getTypeId(getRegularTypeOfLiteralType(t));
69476
+ const existing = map2.get(id);
69477
+ if (!existing) {
69478
+ map2.set(id, type);
69479
+ } else if (existing !== unknownType) {
69480
+ map2.set(id, unknownType);
69481
+ duplicate = true;
69482
+ }
69483
+ });
69484
+ if (!duplicate) count++;
69490
69485
  }
69491
69486
  }
69492
69487
  return count >= 10 && count * 2 >= types.length ? map2 : void 0;
package/lib/typescript.js CHANGED
@@ -2286,7 +2286,7 @@ module.exports = __toCommonJS(typescript_exports);
2286
2286
 
2287
2287
  // src/compiler/corePublic.ts
2288
2288
  var versionMajorMinor = "6.0";
2289
- var version = `${versionMajorMinor}.0-dev.20250928`;
2289
+ var version = `${versionMajorMinor}.0-dev.20250930`;
2290
2290
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2291
2291
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2292
2292
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -71395,13 +71395,10 @@ function createTypeChecker(host) {
71395
71395
  if (isObjectLiteralType2(target2)) {
71396
71396
  for (const sourceProp of excludeProperties(getPropertiesOfType(source2), excludedProperties)) {
71397
71397
  if (!getPropertyOfObjectType(target2, sourceProp.escapedName)) {
71398
- const sourceType = getTypeOfSymbol(sourceProp);
71399
- if (!(sourceType.flags & 32768 /* Undefined */)) {
71400
- if (reportErrors2) {
71401
- reportError(Diagnostics.Property_0_does_not_exist_on_type_1, symbolToString(sourceProp), typeToString(target2));
71402
- }
71403
- return 0 /* False */;
71398
+ if (reportErrors2) {
71399
+ reportError(Diagnostics.Property_0_does_not_exist_on_type_1, symbolToString(sourceProp), typeToString(target2));
71404
71400
  }
71401
+ return 0 /* False */;
71405
71402
  }
71406
71403
  }
71407
71404
  }
@@ -74079,23 +74076,21 @@ function createTypeChecker(host) {
74079
74076
  for (const type of types) {
74080
74077
  if (type.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 58982400 /* InstantiableNonPrimitive */)) {
74081
74078
  const discriminant = getTypeOfPropertyOfType(type, name);
74082
- if (discriminant) {
74083
- if (!isLiteralType(discriminant)) {
74084
- return void 0;
74085
- }
74086
- let duplicate = false;
74087
- forEachType(discriminant, (t) => {
74088
- const id = getTypeId(getRegularTypeOfLiteralType(t));
74089
- const existing = map2.get(id);
74090
- if (!existing) {
74091
- map2.set(id, type);
74092
- } else if (existing !== unknownType) {
74093
- map2.set(id, unknownType);
74094
- duplicate = true;
74095
- }
74096
- });
74097
- if (!duplicate) count++;
74079
+ if (!discriminant || !isLiteralType(discriminant)) {
74080
+ return void 0;
74098
74081
  }
74082
+ let duplicate = false;
74083
+ forEachType(discriminant, (t) => {
74084
+ const id = getTypeId(getRegularTypeOfLiteralType(t));
74085
+ const existing = map2.get(id);
74086
+ if (!existing) {
74087
+ map2.set(id, type);
74088
+ } else if (existing !== unknownType) {
74089
+ map2.set(id, unknownType);
74090
+ duplicate = true;
74091
+ }
74092
+ });
74093
+ if (!duplicate) count++;
74099
74094
  }
74100
74095
  }
74101
74096
  return count >= 10 && count * 2 >= types.length ? map2 : void 0;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "typescript",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "6.0.0-dev.20250928",
5
+ "version": "6.0.0-dev.20250930",
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": "5f183ad73dc1500209619cf52e174c45d73f8617"
118
+ "gitHead": "e350126ab989f463aac638555e430dcd55421d0b"
119
119
  }