@typescript-deploys/pr-build 6.0.0-pr-62554-4 → 6.0.0-pr-56976-2
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 +9 -7
- package/lib/typescript.js +9 -7
- 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 = "6.0";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20251008`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -68984,7 +68984,7 @@ function createTypeChecker(host) {
|
|
|
68984
68984
|
if (sourceNameType && targetNameType) inferFromTypes(sourceNameType, targetNameType);
|
|
68985
68985
|
}
|
|
68986
68986
|
function inferFromObjectTypes(source, target) {
|
|
68987
|
-
var _a, _b;
|
|
68987
|
+
var _a, _b, _c;
|
|
68988
68988
|
if (getObjectFlags(source) & 4 /* Reference */ && getObjectFlags(target) & 4 /* Reference */ && (source.target === target.target || isArrayType(source) && isArrayType(target))) {
|
|
68989
68989
|
inferFromTypeArguments(getTypeArguments(source), getTypeArguments(target), getVariances(source.target));
|
|
68990
68990
|
return;
|
|
@@ -69025,13 +69025,16 @@ function createTypeChecker(host) {
|
|
|
69025
69025
|
const middleLength = targetArity - startLength - endLength;
|
|
69026
69026
|
if (middleLength === 2) {
|
|
69027
69027
|
if (elementFlags[startLength] & elementFlags[startLength + 1] & 8 /* Variadic */) {
|
|
69028
|
-
|
|
69028
|
+
let targetInfo = getInferenceInfoForType(elementTypes[startLength]);
|
|
69029
69029
|
if (targetInfo && targetInfo.impliedArity !== void 0) {
|
|
69030
69030
|
inferFromTypes(sliceTupleType(source, startLength, endLength + sourceArity - targetInfo.impliedArity), elementTypes[startLength]);
|
|
69031
69031
|
inferFromTypes(sliceTupleType(source, startLength + targetInfo.impliedArity, endLength), elementTypes[startLength + 1]);
|
|
69032
|
+
} else if (((_a = targetInfo = getInferenceInfoForType(elementTypes[startLength + 1])) == null ? void 0 : _a.impliedArity) !== void 0) {
|
|
69033
|
+
inferFromTypes(sliceTupleType(source, startLength, endLength + targetInfo.impliedArity), elementTypes[startLength]);
|
|
69034
|
+
inferFromTypes(sliceTupleType(source, startLength + sourceArity - endLength - targetInfo.impliedArity, endLength), elementTypes[startLength + 1]);
|
|
69032
69035
|
}
|
|
69033
69036
|
} else if (elementFlags[startLength] & 8 /* Variadic */ && elementFlags[startLength + 1] & 4 /* Rest */) {
|
|
69034
|
-
const param = (
|
|
69037
|
+
const param = (_b = getInferenceInfoForType(elementTypes[startLength])) == null ? void 0 : _b.typeParameter;
|
|
69035
69038
|
const constraint = param && getBaseConstraintOfType(param);
|
|
69036
69039
|
if (constraint && isTupleType(constraint) && !(constraint.target.combinedFlags & 12 /* Variable */)) {
|
|
69037
69040
|
const impliedArity = constraint.target.fixedLength;
|
|
@@ -69039,7 +69042,7 @@ function createTypeChecker(host) {
|
|
|
69039
69042
|
inferFromTypes(getElementTypeOfSliceOfTupleType(source, startLength + impliedArity, endLength), elementTypes[startLength + 1]);
|
|
69040
69043
|
}
|
|
69041
69044
|
} else if (elementFlags[startLength] & 4 /* Rest */ && elementFlags[startLength + 1] & 8 /* Variadic */) {
|
|
69042
|
-
const param = (
|
|
69045
|
+
const param = (_c = getInferenceInfoForType(elementTypes[startLength + 1])) == null ? void 0 : _c.typeParameter;
|
|
69043
69046
|
const constraint = param && getBaseConstraintOfType(param);
|
|
69044
69047
|
if (constraint && isTupleType(constraint) && !(constraint.target.combinedFlags & 12 /* Variable */)) {
|
|
69045
69048
|
const impliedArity = constraint.target.fixedLength;
|
|
@@ -72640,9 +72643,8 @@ function createTypeChecker(host) {
|
|
|
72640
72643
|
}
|
|
72641
72644
|
}
|
|
72642
72645
|
function getContextualTypeForStaticPropertyDeclaration(declaration, contextFlags) {
|
|
72643
|
-
var _a;
|
|
72644
72646
|
const parentType = isExpression(declaration.parent) && getContextualType(declaration.parent, contextFlags);
|
|
72645
|
-
if (!parentType
|
|
72647
|
+
if (!parentType) return void 0;
|
|
72646
72648
|
return getTypeOfPropertyOfContextualType(parentType, getSymbolOfDeclaration(declaration).escapedName);
|
|
72647
72649
|
}
|
|
72648
72650
|
function getContextualTypeForInitializerExpression(node, contextFlags) {
|
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-insiders.
|
|
2289
|
+
var version = `${versionMajorMinor}.0-insiders.20251008`;
|
|
2290
2290
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2291
2291
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2292
2292
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -73590,7 +73590,7 @@ function createTypeChecker(host) {
|
|
|
73590
73590
|
if (sourceNameType && targetNameType) inferFromTypes(sourceNameType, targetNameType);
|
|
73591
73591
|
}
|
|
73592
73592
|
function inferFromObjectTypes(source, target) {
|
|
73593
|
-
var _a, _b;
|
|
73593
|
+
var _a, _b, _c;
|
|
73594
73594
|
if (getObjectFlags(source) & 4 /* Reference */ && getObjectFlags(target) & 4 /* Reference */ && (source.target === target.target || isArrayType(source) && isArrayType(target))) {
|
|
73595
73595
|
inferFromTypeArguments(getTypeArguments(source), getTypeArguments(target), getVariances(source.target));
|
|
73596
73596
|
return;
|
|
@@ -73631,13 +73631,16 @@ function createTypeChecker(host) {
|
|
|
73631
73631
|
const middleLength = targetArity - startLength - endLength;
|
|
73632
73632
|
if (middleLength === 2) {
|
|
73633
73633
|
if (elementFlags[startLength] & elementFlags[startLength + 1] & 8 /* Variadic */) {
|
|
73634
|
-
|
|
73634
|
+
let targetInfo = getInferenceInfoForType(elementTypes[startLength]);
|
|
73635
73635
|
if (targetInfo && targetInfo.impliedArity !== void 0) {
|
|
73636
73636
|
inferFromTypes(sliceTupleType(source, startLength, endLength + sourceArity - targetInfo.impliedArity), elementTypes[startLength]);
|
|
73637
73637
|
inferFromTypes(sliceTupleType(source, startLength + targetInfo.impliedArity, endLength), elementTypes[startLength + 1]);
|
|
73638
|
+
} else if (((_a = targetInfo = getInferenceInfoForType(elementTypes[startLength + 1])) == null ? void 0 : _a.impliedArity) !== void 0) {
|
|
73639
|
+
inferFromTypes(sliceTupleType(source, startLength, endLength + targetInfo.impliedArity), elementTypes[startLength]);
|
|
73640
|
+
inferFromTypes(sliceTupleType(source, startLength + sourceArity - endLength - targetInfo.impliedArity, endLength), elementTypes[startLength + 1]);
|
|
73638
73641
|
}
|
|
73639
73642
|
} else if (elementFlags[startLength] & 8 /* Variadic */ && elementFlags[startLength + 1] & 4 /* Rest */) {
|
|
73640
|
-
const param = (
|
|
73643
|
+
const param = (_b = getInferenceInfoForType(elementTypes[startLength])) == null ? void 0 : _b.typeParameter;
|
|
73641
73644
|
const constraint = param && getBaseConstraintOfType(param);
|
|
73642
73645
|
if (constraint && isTupleType(constraint) && !(constraint.target.combinedFlags & 12 /* Variable */)) {
|
|
73643
73646
|
const impliedArity = constraint.target.fixedLength;
|
|
@@ -73645,7 +73648,7 @@ function createTypeChecker(host) {
|
|
|
73645
73648
|
inferFromTypes(getElementTypeOfSliceOfTupleType(source, startLength + impliedArity, endLength), elementTypes[startLength + 1]);
|
|
73646
73649
|
}
|
|
73647
73650
|
} else if (elementFlags[startLength] & 4 /* Rest */ && elementFlags[startLength + 1] & 8 /* Variadic */) {
|
|
73648
|
-
const param = (
|
|
73651
|
+
const param = (_c = getInferenceInfoForType(elementTypes[startLength + 1])) == null ? void 0 : _c.typeParameter;
|
|
73649
73652
|
const constraint = param && getBaseConstraintOfType(param);
|
|
73650
73653
|
if (constraint && isTupleType(constraint) && !(constraint.target.combinedFlags & 12 /* Variable */)) {
|
|
73651
73654
|
const impliedArity = constraint.target.fixedLength;
|
|
@@ -77246,9 +77249,8 @@ function createTypeChecker(host) {
|
|
|
77246
77249
|
}
|
|
77247
77250
|
}
|
|
77248
77251
|
function getContextualTypeForStaticPropertyDeclaration(declaration, contextFlags) {
|
|
77249
|
-
var _a;
|
|
77250
77252
|
const parentType = isExpression(declaration.parent) && getContextualType2(declaration.parent, contextFlags);
|
|
77251
|
-
if (!parentType
|
|
77253
|
+
if (!parentType) return void 0;
|
|
77252
77254
|
return getTypeOfPropertyOfContextualType(parentType, getSymbolOfDeclaration(declaration).escapedName);
|
|
77253
77255
|
}
|
|
77254
77256
|
function getContextualTypeForInitializerExpression(node, contextFlags) {
|
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": "6.0.0-pr-
|
|
5
|
+
"version": "6.0.0-pr-56976-2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|