@typescript-deploys/pr-build 5.3.0-pr-55386-10 → 5.3.0-pr-55547-8
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 +4 -4
- package/lib/tsserver.js +12 -5
- package/lib/typescript.js +12 -5
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -55721,7 +55721,7 @@ function createTypeChecker(host) {
|
|
|
55721
55721
|
if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) {
|
|
55722
55722
|
const typeParameter = getHomomorphicTypeVariable(mappedType);
|
|
55723
55723
|
if (typeParameter) {
|
|
55724
|
-
const constraint = getConstraintOfTypeParameter(
|
|
55724
|
+
const constraint = getConstraintOfTypeParameter(typeParameter);
|
|
55725
55725
|
if (constraint && everyType(constraint, isArrayOrTupleType)) {
|
|
55726
55726
|
constraints = append(constraints, getUnionType([numberType, numericStringType]));
|
|
55727
55727
|
}
|
|
@@ -63321,7 +63321,7 @@ function createTypeChecker(host) {
|
|
|
63321
63321
|
}
|
|
63322
63322
|
const name = escapeLeadingUnderscores(t.value);
|
|
63323
63323
|
const literalProp = createSymbol(4 /* Property */, name);
|
|
63324
|
-
literalProp.links.type =
|
|
63324
|
+
literalProp.links.type = unknownType;
|
|
63325
63325
|
if (t.symbol) {
|
|
63326
63326
|
literalProp.declarations = t.symbol.declarations;
|
|
63327
63327
|
literalProp.valueDeclaration = t.symbol.valueDeclaration;
|
|
@@ -82041,11 +82041,11 @@ function createTypeChecker(host) {
|
|
|
82041
82041
|
if (fileToDirective.has(file.path))
|
|
82042
82042
|
return;
|
|
82043
82043
|
fileToDirective.set(file.path, [key, mode]);
|
|
82044
|
-
for (const { fileName
|
|
82044
|
+
for (const { fileName } of file.referencedFiles) {
|
|
82045
82045
|
const resolvedFile = resolveTripleslashReference(fileName, file.fileName);
|
|
82046
82046
|
const referencedFile = host.getSourceFile(resolvedFile);
|
|
82047
82047
|
if (referencedFile) {
|
|
82048
|
-
addReferencedFilesToTypeDirective(referencedFile, key,
|
|
82048
|
+
addReferencedFilesToTypeDirective(referencedFile, key, mode || file.impliedNodeFormat);
|
|
82049
82049
|
}
|
|
82050
82050
|
}
|
|
82051
82051
|
}
|
package/lib/tsserver.js
CHANGED
|
@@ -60424,7 +60424,7 @@ function createTypeChecker(host) {
|
|
|
60424
60424
|
if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) {
|
|
60425
60425
|
const typeParameter = getHomomorphicTypeVariable(mappedType);
|
|
60426
60426
|
if (typeParameter) {
|
|
60427
|
-
const constraint = getConstraintOfTypeParameter(
|
|
60427
|
+
const constraint = getConstraintOfTypeParameter(typeParameter);
|
|
60428
60428
|
if (constraint && everyType(constraint, isArrayOrTupleType)) {
|
|
60429
60429
|
constraints = append(constraints, getUnionType([numberType, numericStringType]));
|
|
60430
60430
|
}
|
|
@@ -68024,7 +68024,7 @@ function createTypeChecker(host) {
|
|
|
68024
68024
|
}
|
|
68025
68025
|
const name = escapeLeadingUnderscores(t.value);
|
|
68026
68026
|
const literalProp = createSymbol(4 /* Property */, name);
|
|
68027
|
-
literalProp.links.type =
|
|
68027
|
+
literalProp.links.type = unknownType;
|
|
68028
68028
|
if (t.symbol) {
|
|
68029
68029
|
literalProp.declarations = t.symbol.declarations;
|
|
68030
68030
|
literalProp.valueDeclaration = t.symbol.valueDeclaration;
|
|
@@ -86744,11 +86744,11 @@ function createTypeChecker(host) {
|
|
|
86744
86744
|
if (fileToDirective.has(file.path))
|
|
86745
86745
|
return;
|
|
86746
86746
|
fileToDirective.set(file.path, [key, mode]);
|
|
86747
|
-
for (const { fileName
|
|
86747
|
+
for (const { fileName } of file.referencedFiles) {
|
|
86748
86748
|
const resolvedFile = resolveTripleslashReference(fileName, file.fileName);
|
|
86749
86749
|
const referencedFile = host.getSourceFile(resolvedFile);
|
|
86750
86750
|
if (referencedFile) {
|
|
86751
|
-
addReferencedFilesToTypeDirective(referencedFile, key,
|
|
86751
|
+
addReferencedFilesToTypeDirective(referencedFile, key, mode || file.impliedNodeFormat);
|
|
86752
86752
|
}
|
|
86753
86753
|
}
|
|
86754
86754
|
}
|
|
@@ -136815,7 +136815,14 @@ function addNodeWithRecursiveInitializer(node) {
|
|
|
136815
136815
|
}
|
|
136816
136816
|
}
|
|
136817
136817
|
function hasNavigationBarName(node) {
|
|
136818
|
-
|
|
136818
|
+
const name = getNameOfDeclaration(node);
|
|
136819
|
+
if (name === void 0)
|
|
136820
|
+
return false;
|
|
136821
|
+
if (isComputedPropertyName(name)) {
|
|
136822
|
+
const expression = name.expression;
|
|
136823
|
+
return isEntityNameExpression(expression) || isNumericLiteral(expression) || isStringOrNumericLiteralLike(expression);
|
|
136824
|
+
}
|
|
136825
|
+
return !!name;
|
|
136819
136826
|
}
|
|
136820
136827
|
function addChildrenRecursively(node) {
|
|
136821
136828
|
curCancellationToken.throwIfCancellationRequested();
|
package/lib/typescript.js
CHANGED
|
@@ -58190,7 +58190,7 @@ ${lanes.join("\n")}
|
|
|
58190
58190
|
if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) {
|
|
58191
58191
|
const typeParameter = getHomomorphicTypeVariable(mappedType);
|
|
58192
58192
|
if (typeParameter) {
|
|
58193
|
-
const constraint = getConstraintOfTypeParameter(
|
|
58193
|
+
const constraint = getConstraintOfTypeParameter(typeParameter);
|
|
58194
58194
|
if (constraint && everyType(constraint, isArrayOrTupleType)) {
|
|
58195
58195
|
constraints = append(constraints, getUnionType([numberType, numericStringType]));
|
|
58196
58196
|
}
|
|
@@ -65790,7 +65790,7 @@ ${lanes.join("\n")}
|
|
|
65790
65790
|
}
|
|
65791
65791
|
const name = escapeLeadingUnderscores(t.value);
|
|
65792
65792
|
const literalProp = createSymbol(4 /* Property */, name);
|
|
65793
|
-
literalProp.links.type =
|
|
65793
|
+
literalProp.links.type = unknownType;
|
|
65794
65794
|
if (t.symbol) {
|
|
65795
65795
|
literalProp.declarations = t.symbol.declarations;
|
|
65796
65796
|
literalProp.valueDeclaration = t.symbol.valueDeclaration;
|
|
@@ -84510,11 +84510,11 @@ ${lanes.join("\n")}
|
|
|
84510
84510
|
if (fileToDirective.has(file.path))
|
|
84511
84511
|
return;
|
|
84512
84512
|
fileToDirective.set(file.path, [key, mode]);
|
|
84513
|
-
for (const { fileName
|
|
84513
|
+
for (const { fileName } of file.referencedFiles) {
|
|
84514
84514
|
const resolvedFile = resolveTripleslashReference(fileName, file.fileName);
|
|
84515
84515
|
const referencedFile = host.getSourceFile(resolvedFile);
|
|
84516
84516
|
if (referencedFile) {
|
|
84517
|
-
addReferencedFilesToTypeDirective(referencedFile, key,
|
|
84517
|
+
addReferencedFilesToTypeDirective(referencedFile, key, mode || file.impliedNodeFormat);
|
|
84518
84518
|
}
|
|
84519
84519
|
}
|
|
84520
84520
|
}
|
|
@@ -135190,7 +135190,14 @@ ${lanes.join("\n")}
|
|
|
135190
135190
|
}
|
|
135191
135191
|
}
|
|
135192
135192
|
function hasNavigationBarName(node) {
|
|
135193
|
-
|
|
135193
|
+
const name = getNameOfDeclaration(node);
|
|
135194
|
+
if (name === void 0)
|
|
135195
|
+
return false;
|
|
135196
|
+
if (isComputedPropertyName(name)) {
|
|
135197
|
+
const expression = name.expression;
|
|
135198
|
+
return isEntityNameExpression(expression) || isNumericLiteral(expression) || isStringOrNumericLiteralLike(expression);
|
|
135199
|
+
}
|
|
135200
|
+
return !!name;
|
|
135194
135201
|
}
|
|
135195
135202
|
function addChildrenRecursively(node) {
|
|
135196
135203
|
curCancellationToken.throwIfCancellationRequested();
|
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-55547-8",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"node": "20.1.0",
|
|
114
114
|
"npm": "8.19.4"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "8295db7d378e47abebce7c2871f70ec100e7cb84"
|
|
117
117
|
}
|