@typescript-deploys/pr-build 5.0.0-pr-52848-9 → 5.0.0-pr-52866-6
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 +14 -10
- package/lib/tsserver.js +14 -10
- package/lib/tsserverlibrary.js +14 -10
- package/lib/typescript.js +14 -10
- package/lib/typingsInstaller.js +1 -1
- package/package.json +1 -1
package/lib/tsc.js
CHANGED
|
@@ -23,7 +23,7 @@ var __export = (target, all) => {
|
|
|
23
23
|
|
|
24
24
|
// src/compiler/corePublic.ts
|
|
25
25
|
var versionMajorMinor = "5.0";
|
|
26
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
26
|
+
var version = `${versionMajorMinor}.0-insiders.20230220`;
|
|
27
27
|
|
|
28
28
|
// src/compiler/core.ts
|
|
29
29
|
var emptyArray = [];
|
|
@@ -56913,7 +56913,7 @@ function createTypeChecker(host) {
|
|
|
56913
56913
|
}
|
|
56914
56914
|
function getActualTypeVariable(type) {
|
|
56915
56915
|
if (type.flags & 33554432 /* Substitution */) {
|
|
56916
|
-
return
|
|
56916
|
+
return type.baseType;
|
|
56917
56917
|
}
|
|
56918
56918
|
if (type.flags & 8388608 /* IndexedAccess */ && (type.objectType.flags & 33554432 /* Substitution */ || type.indexType.flags & 33554432 /* Substitution */)) {
|
|
56919
56919
|
return getIndexedAccessType(getActualTypeVariable(type.objectType), getActualTypeVariable(type.indexType));
|
|
@@ -66706,17 +66706,20 @@ function createTypeChecker(host) {
|
|
|
66706
66706
|
contextualType
|
|
66707
66707
|
);
|
|
66708
66708
|
}
|
|
66709
|
+
function getDiscriminatedApparentType(node, type) {
|
|
66710
|
+
const apparentType = mapType(
|
|
66711
|
+
type,
|
|
66712
|
+
getApparentType,
|
|
66713
|
+
/*noReductions*/
|
|
66714
|
+
true
|
|
66715
|
+
);
|
|
66716
|
+
return apparentType.flags & 1048576 /* Union */ && isObjectLiteralExpression(node) ? discriminateContextualTypeByObjectMembers(node, apparentType) : apparentType.flags & 1048576 /* Union */ && isJsxAttributes(node) ? discriminateContextualTypeByJSXAttributes(node, apparentType) : apparentType;
|
|
66717
|
+
}
|
|
66709
66718
|
function getApparentTypeOfContextualType(node, contextFlags) {
|
|
66710
66719
|
const contextualType = isObjectLiteralMethod(node) ? getContextualTypeForObjectLiteralMethod(node, contextFlags) : getContextualType(node, contextFlags);
|
|
66711
66720
|
const instantiatedType = instantiateContextualType(contextualType, node, contextFlags);
|
|
66712
66721
|
if (instantiatedType && !(contextFlags && contextFlags & 2 /* NoConstraints */ && instantiatedType.flags & 8650752 /* TypeVariable */)) {
|
|
66713
|
-
|
|
66714
|
-
instantiatedType,
|
|
66715
|
-
getApparentType,
|
|
66716
|
-
/*noReductions*/
|
|
66717
|
-
true
|
|
66718
|
-
);
|
|
66719
|
-
return apparentType.flags & 1048576 /* Union */ && isObjectLiteralExpression(node) ? discriminateContextualTypeByObjectMembers(node, apparentType) : apparentType.flags & 1048576 /* Union */ && isJsxAttributes(node) ? discriminateContextualTypeByJSXAttributes(node, apparentType) : apparentType;
|
|
66722
|
+
return getDiscriminatedApparentType(node, instantiatedType);
|
|
66720
66723
|
}
|
|
66721
66724
|
}
|
|
66722
66725
|
function instantiateContextualType(contextualType, node, contextFlags) {
|
|
@@ -69121,7 +69124,8 @@ function createTypeChecker(host) {
|
|
|
69121
69124
|
const isFromBindingPattern = !skipBindingPatterns && getContextualType(node, 8 /* SkipBindingPatterns */) !== contextualType;
|
|
69122
69125
|
if (!isFromBindingPattern) {
|
|
69123
69126
|
const outerMapper = getMapperFromContext(cloneInferenceContext(outerContext, 1 /* NoDefault */));
|
|
69124
|
-
const
|
|
69127
|
+
const argumentApparentType = outerContext && isCallOrNewExpression(node.parent) && getDiscriminatedApparentType(node, contextualType);
|
|
69128
|
+
const instantiatedType = instantiateType(argumentApparentType && argumentApparentType !== unknownType ? argumentApparentType : contextualType, outerMapper);
|
|
69125
69129
|
const contextualSignature = getSingleCallSignature(instantiatedType);
|
|
69126
69130
|
const inferenceSourceType = contextualSignature && contextualSignature.typeParameters ? getOrCreateTypeFromSignature(getSignatureInstantiationWithoutFillingInTypeArguments(contextualSignature, contextualSignature.typeParameters)) : instantiatedType;
|
|
69127
69131
|
inferTypes(context.inferences, inferenceSourceType, inferenceTargetType, 128 /* ReturnType */);
|
package/lib/tsserver.js
CHANGED
|
@@ -2288,7 +2288,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2288
2288
|
|
|
2289
2289
|
// src/compiler/corePublic.ts
|
|
2290
2290
|
var versionMajorMinor = "5.0";
|
|
2291
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2291
|
+
var version = `${versionMajorMinor}.0-insiders.20230220`;
|
|
2292
2292
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2293
2293
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2294
2294
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -61520,7 +61520,7 @@ function createTypeChecker(host) {
|
|
|
61520
61520
|
}
|
|
61521
61521
|
function getActualTypeVariable(type) {
|
|
61522
61522
|
if (type.flags & 33554432 /* Substitution */) {
|
|
61523
|
-
return
|
|
61523
|
+
return type.baseType;
|
|
61524
61524
|
}
|
|
61525
61525
|
if (type.flags & 8388608 /* IndexedAccess */ && (type.objectType.flags & 33554432 /* Substitution */ || type.indexType.flags & 33554432 /* Substitution */)) {
|
|
61526
61526
|
return getIndexedAccessType(getActualTypeVariable(type.objectType), getActualTypeVariable(type.indexType));
|
|
@@ -71313,17 +71313,20 @@ function createTypeChecker(host) {
|
|
|
71313
71313
|
contextualType
|
|
71314
71314
|
);
|
|
71315
71315
|
}
|
|
71316
|
+
function getDiscriminatedApparentType(node, type) {
|
|
71317
|
+
const apparentType = mapType(
|
|
71318
|
+
type,
|
|
71319
|
+
getApparentType,
|
|
71320
|
+
/*noReductions*/
|
|
71321
|
+
true
|
|
71322
|
+
);
|
|
71323
|
+
return apparentType.flags & 1048576 /* Union */ && isObjectLiteralExpression(node) ? discriminateContextualTypeByObjectMembers(node, apparentType) : apparentType.flags & 1048576 /* Union */ && isJsxAttributes(node) ? discriminateContextualTypeByJSXAttributes(node, apparentType) : apparentType;
|
|
71324
|
+
}
|
|
71316
71325
|
function getApparentTypeOfContextualType(node, contextFlags) {
|
|
71317
71326
|
const contextualType = isObjectLiteralMethod(node) ? getContextualTypeForObjectLiteralMethod(node, contextFlags) : getContextualType2(node, contextFlags);
|
|
71318
71327
|
const instantiatedType = instantiateContextualType(contextualType, node, contextFlags);
|
|
71319
71328
|
if (instantiatedType && !(contextFlags && contextFlags & 2 /* NoConstraints */ && instantiatedType.flags & 8650752 /* TypeVariable */)) {
|
|
71320
|
-
|
|
71321
|
-
instantiatedType,
|
|
71322
|
-
getApparentType,
|
|
71323
|
-
/*noReductions*/
|
|
71324
|
-
true
|
|
71325
|
-
);
|
|
71326
|
-
return apparentType.flags & 1048576 /* Union */ && isObjectLiteralExpression(node) ? discriminateContextualTypeByObjectMembers(node, apparentType) : apparentType.flags & 1048576 /* Union */ && isJsxAttributes(node) ? discriminateContextualTypeByJSXAttributes(node, apparentType) : apparentType;
|
|
71329
|
+
return getDiscriminatedApparentType(node, instantiatedType);
|
|
71327
71330
|
}
|
|
71328
71331
|
}
|
|
71329
71332
|
function instantiateContextualType(contextualType, node, contextFlags) {
|
|
@@ -73728,7 +73731,8 @@ function createTypeChecker(host) {
|
|
|
73728
73731
|
const isFromBindingPattern = !skipBindingPatterns && getContextualType2(node, 8 /* SkipBindingPatterns */) !== contextualType;
|
|
73729
73732
|
if (!isFromBindingPattern) {
|
|
73730
73733
|
const outerMapper = getMapperFromContext(cloneInferenceContext(outerContext, 1 /* NoDefault */));
|
|
73731
|
-
const
|
|
73734
|
+
const argumentApparentType = outerContext && isCallOrNewExpression(node.parent) && getDiscriminatedApparentType(node, contextualType);
|
|
73735
|
+
const instantiatedType = instantiateType(argumentApparentType && argumentApparentType !== unknownType ? argumentApparentType : contextualType, outerMapper);
|
|
73732
73736
|
const contextualSignature = getSingleCallSignature(instantiatedType);
|
|
73733
73737
|
const inferenceSourceType = contextualSignature && contextualSignature.typeParameters ? getOrCreateTypeFromSignature(getSignatureInstantiationWithoutFillingInTypeArguments(contextualSignature, contextualSignature.typeParameters)) : instantiatedType;
|
|
73734
73738
|
inferTypes(context.inferences, inferenceSourceType, inferenceTargetType, 128 /* ReturnType */);
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.0";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230220`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -59328,7 +59328,7 @@ ${lanes.join("\n")}
|
|
|
59328
59328
|
}
|
|
59329
59329
|
function getActualTypeVariable(type) {
|
|
59330
59330
|
if (type.flags & 33554432 /* Substitution */) {
|
|
59331
|
-
return
|
|
59331
|
+
return type.baseType;
|
|
59332
59332
|
}
|
|
59333
59333
|
if (type.flags & 8388608 /* IndexedAccess */ && (type.objectType.flags & 33554432 /* Substitution */ || type.indexType.flags & 33554432 /* Substitution */)) {
|
|
59334
59334
|
return getIndexedAccessType(getActualTypeVariable(type.objectType), getActualTypeVariable(type.indexType));
|
|
@@ -69121,17 +69121,20 @@ ${lanes.join("\n")}
|
|
|
69121
69121
|
contextualType
|
|
69122
69122
|
);
|
|
69123
69123
|
}
|
|
69124
|
+
function getDiscriminatedApparentType(node, type) {
|
|
69125
|
+
const apparentType = mapType(
|
|
69126
|
+
type,
|
|
69127
|
+
getApparentType,
|
|
69128
|
+
/*noReductions*/
|
|
69129
|
+
true
|
|
69130
|
+
);
|
|
69131
|
+
return apparentType.flags & 1048576 /* Union */ && isObjectLiteralExpression(node) ? discriminateContextualTypeByObjectMembers(node, apparentType) : apparentType.flags & 1048576 /* Union */ && isJsxAttributes(node) ? discriminateContextualTypeByJSXAttributes(node, apparentType) : apparentType;
|
|
69132
|
+
}
|
|
69124
69133
|
function getApparentTypeOfContextualType(node, contextFlags) {
|
|
69125
69134
|
const contextualType = isObjectLiteralMethod(node) ? getContextualTypeForObjectLiteralMethod(node, contextFlags) : getContextualType2(node, contextFlags);
|
|
69126
69135
|
const instantiatedType = instantiateContextualType(contextualType, node, contextFlags);
|
|
69127
69136
|
if (instantiatedType && !(contextFlags && contextFlags & 2 /* NoConstraints */ && instantiatedType.flags & 8650752 /* TypeVariable */)) {
|
|
69128
|
-
|
|
69129
|
-
instantiatedType,
|
|
69130
|
-
getApparentType,
|
|
69131
|
-
/*noReductions*/
|
|
69132
|
-
true
|
|
69133
|
-
);
|
|
69134
|
-
return apparentType.flags & 1048576 /* Union */ && isObjectLiteralExpression(node) ? discriminateContextualTypeByObjectMembers(node, apparentType) : apparentType.flags & 1048576 /* Union */ && isJsxAttributes(node) ? discriminateContextualTypeByJSXAttributes(node, apparentType) : apparentType;
|
|
69137
|
+
return getDiscriminatedApparentType(node, instantiatedType);
|
|
69135
69138
|
}
|
|
69136
69139
|
}
|
|
69137
69140
|
function instantiateContextualType(contextualType, node, contextFlags) {
|
|
@@ -71536,7 +71539,8 @@ ${lanes.join("\n")}
|
|
|
71536
71539
|
const isFromBindingPattern = !skipBindingPatterns && getContextualType2(node, 8 /* SkipBindingPatterns */) !== contextualType;
|
|
71537
71540
|
if (!isFromBindingPattern) {
|
|
71538
71541
|
const outerMapper = getMapperFromContext(cloneInferenceContext(outerContext, 1 /* NoDefault */));
|
|
71539
|
-
const
|
|
71542
|
+
const argumentApparentType = outerContext && isCallOrNewExpression(node.parent) && getDiscriminatedApparentType(node, contextualType);
|
|
71543
|
+
const instantiatedType = instantiateType(argumentApparentType && argumentApparentType !== unknownType ? argumentApparentType : contextualType, outerMapper);
|
|
71540
71544
|
const contextualSignature = getSingleCallSignature(instantiatedType);
|
|
71541
71545
|
const inferenceSourceType = contextualSignature && contextualSignature.typeParameters ? getOrCreateTypeFromSignature(getSignatureInstantiationWithoutFillingInTypeArguments(contextualSignature, contextualSignature.typeParameters)) : instantiatedType;
|
|
71542
71546
|
inferTypes(context.inferences, inferenceSourceType, inferenceTargetType, 128 /* ReturnType */);
|
package/lib/typescript.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.0";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230220`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -59328,7 +59328,7 @@ ${lanes.join("\n")}
|
|
|
59328
59328
|
}
|
|
59329
59329
|
function getActualTypeVariable(type) {
|
|
59330
59330
|
if (type.flags & 33554432 /* Substitution */) {
|
|
59331
|
-
return
|
|
59331
|
+
return type.baseType;
|
|
59332
59332
|
}
|
|
59333
59333
|
if (type.flags & 8388608 /* IndexedAccess */ && (type.objectType.flags & 33554432 /* Substitution */ || type.indexType.flags & 33554432 /* Substitution */)) {
|
|
59334
59334
|
return getIndexedAccessType(getActualTypeVariable(type.objectType), getActualTypeVariable(type.indexType));
|
|
@@ -69121,17 +69121,20 @@ ${lanes.join("\n")}
|
|
|
69121
69121
|
contextualType
|
|
69122
69122
|
);
|
|
69123
69123
|
}
|
|
69124
|
+
function getDiscriminatedApparentType(node, type) {
|
|
69125
|
+
const apparentType = mapType(
|
|
69126
|
+
type,
|
|
69127
|
+
getApparentType,
|
|
69128
|
+
/*noReductions*/
|
|
69129
|
+
true
|
|
69130
|
+
);
|
|
69131
|
+
return apparentType.flags & 1048576 /* Union */ && isObjectLiteralExpression(node) ? discriminateContextualTypeByObjectMembers(node, apparentType) : apparentType.flags & 1048576 /* Union */ && isJsxAttributes(node) ? discriminateContextualTypeByJSXAttributes(node, apparentType) : apparentType;
|
|
69132
|
+
}
|
|
69124
69133
|
function getApparentTypeOfContextualType(node, contextFlags) {
|
|
69125
69134
|
const contextualType = isObjectLiteralMethod(node) ? getContextualTypeForObjectLiteralMethod(node, contextFlags) : getContextualType2(node, contextFlags);
|
|
69126
69135
|
const instantiatedType = instantiateContextualType(contextualType, node, contextFlags);
|
|
69127
69136
|
if (instantiatedType && !(contextFlags && contextFlags & 2 /* NoConstraints */ && instantiatedType.flags & 8650752 /* TypeVariable */)) {
|
|
69128
|
-
|
|
69129
|
-
instantiatedType,
|
|
69130
|
-
getApparentType,
|
|
69131
|
-
/*noReductions*/
|
|
69132
|
-
true
|
|
69133
|
-
);
|
|
69134
|
-
return apparentType.flags & 1048576 /* Union */ && isObjectLiteralExpression(node) ? discriminateContextualTypeByObjectMembers(node, apparentType) : apparentType.flags & 1048576 /* Union */ && isJsxAttributes(node) ? discriminateContextualTypeByJSXAttributes(node, apparentType) : apparentType;
|
|
69137
|
+
return getDiscriminatedApparentType(node, instantiatedType);
|
|
69135
69138
|
}
|
|
69136
69139
|
}
|
|
69137
69140
|
function instantiateContextualType(contextualType, node, contextFlags) {
|
|
@@ -71536,7 +71539,8 @@ ${lanes.join("\n")}
|
|
|
71536
71539
|
const isFromBindingPattern = !skipBindingPatterns && getContextualType2(node, 8 /* SkipBindingPatterns */) !== contextualType;
|
|
71537
71540
|
if (!isFromBindingPattern) {
|
|
71538
71541
|
const outerMapper = getMapperFromContext(cloneInferenceContext(outerContext, 1 /* NoDefault */));
|
|
71539
|
-
const
|
|
71542
|
+
const argumentApparentType = outerContext && isCallOrNewExpression(node.parent) && getDiscriminatedApparentType(node, contextualType);
|
|
71543
|
+
const instantiatedType = instantiateType(argumentApparentType && argumentApparentType !== unknownType ? argumentApparentType : contextualType, outerMapper);
|
|
71540
71544
|
const contextualSignature = getSingleCallSignature(instantiatedType);
|
|
71541
71545
|
const inferenceSourceType = contextualSignature && contextualSignature.typeParameters ? getOrCreateTypeFromSignature(getSignatureInstantiationWithoutFillingInTypeArguments(contextualSignature, contextualSignature.typeParameters)) : instantiatedType;
|
|
71542
71546
|
inferTypes(context.inferences, inferenceSourceType, inferenceTargetType, 128 /* ReturnType */);
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.0";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20230220`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
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.0.0-pr-
|
|
5
|
+
"version": "5.0.0-pr-52866-6",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|