typescript 4.9.0-dev.20221011 → 4.9.0-dev.20221013
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 -4
- package/lib/tsserver.js +15 -5
- package/lib/tsserverlibrary.js +15 -5
- package/lib/typescript.js +15 -5
- package/lib/typescriptServices.js +15 -5
- package/lib/typingsInstaller.js +14 -4
- package/package.json +1 -1
package/lib/tsc.js
CHANGED
|
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
69
69
|
var ts;
|
|
70
70
|
(function (ts) {
|
|
71
71
|
ts.versionMajorMinor = "4.9";
|
|
72
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
72
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221013");
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -66703,7 +66703,17 @@ var ts;
|
|
|
66703
66703
|
}
|
|
66704
66704
|
function isExhaustiveSwitchStatement(node) {
|
|
66705
66705
|
var links = getNodeLinks(node);
|
|
66706
|
-
|
|
66706
|
+
if (links.isExhaustive === undefined) {
|
|
66707
|
+
links.isExhaustive = 0;
|
|
66708
|
+
var exhaustive = computeExhaustiveSwitchStatement(node);
|
|
66709
|
+
if (links.isExhaustive === 0) {
|
|
66710
|
+
links.isExhaustive = exhaustive;
|
|
66711
|
+
}
|
|
66712
|
+
}
|
|
66713
|
+
else if (links.isExhaustive === 0) {
|
|
66714
|
+
links.isExhaustive = false;
|
|
66715
|
+
}
|
|
66716
|
+
return links.isExhaustive;
|
|
66707
66717
|
}
|
|
66708
66718
|
function computeExhaustiveSwitchStatement(node) {
|
|
66709
66719
|
if (node.expression.kind === 218) {
|
|
@@ -66711,14 +66721,14 @@ var ts;
|
|
|
66711
66721
|
if (!witnesses) {
|
|
66712
66722
|
return false;
|
|
66713
66723
|
}
|
|
66714
|
-
var operandConstraint = getBaseConstraintOrType(
|
|
66724
|
+
var operandConstraint = getBaseConstraintOrType(checkExpressionCached(node.expression.expression));
|
|
66715
66725
|
var notEqualFacts_2 = getNotEqualFactsFromTypeofSwitch(0, 0, witnesses);
|
|
66716
66726
|
if (operandConstraint.flags & 3) {
|
|
66717
66727
|
return (556800 & notEqualFacts_2) === 556800;
|
|
66718
66728
|
}
|
|
66719
66729
|
return !someType(operandConstraint, function (t) { return (getTypeFacts(t) & notEqualFacts_2) === notEqualFacts_2; });
|
|
66720
66730
|
}
|
|
66721
|
-
var type =
|
|
66731
|
+
var type = checkExpressionCached(node.expression);
|
|
66722
66732
|
if (!isLiteralType(type)) {
|
|
66723
66733
|
return false;
|
|
66724
66734
|
}
|
package/lib/tsserver.js
CHANGED
|
@@ -109,7 +109,7 @@ var ts;
|
|
|
109
109
|
// The following is baselined as a literal template type without intervention
|
|
110
110
|
/** The version of the TypeScript compiler release */
|
|
111
111
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
112
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
112
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221013");
|
|
113
113
|
/* @internal */
|
|
114
114
|
var Comparison;
|
|
115
115
|
(function (Comparison) {
|
|
@@ -79598,7 +79598,17 @@ var ts;
|
|
|
79598
79598
|
}
|
|
79599
79599
|
function isExhaustiveSwitchStatement(node) {
|
|
79600
79600
|
var links = getNodeLinks(node);
|
|
79601
|
-
|
|
79601
|
+
if (links.isExhaustive === undefined) {
|
|
79602
|
+
links.isExhaustive = 0; // Indicate resolution is in process
|
|
79603
|
+
var exhaustive = computeExhaustiveSwitchStatement(node);
|
|
79604
|
+
if (links.isExhaustive === 0) {
|
|
79605
|
+
links.isExhaustive = exhaustive;
|
|
79606
|
+
}
|
|
79607
|
+
}
|
|
79608
|
+
else if (links.isExhaustive === 0) {
|
|
79609
|
+
links.isExhaustive = false; // Resolve circularity to false
|
|
79610
|
+
}
|
|
79611
|
+
return links.isExhaustive;
|
|
79602
79612
|
}
|
|
79603
79613
|
function computeExhaustiveSwitchStatement(node) {
|
|
79604
79614
|
if (node.expression.kind === 218 /* SyntaxKind.TypeOfExpression */) {
|
|
@@ -79606,7 +79616,7 @@ var ts;
|
|
|
79606
79616
|
if (!witnesses) {
|
|
79607
79617
|
return false;
|
|
79608
79618
|
}
|
|
79609
|
-
var operandConstraint = getBaseConstraintOrType(
|
|
79619
|
+
var operandConstraint = getBaseConstraintOrType(checkExpressionCached(node.expression.expression));
|
|
79610
79620
|
// Get the not-equal flags for all handled cases.
|
|
79611
79621
|
var notEqualFacts_2 = getNotEqualFactsFromTypeofSwitch(0, 0, witnesses);
|
|
79612
79622
|
if (operandConstraint.flags & 3 /* TypeFlags.AnyOrUnknown */) {
|
|
@@ -79616,7 +79626,7 @@ var ts;
|
|
|
79616
79626
|
// A missing not-equal flag indicates that the type wasn't handled by some case.
|
|
79617
79627
|
return !someType(operandConstraint, function (t) { return (getTypeFacts(t) & notEqualFacts_2) === notEqualFacts_2; });
|
|
79618
79628
|
}
|
|
79619
|
-
var type =
|
|
79629
|
+
var type = checkExpressionCached(node.expression);
|
|
79620
79630
|
if (!isLiteralType(type)) {
|
|
79621
79631
|
return false;
|
|
79622
79632
|
}
|
|
@@ -148743,7 +148753,7 @@ var ts;
|
|
|
148743
148753
|
tags = signature.getJsDocTags();
|
|
148744
148754
|
if (allSignatures.length > 1 && documentation.length === 0 && tags.length === 0) {
|
|
148745
148755
|
documentation = allSignatures[0].getDocumentationComment(typeChecker);
|
|
148746
|
-
tags = allSignatures[0].getJsDocTags();
|
|
148756
|
+
tags = allSignatures[0].getJsDocTags().filter(function (tag) { return tag.name !== "deprecated"; }); // should only include @deprecated JSDoc tag on the first overload (#49368)
|
|
148747
148757
|
}
|
|
148748
148758
|
}
|
|
148749
148759
|
function writeTypeParametersOfSymbol(symbol, enclosingDeclaration) {
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -108,7 +108,7 @@ var ts;
|
|
|
108
108
|
// The following is baselined as a literal template type without intervention
|
|
109
109
|
/** The version of the TypeScript compiler release */
|
|
110
110
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
111
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
111
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221013");
|
|
112
112
|
/* @internal */
|
|
113
113
|
var Comparison;
|
|
114
114
|
(function (Comparison) {
|
|
@@ -79597,7 +79597,17 @@ var ts;
|
|
|
79597
79597
|
}
|
|
79598
79598
|
function isExhaustiveSwitchStatement(node) {
|
|
79599
79599
|
var links = getNodeLinks(node);
|
|
79600
|
-
|
|
79600
|
+
if (links.isExhaustive === undefined) {
|
|
79601
|
+
links.isExhaustive = 0; // Indicate resolution is in process
|
|
79602
|
+
var exhaustive = computeExhaustiveSwitchStatement(node);
|
|
79603
|
+
if (links.isExhaustive === 0) {
|
|
79604
|
+
links.isExhaustive = exhaustive;
|
|
79605
|
+
}
|
|
79606
|
+
}
|
|
79607
|
+
else if (links.isExhaustive === 0) {
|
|
79608
|
+
links.isExhaustive = false; // Resolve circularity to false
|
|
79609
|
+
}
|
|
79610
|
+
return links.isExhaustive;
|
|
79601
79611
|
}
|
|
79602
79612
|
function computeExhaustiveSwitchStatement(node) {
|
|
79603
79613
|
if (node.expression.kind === 218 /* SyntaxKind.TypeOfExpression */) {
|
|
@@ -79605,7 +79615,7 @@ var ts;
|
|
|
79605
79615
|
if (!witnesses) {
|
|
79606
79616
|
return false;
|
|
79607
79617
|
}
|
|
79608
|
-
var operandConstraint = getBaseConstraintOrType(
|
|
79618
|
+
var operandConstraint = getBaseConstraintOrType(checkExpressionCached(node.expression.expression));
|
|
79609
79619
|
// Get the not-equal flags for all handled cases.
|
|
79610
79620
|
var notEqualFacts_2 = getNotEqualFactsFromTypeofSwitch(0, 0, witnesses);
|
|
79611
79621
|
if (operandConstraint.flags & 3 /* TypeFlags.AnyOrUnknown */) {
|
|
@@ -79615,7 +79625,7 @@ var ts;
|
|
|
79615
79625
|
// A missing not-equal flag indicates that the type wasn't handled by some case.
|
|
79616
79626
|
return !someType(operandConstraint, function (t) { return (getTypeFacts(t) & notEqualFacts_2) === notEqualFacts_2; });
|
|
79617
79627
|
}
|
|
79618
|
-
var type =
|
|
79628
|
+
var type = checkExpressionCached(node.expression);
|
|
79619
79629
|
if (!isLiteralType(type)) {
|
|
79620
79630
|
return false;
|
|
79621
79631
|
}
|
|
@@ -149161,7 +149171,7 @@ var ts;
|
|
|
149161
149171
|
tags = signature.getJsDocTags();
|
|
149162
149172
|
if (allSignatures.length > 1 && documentation.length === 0 && tags.length === 0) {
|
|
149163
149173
|
documentation = allSignatures[0].getDocumentationComment(typeChecker);
|
|
149164
|
-
tags = allSignatures[0].getJsDocTags();
|
|
149174
|
+
tags = allSignatures[0].getJsDocTags().filter(function (tag) { return tag.name !== "deprecated"; }); // should only include @deprecated JSDoc tag on the first overload (#49368)
|
|
149165
149175
|
}
|
|
149166
149176
|
}
|
|
149167
149177
|
function writeTypeParametersOfSymbol(symbol, enclosingDeclaration) {
|
package/lib/typescript.js
CHANGED
|
@@ -99,7 +99,7 @@ var ts;
|
|
|
99
99
|
// The following is baselined as a literal template type without intervention
|
|
100
100
|
/** The version of the TypeScript compiler release */
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
102
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
102
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221013");
|
|
103
103
|
/* @internal */
|
|
104
104
|
var Comparison;
|
|
105
105
|
(function (Comparison) {
|
|
@@ -79588,7 +79588,17 @@ var ts;
|
|
|
79588
79588
|
}
|
|
79589
79589
|
function isExhaustiveSwitchStatement(node) {
|
|
79590
79590
|
var links = getNodeLinks(node);
|
|
79591
|
-
|
|
79591
|
+
if (links.isExhaustive === undefined) {
|
|
79592
|
+
links.isExhaustive = 0; // Indicate resolution is in process
|
|
79593
|
+
var exhaustive = computeExhaustiveSwitchStatement(node);
|
|
79594
|
+
if (links.isExhaustive === 0) {
|
|
79595
|
+
links.isExhaustive = exhaustive;
|
|
79596
|
+
}
|
|
79597
|
+
}
|
|
79598
|
+
else if (links.isExhaustive === 0) {
|
|
79599
|
+
links.isExhaustive = false; // Resolve circularity to false
|
|
79600
|
+
}
|
|
79601
|
+
return links.isExhaustive;
|
|
79592
79602
|
}
|
|
79593
79603
|
function computeExhaustiveSwitchStatement(node) {
|
|
79594
79604
|
if (node.expression.kind === 218 /* SyntaxKind.TypeOfExpression */) {
|
|
@@ -79596,7 +79606,7 @@ var ts;
|
|
|
79596
79606
|
if (!witnesses) {
|
|
79597
79607
|
return false;
|
|
79598
79608
|
}
|
|
79599
|
-
var operandConstraint = getBaseConstraintOrType(
|
|
79609
|
+
var operandConstraint = getBaseConstraintOrType(checkExpressionCached(node.expression.expression));
|
|
79600
79610
|
// Get the not-equal flags for all handled cases.
|
|
79601
79611
|
var notEqualFacts_2 = getNotEqualFactsFromTypeofSwitch(0, 0, witnesses);
|
|
79602
79612
|
if (operandConstraint.flags & 3 /* TypeFlags.AnyOrUnknown */) {
|
|
@@ -79606,7 +79616,7 @@ var ts;
|
|
|
79606
79616
|
// A missing not-equal flag indicates that the type wasn't handled by some case.
|
|
79607
79617
|
return !someType(operandConstraint, function (t) { return (getTypeFacts(t) & notEqualFacts_2) === notEqualFacts_2; });
|
|
79608
79618
|
}
|
|
79609
|
-
var type =
|
|
79619
|
+
var type = checkExpressionCached(node.expression);
|
|
79610
79620
|
if (!isLiteralType(type)) {
|
|
79611
79621
|
return false;
|
|
79612
79622
|
}
|
|
@@ -149152,7 +149162,7 @@ var ts;
|
|
|
149152
149162
|
tags = signature.getJsDocTags();
|
|
149153
149163
|
if (allSignatures.length > 1 && documentation.length === 0 && tags.length === 0) {
|
|
149154
149164
|
documentation = allSignatures[0].getDocumentationComment(typeChecker);
|
|
149155
|
-
tags = allSignatures[0].getJsDocTags();
|
|
149165
|
+
tags = allSignatures[0].getJsDocTags().filter(function (tag) { return tag.name !== "deprecated"; }); // should only include @deprecated JSDoc tag on the first overload (#49368)
|
|
149156
149166
|
}
|
|
149157
149167
|
}
|
|
149158
149168
|
function writeTypeParametersOfSymbol(symbol, enclosingDeclaration) {
|
|
@@ -99,7 +99,7 @@ var ts;
|
|
|
99
99
|
// The following is baselined as a literal template type without intervention
|
|
100
100
|
/** The version of the TypeScript compiler release */
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
102
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
102
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221013");
|
|
103
103
|
/* @internal */
|
|
104
104
|
var Comparison;
|
|
105
105
|
(function (Comparison) {
|
|
@@ -79588,7 +79588,17 @@ var ts;
|
|
|
79588
79588
|
}
|
|
79589
79589
|
function isExhaustiveSwitchStatement(node) {
|
|
79590
79590
|
var links = getNodeLinks(node);
|
|
79591
|
-
|
|
79591
|
+
if (links.isExhaustive === undefined) {
|
|
79592
|
+
links.isExhaustive = 0; // Indicate resolution is in process
|
|
79593
|
+
var exhaustive = computeExhaustiveSwitchStatement(node);
|
|
79594
|
+
if (links.isExhaustive === 0) {
|
|
79595
|
+
links.isExhaustive = exhaustive;
|
|
79596
|
+
}
|
|
79597
|
+
}
|
|
79598
|
+
else if (links.isExhaustive === 0) {
|
|
79599
|
+
links.isExhaustive = false; // Resolve circularity to false
|
|
79600
|
+
}
|
|
79601
|
+
return links.isExhaustive;
|
|
79592
79602
|
}
|
|
79593
79603
|
function computeExhaustiveSwitchStatement(node) {
|
|
79594
79604
|
if (node.expression.kind === 218 /* SyntaxKind.TypeOfExpression */) {
|
|
@@ -79596,7 +79606,7 @@ var ts;
|
|
|
79596
79606
|
if (!witnesses) {
|
|
79597
79607
|
return false;
|
|
79598
79608
|
}
|
|
79599
|
-
var operandConstraint = getBaseConstraintOrType(
|
|
79609
|
+
var operandConstraint = getBaseConstraintOrType(checkExpressionCached(node.expression.expression));
|
|
79600
79610
|
// Get the not-equal flags for all handled cases.
|
|
79601
79611
|
var notEqualFacts_2 = getNotEqualFactsFromTypeofSwitch(0, 0, witnesses);
|
|
79602
79612
|
if (operandConstraint.flags & 3 /* TypeFlags.AnyOrUnknown */) {
|
|
@@ -79606,7 +79616,7 @@ var ts;
|
|
|
79606
79616
|
// A missing not-equal flag indicates that the type wasn't handled by some case.
|
|
79607
79617
|
return !someType(operandConstraint, function (t) { return (getTypeFacts(t) & notEqualFacts_2) === notEqualFacts_2; });
|
|
79608
79618
|
}
|
|
79609
|
-
var type =
|
|
79619
|
+
var type = checkExpressionCached(node.expression);
|
|
79610
79620
|
if (!isLiteralType(type)) {
|
|
79611
79621
|
return false;
|
|
79612
79622
|
}
|
|
@@ -149152,7 +149162,7 @@ var ts;
|
|
|
149152
149162
|
tags = signature.getJsDocTags();
|
|
149153
149163
|
if (allSignatures.length > 1 && documentation.length === 0 && tags.length === 0) {
|
|
149154
149164
|
documentation = allSignatures[0].getDocumentationComment(typeChecker);
|
|
149155
|
-
tags = allSignatures[0].getJsDocTags();
|
|
149165
|
+
tags = allSignatures[0].getJsDocTags().filter(function (tag) { return tag.name !== "deprecated"; }); // should only include @deprecated JSDoc tag on the first overload (#49368)
|
|
149156
149166
|
}
|
|
149157
149167
|
}
|
|
149158
149168
|
function writeTypeParametersOfSymbol(symbol, enclosingDeclaration) {
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -89,7 +89,7 @@ var ts;
|
|
|
89
89
|
// The following is baselined as a literal template type without intervention
|
|
90
90
|
/** The version of the TypeScript compiler release */
|
|
91
91
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
92
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
92
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221013");
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -79578,7 +79578,17 @@ var ts;
|
|
|
79578
79578
|
}
|
|
79579
79579
|
function isExhaustiveSwitchStatement(node) {
|
|
79580
79580
|
var links = getNodeLinks(node);
|
|
79581
|
-
|
|
79581
|
+
if (links.isExhaustive === undefined) {
|
|
79582
|
+
links.isExhaustive = 0; // Indicate resolution is in process
|
|
79583
|
+
var exhaustive = computeExhaustiveSwitchStatement(node);
|
|
79584
|
+
if (links.isExhaustive === 0) {
|
|
79585
|
+
links.isExhaustive = exhaustive;
|
|
79586
|
+
}
|
|
79587
|
+
}
|
|
79588
|
+
else if (links.isExhaustive === 0) {
|
|
79589
|
+
links.isExhaustive = false; // Resolve circularity to false
|
|
79590
|
+
}
|
|
79591
|
+
return links.isExhaustive;
|
|
79582
79592
|
}
|
|
79583
79593
|
function computeExhaustiveSwitchStatement(node) {
|
|
79584
79594
|
if (node.expression.kind === 218 /* SyntaxKind.TypeOfExpression */) {
|
|
@@ -79586,7 +79596,7 @@ var ts;
|
|
|
79586
79596
|
if (!witnesses) {
|
|
79587
79597
|
return false;
|
|
79588
79598
|
}
|
|
79589
|
-
var operandConstraint = getBaseConstraintOrType(
|
|
79599
|
+
var operandConstraint = getBaseConstraintOrType(checkExpressionCached(node.expression.expression));
|
|
79590
79600
|
// Get the not-equal flags for all handled cases.
|
|
79591
79601
|
var notEqualFacts_2 = getNotEqualFactsFromTypeofSwitch(0, 0, witnesses);
|
|
79592
79602
|
if (operandConstraint.flags & 3 /* TypeFlags.AnyOrUnknown */) {
|
|
@@ -79596,7 +79606,7 @@ var ts;
|
|
|
79596
79606
|
// A missing not-equal flag indicates that the type wasn't handled by some case.
|
|
79597
79607
|
return !someType(operandConstraint, function (t) { return (getTypeFacts(t) & notEqualFacts_2) === notEqualFacts_2; });
|
|
79598
79608
|
}
|
|
79599
|
-
var type =
|
|
79609
|
+
var type = checkExpressionCached(node.expression);
|
|
79600
79610
|
if (!isLiteralType(type)) {
|
|
79601
79611
|
return false;
|
|
79602
79612
|
}
|
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": "4.9.0-dev.
|
|
5
|
+
"version": "4.9.0-dev.20221013",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|