typescript 5.1.0-dev.20230508 → 5.1.0-dev.20230509
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 +7 -7
- package/lib/tsserver.js +9 -9
- package/lib/tsserverlibrary.js +9 -9
- package/lib/typescript.js +9 -9
- package/lib/typingsInstaller.js +1 -1
- package/package.json +2 -2
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.1";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20230509`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -67647,7 +67647,7 @@ function createTypeChecker(host) {
|
|
|
67647
67647
|
}
|
|
67648
67648
|
return links.immediateTarget;
|
|
67649
67649
|
}
|
|
67650
|
-
function checkObjectLiteral(node, checkMode) {
|
|
67650
|
+
function checkObjectLiteral(node, checkMode = 0 /* Normal */) {
|
|
67651
67651
|
var _a;
|
|
67652
67652
|
const inDestructuringPattern = isAssignmentTarget(node);
|
|
67653
67653
|
checkGrammarObjectLiteralExpression(node, inDestructuringPattern);
|
|
@@ -67730,7 +67730,7 @@ function createTypeChecker(host) {
|
|
|
67730
67730
|
prop.links.target = member;
|
|
67731
67731
|
member = prop;
|
|
67732
67732
|
allPropertiesTable == null ? void 0 : allPropertiesTable.set(prop.escapedName, prop);
|
|
67733
|
-
if (contextualType && checkMode
|
|
67733
|
+
if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && (memberDecl.kind === 302 /* PropertyAssignment */ || memberDecl.kind === 173 /* MethodDeclaration */) && isContextSensitive(memberDecl)) {
|
|
67734
67734
|
const inferenceContext = getInferenceContext(node);
|
|
67735
67735
|
Debug.assert(inferenceContext);
|
|
67736
67736
|
const inferenceNode = memberDecl.kind === 302 /* PropertyAssignment */ ? memberDecl.initializer : memberDecl;
|
|
@@ -67748,7 +67748,7 @@ function createTypeChecker(host) {
|
|
|
67748
67748
|
hasComputedNumberProperty = false;
|
|
67749
67749
|
hasComputedSymbolProperty = false;
|
|
67750
67750
|
}
|
|
67751
|
-
const type = getReducedType(checkExpression(memberDecl.expression));
|
|
67751
|
+
const type = getReducedType(checkExpression(memberDecl.expression, checkMode & 2 /* Inferential */));
|
|
67752
67752
|
if (isValidSpreadType(type)) {
|
|
67753
67753
|
const mergedType = tryMergeUnionOfObjectTypeAndEmptyObject(type, inConstContext);
|
|
67754
67754
|
if (allPropertiesTable) {
|
|
@@ -67889,7 +67889,7 @@ function createTypeChecker(host) {
|
|
|
67889
67889
|
function checkJsxAttribute(node, checkMode) {
|
|
67890
67890
|
return node.initializer ? checkExpressionForMutableLocation(node.initializer, checkMode) : trueType;
|
|
67891
67891
|
}
|
|
67892
|
-
function createJsxAttributesTypeFromAttributesProperty(openingLikeElement, checkMode) {
|
|
67892
|
+
function createJsxAttributesTypeFromAttributesProperty(openingLikeElement, checkMode = 0 /* Normal */) {
|
|
67893
67893
|
const attributes = openingLikeElement.attributes;
|
|
67894
67894
|
const contextualType = getContextualType(attributes, 0 /* None */);
|
|
67895
67895
|
const allAttributesTable = strictNullChecks ? createSymbolTable() : void 0;
|
|
@@ -67924,7 +67924,7 @@ function createTypeChecker(host) {
|
|
|
67924
67924
|
addDeprecatedSuggestion(attributeDecl.name, prop.declarations, attributeDecl.name.escapedText);
|
|
67925
67925
|
}
|
|
67926
67926
|
}
|
|
67927
|
-
if (contextualType && checkMode
|
|
67927
|
+
if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && isContextSensitive(attributeDecl)) {
|
|
67928
67928
|
const inferenceContext = getInferenceContext(attributes);
|
|
67929
67929
|
Debug.assert(inferenceContext);
|
|
67930
67930
|
const inferenceNode = attributeDecl.initializer.expression;
|
|
@@ -67943,7 +67943,7 @@ function createTypeChecker(host) {
|
|
|
67943
67943
|
);
|
|
67944
67944
|
attributesTable = createSymbolTable();
|
|
67945
67945
|
}
|
|
67946
|
-
const exprType = getReducedType(
|
|
67946
|
+
const exprType = getReducedType(checkExpression(attributeDecl.expression, checkMode & 2 /* Inferential */));
|
|
67947
67947
|
if (isTypeAny(exprType)) {
|
|
67948
67948
|
hasSpreadAnyType = true;
|
|
67949
67949
|
}
|
package/lib/tsserver.js
CHANGED
|
@@ -2303,7 +2303,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2303
2303
|
|
|
2304
2304
|
// src/compiler/corePublic.ts
|
|
2305
2305
|
var versionMajorMinor = "5.1";
|
|
2306
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2306
|
+
var version = `${versionMajorMinor}.0-dev.20230509`;
|
|
2307
2307
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2308
2308
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2309
2309
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -72297,7 +72297,7 @@ function createTypeChecker(host) {
|
|
|
72297
72297
|
}
|
|
72298
72298
|
return links.immediateTarget;
|
|
72299
72299
|
}
|
|
72300
|
-
function checkObjectLiteral(node, checkMode) {
|
|
72300
|
+
function checkObjectLiteral(node, checkMode = 0 /* Normal */) {
|
|
72301
72301
|
var _a;
|
|
72302
72302
|
const inDestructuringPattern = isAssignmentTarget(node);
|
|
72303
72303
|
checkGrammarObjectLiteralExpression(node, inDestructuringPattern);
|
|
@@ -72380,7 +72380,7 @@ function createTypeChecker(host) {
|
|
|
72380
72380
|
prop.links.target = member;
|
|
72381
72381
|
member = prop;
|
|
72382
72382
|
allPropertiesTable == null ? void 0 : allPropertiesTable.set(prop.escapedName, prop);
|
|
72383
|
-
if (contextualType && checkMode
|
|
72383
|
+
if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && (memberDecl.kind === 302 /* PropertyAssignment */ || memberDecl.kind === 173 /* MethodDeclaration */) && isContextSensitive(memberDecl)) {
|
|
72384
72384
|
const inferenceContext = getInferenceContext(node);
|
|
72385
72385
|
Debug.assert(inferenceContext);
|
|
72386
72386
|
const inferenceNode = memberDecl.kind === 302 /* PropertyAssignment */ ? memberDecl.initializer : memberDecl;
|
|
@@ -72398,7 +72398,7 @@ function createTypeChecker(host) {
|
|
|
72398
72398
|
hasComputedNumberProperty = false;
|
|
72399
72399
|
hasComputedSymbolProperty = false;
|
|
72400
72400
|
}
|
|
72401
|
-
const type = getReducedType(checkExpression(memberDecl.expression));
|
|
72401
|
+
const type = getReducedType(checkExpression(memberDecl.expression, checkMode & 2 /* Inferential */));
|
|
72402
72402
|
if (isValidSpreadType(type)) {
|
|
72403
72403
|
const mergedType = tryMergeUnionOfObjectTypeAndEmptyObject(type, inConstContext);
|
|
72404
72404
|
if (allPropertiesTable) {
|
|
@@ -72539,7 +72539,7 @@ function createTypeChecker(host) {
|
|
|
72539
72539
|
function checkJsxAttribute(node, checkMode) {
|
|
72540
72540
|
return node.initializer ? checkExpressionForMutableLocation(node.initializer, checkMode) : trueType;
|
|
72541
72541
|
}
|
|
72542
|
-
function createJsxAttributesTypeFromAttributesProperty(openingLikeElement, checkMode) {
|
|
72542
|
+
function createJsxAttributesTypeFromAttributesProperty(openingLikeElement, checkMode = 0 /* Normal */) {
|
|
72543
72543
|
const attributes = openingLikeElement.attributes;
|
|
72544
72544
|
const contextualType = getContextualType2(attributes, 0 /* None */);
|
|
72545
72545
|
const allAttributesTable = strictNullChecks ? createSymbolTable() : void 0;
|
|
@@ -72574,7 +72574,7 @@ function createTypeChecker(host) {
|
|
|
72574
72574
|
addDeprecatedSuggestion(attributeDecl.name, prop.declarations, attributeDecl.name.escapedText);
|
|
72575
72575
|
}
|
|
72576
72576
|
}
|
|
72577
|
-
if (contextualType && checkMode
|
|
72577
|
+
if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && isContextSensitive(attributeDecl)) {
|
|
72578
72578
|
const inferenceContext = getInferenceContext(attributes);
|
|
72579
72579
|
Debug.assert(inferenceContext);
|
|
72580
72580
|
const inferenceNode = attributeDecl.initializer.expression;
|
|
@@ -72593,7 +72593,7 @@ function createTypeChecker(host) {
|
|
|
72593
72593
|
);
|
|
72594
72594
|
attributesTable = createSymbolTable();
|
|
72595
72595
|
}
|
|
72596
|
-
const exprType = getReducedType(
|
|
72596
|
+
const exprType = getReducedType(checkExpression(attributeDecl.expression, checkMode & 2 /* Inferential */));
|
|
72597
72597
|
if (isTypeAny(exprType)) {
|
|
72598
72598
|
hasSpreadAnyType = true;
|
|
72599
72599
|
}
|
|
@@ -165143,12 +165143,12 @@ function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, so
|
|
|
165143
165143
|
}
|
|
165144
165144
|
if (symbol.flags & 2097152 /* Alias */) {
|
|
165145
165145
|
prefixNextMeaning();
|
|
165146
|
-
if (!hasAddedSymbolInfo) {
|
|
165146
|
+
if (!hasAddedSymbolInfo || documentation.length === 0 && tags.length === 0) {
|
|
165147
165147
|
const resolvedSymbol = typeChecker.getAliasedSymbol(symbol);
|
|
165148
165148
|
if (resolvedSymbol !== symbol && resolvedSymbol.declarations && resolvedSymbol.declarations.length > 0) {
|
|
165149
165149
|
const resolvedNode = resolvedSymbol.declarations[0];
|
|
165150
165150
|
const declarationName = getNameOfDeclaration(resolvedNode);
|
|
165151
|
-
if (declarationName) {
|
|
165151
|
+
if (declarationName && !hasAddedSymbolInfo) {
|
|
165152
165152
|
const isExternalModuleDeclaration = isModuleWithStringLiteralName(resolvedNode) && hasSyntacticModifier(resolvedNode, 2 /* Ambient */);
|
|
165153
165153
|
const shouldUseAliasName = symbol.name !== "default" && !isExternalModuleDeclaration;
|
|
165154
165154
|
const resolvedInfo = getSymbolDisplayPartsDocumentationAndSymbolKind(
|
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.1";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20230509`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -70089,7 +70089,7 @@ ${lanes.join("\n")}
|
|
|
70089
70089
|
}
|
|
70090
70090
|
return links.immediateTarget;
|
|
70091
70091
|
}
|
|
70092
|
-
function checkObjectLiteral(node, checkMode) {
|
|
70092
|
+
function checkObjectLiteral(node, checkMode = 0 /* Normal */) {
|
|
70093
70093
|
var _a;
|
|
70094
70094
|
const inDestructuringPattern = isAssignmentTarget(node);
|
|
70095
70095
|
checkGrammarObjectLiteralExpression(node, inDestructuringPattern);
|
|
@@ -70172,7 +70172,7 @@ ${lanes.join("\n")}
|
|
|
70172
70172
|
prop.links.target = member;
|
|
70173
70173
|
member = prop;
|
|
70174
70174
|
allPropertiesTable == null ? void 0 : allPropertiesTable.set(prop.escapedName, prop);
|
|
70175
|
-
if (contextualType && checkMode
|
|
70175
|
+
if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && (memberDecl.kind === 302 /* PropertyAssignment */ || memberDecl.kind === 173 /* MethodDeclaration */) && isContextSensitive(memberDecl)) {
|
|
70176
70176
|
const inferenceContext = getInferenceContext(node);
|
|
70177
70177
|
Debug.assert(inferenceContext);
|
|
70178
70178
|
const inferenceNode = memberDecl.kind === 302 /* PropertyAssignment */ ? memberDecl.initializer : memberDecl;
|
|
@@ -70190,7 +70190,7 @@ ${lanes.join("\n")}
|
|
|
70190
70190
|
hasComputedNumberProperty = false;
|
|
70191
70191
|
hasComputedSymbolProperty = false;
|
|
70192
70192
|
}
|
|
70193
|
-
const type = getReducedType(checkExpression(memberDecl.expression));
|
|
70193
|
+
const type = getReducedType(checkExpression(memberDecl.expression, checkMode & 2 /* Inferential */));
|
|
70194
70194
|
if (isValidSpreadType(type)) {
|
|
70195
70195
|
const mergedType = tryMergeUnionOfObjectTypeAndEmptyObject(type, inConstContext);
|
|
70196
70196
|
if (allPropertiesTable) {
|
|
@@ -70331,7 +70331,7 @@ ${lanes.join("\n")}
|
|
|
70331
70331
|
function checkJsxAttribute(node, checkMode) {
|
|
70332
70332
|
return node.initializer ? checkExpressionForMutableLocation(node.initializer, checkMode) : trueType;
|
|
70333
70333
|
}
|
|
70334
|
-
function createJsxAttributesTypeFromAttributesProperty(openingLikeElement, checkMode) {
|
|
70334
|
+
function createJsxAttributesTypeFromAttributesProperty(openingLikeElement, checkMode = 0 /* Normal */) {
|
|
70335
70335
|
const attributes = openingLikeElement.attributes;
|
|
70336
70336
|
const contextualType = getContextualType2(attributes, 0 /* None */);
|
|
70337
70337
|
const allAttributesTable = strictNullChecks ? createSymbolTable() : void 0;
|
|
@@ -70366,7 +70366,7 @@ ${lanes.join("\n")}
|
|
|
70366
70366
|
addDeprecatedSuggestion(attributeDecl.name, prop.declarations, attributeDecl.name.escapedText);
|
|
70367
70367
|
}
|
|
70368
70368
|
}
|
|
70369
|
-
if (contextualType && checkMode
|
|
70369
|
+
if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && isContextSensitive(attributeDecl)) {
|
|
70370
70370
|
const inferenceContext = getInferenceContext(attributes);
|
|
70371
70371
|
Debug.assert(inferenceContext);
|
|
70372
70372
|
const inferenceNode = attributeDecl.initializer.expression;
|
|
@@ -70385,7 +70385,7 @@ ${lanes.join("\n")}
|
|
|
70385
70385
|
);
|
|
70386
70386
|
attributesTable = createSymbolTable();
|
|
70387
70387
|
}
|
|
70388
|
-
const exprType = getReducedType(
|
|
70388
|
+
const exprType = getReducedType(checkExpression(attributeDecl.expression, checkMode & 2 /* Inferential */));
|
|
70389
70389
|
if (isTypeAny(exprType)) {
|
|
70390
70390
|
hasSpreadAnyType = true;
|
|
70391
70391
|
}
|
|
@@ -164583,12 +164583,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
164583
164583
|
}
|
|
164584
164584
|
if (symbol.flags & 2097152 /* Alias */) {
|
|
164585
164585
|
prefixNextMeaning();
|
|
164586
|
-
if (!hasAddedSymbolInfo) {
|
|
164586
|
+
if (!hasAddedSymbolInfo || documentation.length === 0 && tags.length === 0) {
|
|
164587
164587
|
const resolvedSymbol = typeChecker.getAliasedSymbol(symbol);
|
|
164588
164588
|
if (resolvedSymbol !== symbol && resolvedSymbol.declarations && resolvedSymbol.declarations.length > 0) {
|
|
164589
164589
|
const resolvedNode = resolvedSymbol.declarations[0];
|
|
164590
164590
|
const declarationName = getNameOfDeclaration(resolvedNode);
|
|
164591
|
-
if (declarationName) {
|
|
164591
|
+
if (declarationName && !hasAddedSymbolInfo) {
|
|
164592
164592
|
const isExternalModuleDeclaration = isModuleWithStringLiteralName(resolvedNode) && hasSyntacticModifier(resolvedNode, 2 /* Ambient */);
|
|
164593
164593
|
const shouldUseAliasName = symbol.name !== "default" && !isExternalModuleDeclaration;
|
|
164594
164594
|
const resolvedInfo = getSymbolDisplayPartsDocumentationAndSymbolKind(
|
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.1";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20230509`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -70089,7 +70089,7 @@ ${lanes.join("\n")}
|
|
|
70089
70089
|
}
|
|
70090
70090
|
return links.immediateTarget;
|
|
70091
70091
|
}
|
|
70092
|
-
function checkObjectLiteral(node, checkMode) {
|
|
70092
|
+
function checkObjectLiteral(node, checkMode = 0 /* Normal */) {
|
|
70093
70093
|
var _a;
|
|
70094
70094
|
const inDestructuringPattern = isAssignmentTarget(node);
|
|
70095
70095
|
checkGrammarObjectLiteralExpression(node, inDestructuringPattern);
|
|
@@ -70172,7 +70172,7 @@ ${lanes.join("\n")}
|
|
|
70172
70172
|
prop.links.target = member;
|
|
70173
70173
|
member = prop;
|
|
70174
70174
|
allPropertiesTable == null ? void 0 : allPropertiesTable.set(prop.escapedName, prop);
|
|
70175
|
-
if (contextualType && checkMode
|
|
70175
|
+
if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && (memberDecl.kind === 302 /* PropertyAssignment */ || memberDecl.kind === 173 /* MethodDeclaration */) && isContextSensitive(memberDecl)) {
|
|
70176
70176
|
const inferenceContext = getInferenceContext(node);
|
|
70177
70177
|
Debug.assert(inferenceContext);
|
|
70178
70178
|
const inferenceNode = memberDecl.kind === 302 /* PropertyAssignment */ ? memberDecl.initializer : memberDecl;
|
|
@@ -70190,7 +70190,7 @@ ${lanes.join("\n")}
|
|
|
70190
70190
|
hasComputedNumberProperty = false;
|
|
70191
70191
|
hasComputedSymbolProperty = false;
|
|
70192
70192
|
}
|
|
70193
|
-
const type = getReducedType(checkExpression(memberDecl.expression));
|
|
70193
|
+
const type = getReducedType(checkExpression(memberDecl.expression, checkMode & 2 /* Inferential */));
|
|
70194
70194
|
if (isValidSpreadType(type)) {
|
|
70195
70195
|
const mergedType = tryMergeUnionOfObjectTypeAndEmptyObject(type, inConstContext);
|
|
70196
70196
|
if (allPropertiesTable) {
|
|
@@ -70331,7 +70331,7 @@ ${lanes.join("\n")}
|
|
|
70331
70331
|
function checkJsxAttribute(node, checkMode) {
|
|
70332
70332
|
return node.initializer ? checkExpressionForMutableLocation(node.initializer, checkMode) : trueType;
|
|
70333
70333
|
}
|
|
70334
|
-
function createJsxAttributesTypeFromAttributesProperty(openingLikeElement, checkMode) {
|
|
70334
|
+
function createJsxAttributesTypeFromAttributesProperty(openingLikeElement, checkMode = 0 /* Normal */) {
|
|
70335
70335
|
const attributes = openingLikeElement.attributes;
|
|
70336
70336
|
const contextualType = getContextualType2(attributes, 0 /* None */);
|
|
70337
70337
|
const allAttributesTable = strictNullChecks ? createSymbolTable() : void 0;
|
|
@@ -70366,7 +70366,7 @@ ${lanes.join("\n")}
|
|
|
70366
70366
|
addDeprecatedSuggestion(attributeDecl.name, prop.declarations, attributeDecl.name.escapedText);
|
|
70367
70367
|
}
|
|
70368
70368
|
}
|
|
70369
|
-
if (contextualType && checkMode
|
|
70369
|
+
if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && isContextSensitive(attributeDecl)) {
|
|
70370
70370
|
const inferenceContext = getInferenceContext(attributes);
|
|
70371
70371
|
Debug.assert(inferenceContext);
|
|
70372
70372
|
const inferenceNode = attributeDecl.initializer.expression;
|
|
@@ -70385,7 +70385,7 @@ ${lanes.join("\n")}
|
|
|
70385
70385
|
);
|
|
70386
70386
|
attributesTable = createSymbolTable();
|
|
70387
70387
|
}
|
|
70388
|
-
const exprType = getReducedType(
|
|
70388
|
+
const exprType = getReducedType(checkExpression(attributeDecl.expression, checkMode & 2 /* Inferential */));
|
|
70389
70389
|
if (isTypeAny(exprType)) {
|
|
70390
70390
|
hasSpreadAnyType = true;
|
|
70391
70391
|
}
|
|
@@ -164598,12 +164598,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
164598
164598
|
}
|
|
164599
164599
|
if (symbol.flags & 2097152 /* Alias */) {
|
|
164600
164600
|
prefixNextMeaning();
|
|
164601
|
-
if (!hasAddedSymbolInfo) {
|
|
164601
|
+
if (!hasAddedSymbolInfo || documentation.length === 0 && tags.length === 0) {
|
|
164602
164602
|
const resolvedSymbol = typeChecker.getAliasedSymbol(symbol);
|
|
164603
164603
|
if (resolvedSymbol !== symbol && resolvedSymbol.declarations && resolvedSymbol.declarations.length > 0) {
|
|
164604
164604
|
const resolvedNode = resolvedSymbol.declarations[0];
|
|
164605
164605
|
const declarationName = getNameOfDeclaration(resolvedNode);
|
|
164606
|
-
if (declarationName) {
|
|
164606
|
+
if (declarationName && !hasAddedSymbolInfo) {
|
|
164607
164607
|
const isExternalModuleDeclaration = isModuleWithStringLiteralName(resolvedNode) && hasSyntacticModifier(resolvedNode, 2 /* Ambient */);
|
|
164608
164608
|
const shouldUseAliasName = symbol.name !== "default" && !isExternalModuleDeclaration;
|
|
164609
164609
|
const resolvedInfo = getSymbolDisplayPartsDocumentationAndSymbolKind(
|
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.1";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20230509`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
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": "5.1.0-dev.
|
|
5
|
+
"version": "5.1.0-dev.20230509",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"node": "14.21.1",
|
|
116
116
|
"npm": "8.19.3"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "2291afc187359593f9926195f3b2d683ccd0e675"
|
|
119
119
|
}
|