typescript 6.0.0-dev.20250929 → 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 +16 -18
- package/lib/typescript.js +16 -18
- package/package.json +2 -2
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.
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20250930`;
|
22
22
|
|
23
23
|
// src/compiler/core.ts
|
24
24
|
var emptyArray = [];
|
@@ -66783,7 +66783,7 @@ function createTypeChecker(host) {
|
|
66783
66783
|
}
|
66784
66784
|
return 0 /* False */;
|
66785
66785
|
}
|
66786
|
-
if (
|
66786
|
+
if (isObjectLiteralType(target2)) {
|
66787
66787
|
for (const sourceProp of excludeProperties(getPropertiesOfType(source2), excludedProperties)) {
|
66788
66788
|
if (!getPropertyOfObjectType(target2, sourceProp.escapedName)) {
|
66789
66789
|
if (reportErrors2) {
|
@@ -69467,23 +69467,21 @@ function createTypeChecker(host) {
|
|
69467
69467
|
for (const type of types) {
|
69468
69468
|
if (type.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 58982400 /* InstantiableNonPrimitive */)) {
|
69469
69469
|
const discriminant = getTypeOfPropertyOfType(type, name);
|
69470
|
-
if (discriminant) {
|
69471
|
-
|
69472
|
-
return void 0;
|
69473
|
-
}
|
69474
|
-
let duplicate = false;
|
69475
|
-
forEachType(discriminant, (t) => {
|
69476
|
-
const id = getTypeId(getRegularTypeOfLiteralType(t));
|
69477
|
-
const existing = map2.get(id);
|
69478
|
-
if (!existing) {
|
69479
|
-
map2.set(id, type);
|
69480
|
-
} else if (existing !== unknownType) {
|
69481
|
-
map2.set(id, unknownType);
|
69482
|
-
duplicate = true;
|
69483
|
-
}
|
69484
|
-
});
|
69485
|
-
if (!duplicate) count++;
|
69470
|
+
if (!discriminant || !isLiteralType(discriminant)) {
|
69471
|
+
return void 0;
|
69486
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++;
|
69487
69485
|
}
|
69488
69486
|
}
|
69489
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.
|
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";
|
@@ -71392,7 +71392,7 @@ function createTypeChecker(host) {
|
|
71392
71392
|
}
|
71393
71393
|
return 0 /* False */;
|
71394
71394
|
}
|
71395
|
-
if (
|
71395
|
+
if (isObjectLiteralType2(target2)) {
|
71396
71396
|
for (const sourceProp of excludeProperties(getPropertiesOfType(source2), excludedProperties)) {
|
71397
71397
|
if (!getPropertyOfObjectType(target2, sourceProp.escapedName)) {
|
71398
71398
|
if (reportErrors2) {
|
@@ -74076,23 +74076,21 @@ function createTypeChecker(host) {
|
|
74076
74076
|
for (const type of types) {
|
74077
74077
|
if (type.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 58982400 /* InstantiableNonPrimitive */)) {
|
74078
74078
|
const discriminant = getTypeOfPropertyOfType(type, name);
|
74079
|
-
if (discriminant) {
|
74080
|
-
|
74081
|
-
return void 0;
|
74082
|
-
}
|
74083
|
-
let duplicate = false;
|
74084
|
-
forEachType(discriminant, (t) => {
|
74085
|
-
const id = getTypeId(getRegularTypeOfLiteralType(t));
|
74086
|
-
const existing = map2.get(id);
|
74087
|
-
if (!existing) {
|
74088
|
-
map2.set(id, type);
|
74089
|
-
} else if (existing !== unknownType) {
|
74090
|
-
map2.set(id, unknownType);
|
74091
|
-
duplicate = true;
|
74092
|
-
}
|
74093
|
-
});
|
74094
|
-
if (!duplicate) count++;
|
74079
|
+
if (!discriminant || !isLiteralType(discriminant)) {
|
74080
|
+
return void 0;
|
74095
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++;
|
74096
74094
|
}
|
74097
74095
|
}
|
74098
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.
|
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": "
|
118
|
+
"gitHead": "e350126ab989f463aac638555e430dcd55421d0b"
|
119
119
|
}
|