@typescript-deploys/pr-build 5.5.0-pr-58321-7 → 5.5.0-pr-58323-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 +15 -11
- package/lib/typescript.d.ts +1 -0
- package/lib/typescript.js +15 -11
- 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.5";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20240426`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -73178,19 +73178,11 @@ function createTypeChecker(host) {
|
|
|
73178
73178
|
const mapper = inferenceContext && (restType && restType.flags & 262144 /* TypeParameter */ ? inferenceContext.nonFixingMapper : inferenceContext.mapper);
|
|
73179
73179
|
const sourceSignature = mapper ? instantiateSignature(contextualSignature, mapper) : contextualSignature;
|
|
73180
73180
|
applyToParameterTypes(sourceSignature, signature, (source, target) => {
|
|
73181
|
-
inferTypes(
|
|
73182
|
-
context.inferences,
|
|
73183
|
-
source,
|
|
73184
|
-
target,
|
|
73185
|
-
/*priority*/
|
|
73186
|
-
void 0,
|
|
73187
|
-
/*contravariant*/
|
|
73188
|
-
strictFunctionTypes
|
|
73189
|
-
);
|
|
73181
|
+
inferTypes(context.inferences, source, target);
|
|
73190
73182
|
});
|
|
73191
73183
|
if (!inferenceContext) {
|
|
73192
73184
|
applyToReturnTypes(contextualSignature, signature, (source, target) => {
|
|
73193
|
-
inferTypes(context.inferences, source, target);
|
|
73185
|
+
inferTypes(context.inferences, source, target, 128 /* ReturnType */);
|
|
73194
73186
|
});
|
|
73195
73187
|
}
|
|
73196
73188
|
return getSignatureInstantiation(signature, getInferredTypes(context), isInJSFile(contextualSignature.declaration));
|
|
@@ -84472,6 +84464,18 @@ function createTypeChecker(host) {
|
|
|
84472
84464
|
if (node.flags & 67108864 /* InWithStatement */) {
|
|
84473
84465
|
return errorType;
|
|
84474
84466
|
}
|
|
84467
|
+
const containingFunction = findAncestor(node, (node2) => {
|
|
84468
|
+
if (isFunctionLikeDeclaration(node2)) {
|
|
84469
|
+
if (node2.asteriskToken) {
|
|
84470
|
+
return true;
|
|
84471
|
+
}
|
|
84472
|
+
return "quit";
|
|
84473
|
+
}
|
|
84474
|
+
return false;
|
|
84475
|
+
});
|
|
84476
|
+
if (containingFunction) {
|
|
84477
|
+
getReturnTypeOfSignature(getSignatureFromDeclaration(containingFunction));
|
|
84478
|
+
}
|
|
84475
84479
|
const classDecl = tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node);
|
|
84476
84480
|
const classType = classDecl && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(classDecl.class));
|
|
84477
84481
|
if (isPartOfTypeNode(node)) {
|
package/lib/typescript.d.ts
CHANGED
package/lib/typescript.js
CHANGED
|
@@ -2360,7 +2360,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2360
2360
|
|
|
2361
2361
|
// src/compiler/corePublic.ts
|
|
2362
2362
|
var versionMajorMinor = "5.5";
|
|
2363
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2363
|
+
var version = `${versionMajorMinor}.0-insiders.20240426`;
|
|
2364
2364
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2365
2365
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2366
2366
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -78007,19 +78007,11 @@ function createTypeChecker(host) {
|
|
|
78007
78007
|
const mapper = inferenceContext && (restType && restType.flags & 262144 /* TypeParameter */ ? inferenceContext.nonFixingMapper : inferenceContext.mapper);
|
|
78008
78008
|
const sourceSignature = mapper ? instantiateSignature(contextualSignature, mapper) : contextualSignature;
|
|
78009
78009
|
applyToParameterTypes(sourceSignature, signature, (source, target) => {
|
|
78010
|
-
inferTypes(
|
|
78011
|
-
context.inferences,
|
|
78012
|
-
source,
|
|
78013
|
-
target,
|
|
78014
|
-
/*priority*/
|
|
78015
|
-
void 0,
|
|
78016
|
-
/*contravariant*/
|
|
78017
|
-
strictFunctionTypes
|
|
78018
|
-
);
|
|
78010
|
+
inferTypes(context.inferences, source, target);
|
|
78019
78011
|
});
|
|
78020
78012
|
if (!inferenceContext) {
|
|
78021
78013
|
applyToReturnTypes(contextualSignature, signature, (source, target) => {
|
|
78022
|
-
inferTypes(context.inferences, source, target);
|
|
78014
|
+
inferTypes(context.inferences, source, target, 128 /* ReturnType */);
|
|
78023
78015
|
});
|
|
78024
78016
|
}
|
|
78025
78017
|
return getSignatureInstantiation(signature, getInferredTypes(context), isInJSFile(contextualSignature.declaration));
|
|
@@ -89301,6 +89293,18 @@ function createTypeChecker(host) {
|
|
|
89301
89293
|
if (node.flags & 67108864 /* InWithStatement */) {
|
|
89302
89294
|
return errorType;
|
|
89303
89295
|
}
|
|
89296
|
+
const containingFunction = findAncestor(node, (node2) => {
|
|
89297
|
+
if (isFunctionLikeDeclaration(node2)) {
|
|
89298
|
+
if (node2.asteriskToken) {
|
|
89299
|
+
return true;
|
|
89300
|
+
}
|
|
89301
|
+
return "quit";
|
|
89302
|
+
}
|
|
89303
|
+
return false;
|
|
89304
|
+
});
|
|
89305
|
+
if (containingFunction) {
|
|
89306
|
+
getReturnTypeOfSignature(getSignatureFromDeclaration(containingFunction));
|
|
89307
|
+
}
|
|
89304
89308
|
const classDecl = tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node);
|
|
89305
89309
|
const classType = classDecl && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(classDecl.class));
|
|
89306
89310
|
if (isPartOfTypeNode(node)) {
|
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": "5.5.0-pr-
|
|
5
|
+
"version": "5.5.0-pr-58323-2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|