@typescript-deploys/pr-build 5.8.0-pr-60384-4 → 5.8.0-pr-60994-8
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 +27 -2
- package/lib/lib.dom.d.ts +722 -123
- package/lib/lib.dom.iterable.d.ts +9 -7
- package/lib/lib.es2015.iterable.d.ts +69 -54
- package/lib/lib.es2020.bigint.d.ts +38 -6
- package/lib/lib.es2023.array.d.ts +22 -22
- package/lib/lib.es5.d.ts +49 -49
- package/lib/lib.esnext.d.ts +1 -0
- package/lib/lib.esnext.float16.d.ts +443 -0
- package/lib/lib.esnext.iterator.d.ts +1 -1
- package/lib/lib.webworker.d.ts +254 -47
- package/lib/lib.webworker.iterable.d.ts +6 -7
- package/lib/typescript.js +41 -22
- package/package.json +1 -1
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.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20250123`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -13236,6 +13236,9 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13236
13236
|
"trunc",
|
|
13237
13237
|
"fround",
|
|
13238
13238
|
"cbrt"
|
|
13239
|
+
],
|
|
13240
|
+
esnext: [
|
|
13241
|
+
"f16round"
|
|
13239
13242
|
]
|
|
13240
13243
|
})),
|
|
13241
13244
|
Map: new Map(Object.entries({
|
|
@@ -13405,6 +13408,10 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13405
13408
|
"setBigUint64",
|
|
13406
13409
|
"getBigInt64",
|
|
13407
13410
|
"getBigUint64"
|
|
13411
|
+
],
|
|
13412
|
+
esnext: [
|
|
13413
|
+
"setFloat16",
|
|
13414
|
+
"getFloat16"
|
|
13408
13415
|
]
|
|
13409
13416
|
})),
|
|
13410
13417
|
BigInt: new Map(Object.entries({
|
|
@@ -13508,6 +13515,9 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13508
13515
|
"with"
|
|
13509
13516
|
]
|
|
13510
13517
|
})),
|
|
13518
|
+
Float16Array: new Map(Object.entries({
|
|
13519
|
+
esnext: emptyArray
|
|
13520
|
+
})),
|
|
13511
13521
|
Float32Array: new Map(Object.entries({
|
|
13512
13522
|
es2022: [
|
|
13513
13523
|
"at"
|
|
@@ -36256,6 +36266,7 @@ var libEntries = [
|
|
|
36256
36266
|
["esnext.string", "lib.es2024.string.d.ts"],
|
|
36257
36267
|
["esnext.iterator", "lib.esnext.iterator.d.ts"],
|
|
36258
36268
|
["esnext.promise", "lib.esnext.promise.d.ts"],
|
|
36269
|
+
["esnext.float16", "lib.esnext.float16.d.ts"],
|
|
36259
36270
|
["decorators", "lib.decorators.d.ts"],
|
|
36260
36271
|
["decorators.legacy", "lib.decorators.legacy.d.ts"]
|
|
36261
36272
|
];
|
|
@@ -42866,13 +42877,16 @@ function createBinder() {
|
|
|
42866
42877
|
function bindForStatement(node) {
|
|
42867
42878
|
const preLoopLabel = setContinueTarget(node, createLoopLabel());
|
|
42868
42879
|
const preBodyLabel = createBranchLabel();
|
|
42880
|
+
const preIncrementorLabel = createBranchLabel();
|
|
42869
42881
|
const postLoopLabel = createBranchLabel();
|
|
42870
42882
|
bind(node.initializer);
|
|
42871
42883
|
addAntecedent(preLoopLabel, currentFlow);
|
|
42872
42884
|
currentFlow = preLoopLabel;
|
|
42873
42885
|
bindCondition(node.condition, preBodyLabel, postLoopLabel);
|
|
42874
42886
|
currentFlow = finishFlowLabel(preBodyLabel);
|
|
42875
|
-
bindIterativeStatement(node.statement, postLoopLabel,
|
|
42887
|
+
bindIterativeStatement(node.statement, postLoopLabel, preIncrementorLabel);
|
|
42888
|
+
addAntecedent(preIncrementorLabel, currentFlow);
|
|
42889
|
+
currentFlow = finishFlowLabel(preIncrementorLabel);
|
|
42876
42890
|
bind(node.incrementor);
|
|
42877
42891
|
addAntecedent(preLoopLabel, currentFlow);
|
|
42878
42892
|
currentFlow = finishFlowLabel(postLoopLabel);
|
|
@@ -59574,6 +59588,9 @@ function createTypeChecker(host) {
|
|
|
59574
59588
|
case "Number":
|
|
59575
59589
|
checkNoTypeArguments(node);
|
|
59576
59590
|
return numberType;
|
|
59591
|
+
case "BigInt":
|
|
59592
|
+
checkNoTypeArguments(node);
|
|
59593
|
+
return bigintType;
|
|
59577
59594
|
case "Boolean":
|
|
59578
59595
|
checkNoTypeArguments(node);
|
|
59579
59596
|
return booleanType;
|
|
@@ -61065,6 +61082,12 @@ function createTypeChecker(host) {
|
|
|
61065
61082
|
const name = getNameOfDeclaration(prop.valueDeclaration);
|
|
61066
61083
|
type = prop.escapedName === "default" /* Default */ ? getStringLiteralType("default") : name && getLiteralTypeFromPropertyName(name) || (!isKnownSymbol(prop) ? getStringLiteralType(symbolName(prop)) : void 0);
|
|
61067
61084
|
}
|
|
61085
|
+
if (type && type.flags & 1048576 /* Union */) {
|
|
61086
|
+
const unionType = type;
|
|
61087
|
+
if (unionType.types.length > 0) {
|
|
61088
|
+
type = unionType.types[0];
|
|
61089
|
+
}
|
|
61090
|
+
}
|
|
61068
61091
|
if (type && type.flags & include) {
|
|
61069
61092
|
return type;
|
|
61070
61093
|
}
|
|
@@ -68493,6 +68516,7 @@ function createTypeChecker(host) {
|
|
|
68493
68516
|
return target.kind === 108 /* SuperKeyword */;
|
|
68494
68517
|
case 235 /* NonNullExpression */:
|
|
68495
68518
|
case 217 /* ParenthesizedExpression */:
|
|
68519
|
+
case 238 /* SatisfiesExpression */:
|
|
68496
68520
|
return isMatchingReference(source.expression, target);
|
|
68497
68521
|
case 211 /* PropertyAccessExpression */:
|
|
68498
68522
|
case 212 /* ElementAccessExpression */:
|
|
@@ -70462,6 +70486,7 @@ function createTypeChecker(host) {
|
|
|
70462
70486
|
return narrowTypeByCallExpression(type, expr, assumeTrue);
|
|
70463
70487
|
case 217 /* ParenthesizedExpression */:
|
|
70464
70488
|
case 235 /* NonNullExpression */:
|
|
70489
|
+
case 238 /* SatisfiesExpression */:
|
|
70465
70490
|
return narrowType(type, expr.expression, assumeTrue);
|
|
70466
70491
|
case 226 /* BinaryExpression */:
|
|
70467
70492
|
return narrowTypeByBinaryExpression(type, expr, assumeTrue);
|