typescript 6.0.0-dev.20260112 → 6.0.0-dev.20260114
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 +6 -8
- package/lib/typescript.js +6 -8
- 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.20260114`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -67107,7 +67107,7 @@ function createTypeChecker(host) {
|
|
|
67107
67107
|
}
|
|
67108
67108
|
function discriminateTypeByDiscriminableItems(target, discriminators, related) {
|
|
67109
67109
|
const types = target.types;
|
|
67110
|
-
const include = types.map((t) => t.flags & 402784252 /* Primitive */ ? 0 /* False */ : -1 /* True */);
|
|
67110
|
+
const include = types.map((t) => t.flags & 402784252 /* Primitive */ || getReducedType(t).flags & 131072 /* Never */ ? 0 /* False */ : -1 /* True */);
|
|
67111
67111
|
for (const [getDiscriminatingType, propertyName] of discriminators) {
|
|
67112
67112
|
let matched = false;
|
|
67113
67113
|
for (let i = 0; i < types.length; i++) {
|
|
@@ -124596,12 +124596,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
124596
124596
|
createDeprecatedDiagnostic("charset");
|
|
124597
124597
|
}
|
|
124598
124598
|
if (options.out) {
|
|
124599
|
-
createDeprecatedDiagnostic(
|
|
124600
|
-
"out",
|
|
124601
|
-
/*value*/
|
|
124602
|
-
void 0,
|
|
124603
|
-
"outFile"
|
|
124604
|
-
);
|
|
124599
|
+
createDeprecatedDiagnostic("out");
|
|
124605
124600
|
}
|
|
124606
124601
|
if (options.importsNotUsedAsValues) {
|
|
124607
124602
|
createDeprecatedDiagnostic(
|
|
@@ -124670,6 +124665,9 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
124670
124665
|
void 0
|
|
124671
124666
|
);
|
|
124672
124667
|
}
|
|
124668
|
+
if (options.outFile) {
|
|
124669
|
+
createDeprecatedDiagnostic("outFile");
|
|
124670
|
+
}
|
|
124673
124671
|
if (options.module === 0 /* None */ || options.module === 2 /* AMD */ || options.module === 3 /* UMD */ || options.module === 4 /* System */) {
|
|
124674
124672
|
createDeprecatedDiagnostic(
|
|
124675
124673
|
"module",
|
package/lib/typescript.js
CHANGED
|
@@ -2285,7 +2285,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2285
2285
|
|
|
2286
2286
|
// src/compiler/corePublic.ts
|
|
2287
2287
|
var versionMajorMinor = "6.0";
|
|
2288
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2288
|
+
var version = `${versionMajorMinor}.0-dev.20260114`;
|
|
2289
2289
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2290
2290
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2291
2291
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -71735,7 +71735,7 @@ function createTypeChecker(host) {
|
|
|
71735
71735
|
}
|
|
71736
71736
|
function discriminateTypeByDiscriminableItems(target, discriminators, related) {
|
|
71737
71737
|
const types = target.types;
|
|
71738
|
-
const include = types.map((t) => t.flags & 402784252 /* Primitive */ ? 0 /* False */ : -1 /* True */);
|
|
71738
|
+
const include = types.map((t) => t.flags & 402784252 /* Primitive */ || getReducedType(t).flags & 131072 /* Never */ ? 0 /* False */ : -1 /* True */);
|
|
71739
71739
|
for (const [getDiscriminatingType, propertyName] of discriminators) {
|
|
71740
71740
|
let matched = false;
|
|
71741
71741
|
for (let i = 0; i < types.length; i++) {
|
|
@@ -129463,12 +129463,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
129463
129463
|
createDeprecatedDiagnostic("charset");
|
|
129464
129464
|
}
|
|
129465
129465
|
if (options.out) {
|
|
129466
|
-
createDeprecatedDiagnostic(
|
|
129467
|
-
"out",
|
|
129468
|
-
/*value*/
|
|
129469
|
-
void 0,
|
|
129470
|
-
"outFile"
|
|
129471
|
-
);
|
|
129466
|
+
createDeprecatedDiagnostic("out");
|
|
129472
129467
|
}
|
|
129473
129468
|
if (options.importsNotUsedAsValues) {
|
|
129474
129469
|
createDeprecatedDiagnostic(
|
|
@@ -129537,6 +129532,9 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
129537
129532
|
void 0
|
|
129538
129533
|
);
|
|
129539
129534
|
}
|
|
129535
|
+
if (options.outFile) {
|
|
129536
|
+
createDeprecatedDiagnostic("outFile");
|
|
129537
|
+
}
|
|
129540
129538
|
if (options.module === 0 /* None */ || options.module === 2 /* AMD */ || options.module === 3 /* UMD */ || options.module === 4 /* System */) {
|
|
129541
129539
|
createDeprecatedDiagnostic(
|
|
129542
129540
|
"module",
|
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.20260114",
|
|
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": "64d19789443884e88d6af533b091073eaf6c2894"
|
|
119
119
|
}
|