@typescript-deploys/pr-build 5.3.0-pr-55319-8 → 5.3.0-pr-54678-12
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 +0 -5
- package/lib/tsserver.js +9 -10
- package/lib/tsserverlibrary.d.ts +5 -2
- package/lib/tsserverlibrary.js +9 -10
- package/lib/typescript.d.ts +5 -2
- package/lib/typescript.js +9 -10
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -73837,11 +73837,6 @@ function createTypeChecker(host) {
|
|
|
73837
73837
|
}
|
|
73838
73838
|
leftType = checkNonNullType(leftType, left);
|
|
73839
73839
|
rightType = checkNonNullType(rightType, right);
|
|
73840
|
-
if (leftType.flags & rightType.flags & 1024 /* EnumLiteral */) {
|
|
73841
|
-
if (getBaseTypeOfEnumLikeType(leftType).symbol !== getBaseTypeOfEnumLikeType(rightType).symbol) {
|
|
73842
|
-
error(errorNode, Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations);
|
|
73843
|
-
}
|
|
73844
|
-
}
|
|
73845
73840
|
let suggestedOperator;
|
|
73846
73841
|
if (leftType.flags & 528 /* BooleanLike */ && rightType.flags & 528 /* BooleanLike */ && (suggestedOperator = getSuggestedBooleanOperator(operatorToken.kind)) !== void 0) {
|
|
73847
73842
|
error(errorNode || operatorToken, Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead, tokenToString(operatorToken.kind), tokenToString(suggestedOperator));
|
package/lib/tsserver.js
CHANGED
|
@@ -78546,11 +78546,6 @@ function createTypeChecker(host) {
|
|
|
78546
78546
|
}
|
|
78547
78547
|
leftType = checkNonNullType(leftType, left);
|
|
78548
78548
|
rightType = checkNonNullType(rightType, right);
|
|
78549
|
-
if (leftType.flags & rightType.flags & 1024 /* EnumLiteral */) {
|
|
78550
|
-
if (getBaseTypeOfEnumLikeType(leftType).symbol !== getBaseTypeOfEnumLikeType(rightType).symbol) {
|
|
78551
|
-
error2(errorNode, Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations);
|
|
78552
|
-
}
|
|
78553
|
-
}
|
|
78554
78549
|
let suggestedOperator;
|
|
78555
78550
|
if (leftType.flags & 528 /* BooleanLike */ && rightType.flags & 528 /* BooleanLike */ && (suggestedOperator = getSuggestedBooleanOperator(operatorToken.kind)) !== void 0) {
|
|
78556
78551
|
error2(errorNode || operatorToken, Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead, tokenToString(operatorToken.kind), tokenToString(suggestedOperator));
|
|
@@ -133331,7 +133326,7 @@ function createCacheableExportInfoMap(host) {
|
|
|
133331
133326
|
}
|
|
133332
133327
|
};
|
|
133333
133328
|
if (Debug.isDebugging) {
|
|
133334
|
-
Object.defineProperty(cache, "__cache", {
|
|
133329
|
+
Object.defineProperty(cache, "__cache", { value: exportInfo });
|
|
133335
133330
|
}
|
|
133336
133331
|
return cache;
|
|
133337
133332
|
function rehydrateCachedInfo(info) {
|
|
@@ -133367,11 +133362,15 @@ function createCacheableExportInfoMap(host) {
|
|
|
133367
133362
|
}
|
|
133368
133363
|
function key(importedName, symbol, ambientModuleName, checker) {
|
|
133369
133364
|
const moduleKey = ambientModuleName || "";
|
|
133370
|
-
return `${importedName}
|
|
133365
|
+
return `${importedName.length} ${getSymbolId(skipAlias(symbol, checker))} ${importedName} ${moduleKey}`;
|
|
133371
133366
|
}
|
|
133372
133367
|
function parseKey(key2) {
|
|
133373
|
-
const
|
|
133374
|
-
const
|
|
133368
|
+
const firstSpace = key2.indexOf(" ");
|
|
133369
|
+
const secondSpace = key2.indexOf(" ", firstSpace + 1);
|
|
133370
|
+
const symbolNameLength = parseInt(key2.substring(0, firstSpace), 10);
|
|
133371
|
+
const data = key2.substring(secondSpace + 1);
|
|
133372
|
+
const symbolName2 = data.substring(0, symbolNameLength);
|
|
133373
|
+
const moduleKey = data.substring(symbolNameLength + 1);
|
|
133375
133374
|
const ambientModuleName = moduleKey === "" ? void 0 : moduleKey;
|
|
133376
133375
|
return { symbolName: symbolName2, ambientModuleName };
|
|
133377
133376
|
}
|
|
@@ -147404,7 +147403,7 @@ function symbolReferenceIsAlsoMissingAwait(reference, diagnostics, sourceFile, c
|
|
|
147404
147403
|
checker.getTypeAtLocation(errorNode).flags & 1 /* Any */;
|
|
147405
147404
|
}
|
|
147406
147405
|
function isInsideAwaitableBody(node) {
|
|
147407
|
-
return node.
|
|
147406
|
+
return node.flags & 65536 /* AwaitContext */ || !!findAncestor(node, (ancestor) => ancestor.parent && isArrowFunction(ancestor.parent) && ancestor.parent.body === ancestor || isBlock(ancestor) && (ancestor.parent.kind === 262 /* FunctionDeclaration */ || ancestor.parent.kind === 218 /* FunctionExpression */ || ancestor.parent.kind === 219 /* ArrowFunction */ || ancestor.parent.kind === 174 /* MethodDeclaration */));
|
|
147408
147407
|
}
|
|
147409
147408
|
function makeChange3(changeTracker, errorCode, sourceFile, checker, insertionSite, fixedDeclarations) {
|
|
147410
147409
|
if (isForOfStatement(insertionSite.parent) && !insertionSite.parent.awaitModifier) {
|
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -10813,7 +10813,7 @@ declare namespace ts {
|
|
|
10813
10813
|
* in the case of InternalSymbolName.ExportEquals and InternalSymbolName.Default.
|
|
10814
10814
|
*/
|
|
10815
10815
|
exportName: string;
|
|
10816
|
-
exportMapKey?:
|
|
10816
|
+
exportMapKey?: ExportMapInfoKey;
|
|
10817
10817
|
moduleSpecifier?: string;
|
|
10818
10818
|
/** The file name declaring the export's module symbol, if it was an external module */
|
|
10819
10819
|
fileName?: string;
|
|
@@ -10823,7 +10823,7 @@ declare namespace ts {
|
|
|
10823
10823
|
isPackageJsonImport?: true;
|
|
10824
10824
|
}
|
|
10825
10825
|
interface CompletionEntryDataUnresolved extends CompletionEntryDataAutoImport {
|
|
10826
|
-
exportMapKey:
|
|
10826
|
+
exportMapKey: ExportMapInfoKey;
|
|
10827
10827
|
}
|
|
10828
10828
|
interface CompletionEntryDataResolved extends CompletionEntryDataAutoImport {
|
|
10829
10829
|
moduleSpecifier: string;
|
|
@@ -11138,6 +11138,9 @@ declare namespace ts {
|
|
|
11138
11138
|
span: TextSpan;
|
|
11139
11139
|
preferences: UserPreferences;
|
|
11140
11140
|
}
|
|
11141
|
+
type ExportMapInfoKey = string & {
|
|
11142
|
+
__exportInfoKey: void;
|
|
11143
|
+
};
|
|
11141
11144
|
/** The classifier is used for syntactic highlighting in editors via the TSServer */
|
|
11142
11145
|
function createClassifier(): Classifier;
|
|
11143
11146
|
interface DocumentHighlights {
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -76309,11 +76309,6 @@ ${lanes.join("\n")}
|
|
|
76309
76309
|
}
|
|
76310
76310
|
leftType = checkNonNullType(leftType, left);
|
|
76311
76311
|
rightType = checkNonNullType(rightType, right);
|
|
76312
|
-
if (leftType.flags & rightType.flags & 1024 /* EnumLiteral */) {
|
|
76313
|
-
if (getBaseTypeOfEnumLikeType(leftType).symbol !== getBaseTypeOfEnumLikeType(rightType).symbol) {
|
|
76314
|
-
error2(errorNode, Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations);
|
|
76315
|
-
}
|
|
76316
|
-
}
|
|
76317
76312
|
let suggestedOperator;
|
|
76318
76313
|
if (leftType.flags & 528 /* BooleanLike */ && rightType.flags & 528 /* BooleanLike */ && (suggestedOperator = getSuggestedBooleanOperator(operatorToken.kind)) !== void 0) {
|
|
76319
76314
|
error2(errorNode || operatorToken, Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead, tokenToString(operatorToken.kind), tokenToString(suggestedOperator));
|
|
@@ -131628,7 +131623,7 @@ ${lanes.join("\n")}
|
|
|
131628
131623
|
}
|
|
131629
131624
|
};
|
|
131630
131625
|
if (Debug.isDebugging) {
|
|
131631
|
-
Object.defineProperty(cache, "__cache", {
|
|
131626
|
+
Object.defineProperty(cache, "__cache", { value: exportInfo });
|
|
131632
131627
|
}
|
|
131633
131628
|
return cache;
|
|
131634
131629
|
function rehydrateCachedInfo(info) {
|
|
@@ -131664,11 +131659,15 @@ ${lanes.join("\n")}
|
|
|
131664
131659
|
}
|
|
131665
131660
|
function key(importedName, symbol, ambientModuleName, checker) {
|
|
131666
131661
|
const moduleKey = ambientModuleName || "";
|
|
131667
|
-
return `${importedName}
|
|
131662
|
+
return `${importedName.length} ${getSymbolId(skipAlias(symbol, checker))} ${importedName} ${moduleKey}`;
|
|
131668
131663
|
}
|
|
131669
131664
|
function parseKey(key2) {
|
|
131670
|
-
const
|
|
131671
|
-
const
|
|
131665
|
+
const firstSpace = key2.indexOf(" ");
|
|
131666
|
+
const secondSpace = key2.indexOf(" ", firstSpace + 1);
|
|
131667
|
+
const symbolNameLength = parseInt(key2.substring(0, firstSpace), 10);
|
|
131668
|
+
const data = key2.substring(secondSpace + 1);
|
|
131669
|
+
const symbolName2 = data.substring(0, symbolNameLength);
|
|
131670
|
+
const moduleKey = data.substring(symbolNameLength + 1);
|
|
131672
131671
|
const ambientModuleName = moduleKey === "" ? void 0 : moduleKey;
|
|
131673
131672
|
return { symbolName: symbolName2, ambientModuleName };
|
|
131674
131673
|
}
|
|
@@ -146001,7 +146000,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
146001
146000
|
checker.getTypeAtLocation(errorNode).flags & 1 /* Any */;
|
|
146002
146001
|
}
|
|
146003
146002
|
function isInsideAwaitableBody(node) {
|
|
146004
|
-
return node.
|
|
146003
|
+
return node.flags & 65536 /* AwaitContext */ || !!findAncestor(node, (ancestor) => ancestor.parent && isArrowFunction(ancestor.parent) && ancestor.parent.body === ancestor || isBlock(ancestor) && (ancestor.parent.kind === 262 /* FunctionDeclaration */ || ancestor.parent.kind === 218 /* FunctionExpression */ || ancestor.parent.kind === 219 /* ArrowFunction */ || ancestor.parent.kind === 174 /* MethodDeclaration */));
|
|
146005
146004
|
}
|
|
146006
146005
|
function makeChange3(changeTracker, errorCode, sourceFile, checker, insertionSite, fixedDeclarations) {
|
|
146007
146006
|
if (isForOfStatement(insertionSite.parent) && !insertionSite.parent.awaitModifier) {
|
package/lib/typescript.d.ts
CHANGED
|
@@ -6837,7 +6837,7 @@ declare namespace ts {
|
|
|
6837
6837
|
* in the case of InternalSymbolName.ExportEquals and InternalSymbolName.Default.
|
|
6838
6838
|
*/
|
|
6839
6839
|
exportName: string;
|
|
6840
|
-
exportMapKey?:
|
|
6840
|
+
exportMapKey?: ExportMapInfoKey;
|
|
6841
6841
|
moduleSpecifier?: string;
|
|
6842
6842
|
/** The file name declaring the export's module symbol, if it was an external module */
|
|
6843
6843
|
fileName?: string;
|
|
@@ -6847,7 +6847,7 @@ declare namespace ts {
|
|
|
6847
6847
|
isPackageJsonImport?: true;
|
|
6848
6848
|
}
|
|
6849
6849
|
interface CompletionEntryDataUnresolved extends CompletionEntryDataAutoImport {
|
|
6850
|
-
exportMapKey:
|
|
6850
|
+
exportMapKey: ExportMapInfoKey;
|
|
6851
6851
|
}
|
|
6852
6852
|
interface CompletionEntryDataResolved extends CompletionEntryDataAutoImport {
|
|
6853
6853
|
moduleSpecifier: string;
|
|
@@ -7162,6 +7162,9 @@ declare namespace ts {
|
|
|
7162
7162
|
span: TextSpan;
|
|
7163
7163
|
preferences: UserPreferences;
|
|
7164
7164
|
}
|
|
7165
|
+
type ExportMapInfoKey = string & {
|
|
7166
|
+
__exportInfoKey: void;
|
|
7167
|
+
};
|
|
7165
7168
|
/** The classifier is used for syntactic highlighting in editors via the TSServer */
|
|
7166
7169
|
function createClassifier(): Classifier;
|
|
7167
7170
|
interface DocumentHighlights {
|
package/lib/typescript.js
CHANGED
|
@@ -76309,11 +76309,6 @@ ${lanes.join("\n")}
|
|
|
76309
76309
|
}
|
|
76310
76310
|
leftType = checkNonNullType(leftType, left);
|
|
76311
76311
|
rightType = checkNonNullType(rightType, right);
|
|
76312
|
-
if (leftType.flags & rightType.flags & 1024 /* EnumLiteral */) {
|
|
76313
|
-
if (getBaseTypeOfEnumLikeType(leftType).symbol !== getBaseTypeOfEnumLikeType(rightType).symbol) {
|
|
76314
|
-
error2(errorNode, Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations);
|
|
76315
|
-
}
|
|
76316
|
-
}
|
|
76317
76312
|
let suggestedOperator;
|
|
76318
76313
|
if (leftType.flags & 528 /* BooleanLike */ && rightType.flags & 528 /* BooleanLike */ && (suggestedOperator = getSuggestedBooleanOperator(operatorToken.kind)) !== void 0) {
|
|
76319
76314
|
error2(errorNode || operatorToken, Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead, tokenToString(operatorToken.kind), tokenToString(suggestedOperator));
|
|
@@ -131643,7 +131638,7 @@ ${lanes.join("\n")}
|
|
|
131643
131638
|
}
|
|
131644
131639
|
};
|
|
131645
131640
|
if (Debug.isDebugging) {
|
|
131646
|
-
Object.defineProperty(cache, "__cache", {
|
|
131641
|
+
Object.defineProperty(cache, "__cache", { value: exportInfo });
|
|
131647
131642
|
}
|
|
131648
131643
|
return cache;
|
|
131649
131644
|
function rehydrateCachedInfo(info) {
|
|
@@ -131679,11 +131674,15 @@ ${lanes.join("\n")}
|
|
|
131679
131674
|
}
|
|
131680
131675
|
function key(importedName, symbol, ambientModuleName, checker) {
|
|
131681
131676
|
const moduleKey = ambientModuleName || "";
|
|
131682
|
-
return `${importedName}
|
|
131677
|
+
return `${importedName.length} ${getSymbolId(skipAlias(symbol, checker))} ${importedName} ${moduleKey}`;
|
|
131683
131678
|
}
|
|
131684
131679
|
function parseKey(key2) {
|
|
131685
|
-
const
|
|
131686
|
-
const
|
|
131680
|
+
const firstSpace = key2.indexOf(" ");
|
|
131681
|
+
const secondSpace = key2.indexOf(" ", firstSpace + 1);
|
|
131682
|
+
const symbolNameLength = parseInt(key2.substring(0, firstSpace), 10);
|
|
131683
|
+
const data = key2.substring(secondSpace + 1);
|
|
131684
|
+
const symbolName2 = data.substring(0, symbolNameLength);
|
|
131685
|
+
const moduleKey = data.substring(symbolNameLength + 1);
|
|
131687
131686
|
const ambientModuleName = moduleKey === "" ? void 0 : moduleKey;
|
|
131688
131687
|
return { symbolName: symbolName2, ambientModuleName };
|
|
131689
131688
|
}
|
|
@@ -146016,7 +146015,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
146016
146015
|
checker.getTypeAtLocation(errorNode).flags & 1 /* Any */;
|
|
146017
146016
|
}
|
|
146018
146017
|
function isInsideAwaitableBody(node) {
|
|
146019
|
-
return node.
|
|
146018
|
+
return node.flags & 65536 /* AwaitContext */ || !!findAncestor(node, (ancestor) => ancestor.parent && isArrowFunction(ancestor.parent) && ancestor.parent.body === ancestor || isBlock(ancestor) && (ancestor.parent.kind === 262 /* FunctionDeclaration */ || ancestor.parent.kind === 218 /* FunctionExpression */ || ancestor.parent.kind === 219 /* ArrowFunction */ || ancestor.parent.kind === 174 /* MethodDeclaration */));
|
|
146020
146019
|
}
|
|
146021
146020
|
function makeChange3(changeTracker, errorCode, sourceFile, checker, insertionSite, fixedDeclarations) {
|
|
146022
146021
|
if (isForOfStatement(insertionSite.parent) && !insertionSite.parent.awaitModifier) {
|
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.3.0-pr-
|
|
5
|
+
"version": "5.3.0-pr-54678-12",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"node": "20.1.0",
|
|
115
115
|
"npm": "8.19.4"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "91985590dede6458f12483e25b5beb1362d867b8"
|
|
118
118
|
}
|