@typescript-deploys/pr-build 5.0.0-pr-52372-4 → 5.0.0-pr-52244-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 +1 -10
- package/lib/tsserver.js +4 -12
- package/lib/tsserverlibrary.js +4 -12
- package/lib/typescript.js +4 -12
- package/lib/typingsInstaller.js +1 -10
- package/package.json +1 -1
package/lib/tsc.js
CHANGED
|
@@ -27432,12 +27432,7 @@ var Parser;
|
|
|
27432
27432
|
const name = parseIdentifier();
|
|
27433
27433
|
let constraint;
|
|
27434
27434
|
let expression;
|
|
27435
|
-
if (parseOptional(94 /* ExtendsKeyword */)
|
|
27436
|
-
if (token() === 58 /* ColonToken */) {
|
|
27437
|
-
parseErrorAtCurrentToken(Diagnostics.Invalid_character);
|
|
27438
|
-
nextToken();
|
|
27439
|
-
constraint = parseType();
|
|
27440
|
-
}
|
|
27435
|
+
if (parseOptional(94 /* ExtendsKeyword */)) {
|
|
27441
27436
|
if (isStartOfType() || !isStartOfExpression()) {
|
|
27442
27437
|
constraint = parseType();
|
|
27443
27438
|
} else {
|
|
@@ -27724,10 +27719,6 @@ var Parser;
|
|
|
27724
27719
|
function parseObjectTypeMembers() {
|
|
27725
27720
|
let members;
|
|
27726
27721
|
if (parseExpected(18 /* OpenBraceToken */)) {
|
|
27727
|
-
if (token() === 51 /* BarToken */) {
|
|
27728
|
-
parseErrorAtCurrentToken(Diagnostics.Invalid_character);
|
|
27729
|
-
nextToken();
|
|
27730
|
-
}
|
|
27731
27722
|
members = parseList(ParsingContext.TypeMembers, parseTypeMember);
|
|
27732
27723
|
parseExpected(19 /* CloseBraceToken */);
|
|
27733
27724
|
} else {
|
package/lib/tsserver.js
CHANGED
|
@@ -31853,12 +31853,7 @@ var Parser;
|
|
|
31853
31853
|
const name = parseIdentifier();
|
|
31854
31854
|
let constraint;
|
|
31855
31855
|
let expression;
|
|
31856
|
-
if (parseOptional(94 /* ExtendsKeyword */)
|
|
31857
|
-
if (token() === 58 /* ColonToken */) {
|
|
31858
|
-
parseErrorAtCurrentToken(Diagnostics.Invalid_character);
|
|
31859
|
-
nextToken();
|
|
31860
|
-
constraint = parseType();
|
|
31861
|
-
}
|
|
31856
|
+
if (parseOptional(94 /* ExtendsKeyword */)) {
|
|
31862
31857
|
if (isStartOfType() || !isStartOfExpression()) {
|
|
31863
31858
|
constraint = parseType();
|
|
31864
31859
|
} else {
|
|
@@ -32145,10 +32140,6 @@ var Parser;
|
|
|
32145
32140
|
function parseObjectTypeMembers() {
|
|
32146
32141
|
let members;
|
|
32147
32142
|
if (parseExpected(18 /* OpenBraceToken */)) {
|
|
32148
|
-
if (token() === 51 /* BarToken */) {
|
|
32149
|
-
parseErrorAtCurrentToken(Diagnostics.Invalid_character);
|
|
32150
|
-
nextToken();
|
|
32151
|
-
}
|
|
32152
32143
|
members = parseList(ParsingContext.TypeMembers, parseTypeMember);
|
|
32153
32144
|
parseExpected(19 /* CloseBraceToken */);
|
|
32154
32145
|
} else {
|
|
@@ -164761,15 +164752,16 @@ function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, so
|
|
|
164761
164752
|
writeTypeParametersOfSymbol(symbol, sourceFile);
|
|
164762
164753
|
}
|
|
164763
164754
|
if (symbolFlags & 524288 /* TypeAlias */ && semanticMeaning & 2 /* Type */) {
|
|
164755
|
+
const exportSymbol = typeChecker.getExportSymbolOfSymbol(symbol);
|
|
164764
164756
|
prefixNextMeaning();
|
|
164765
164757
|
displayParts.push(keywordPart(154 /* TypeKeyword */));
|
|
164766
164758
|
displayParts.push(spacePart());
|
|
164767
164759
|
addFullSymbolName(symbol);
|
|
164768
|
-
writeTypeParametersOfSymbol(
|
|
164760
|
+
writeTypeParametersOfSymbol(exportSymbol, sourceFile);
|
|
164769
164761
|
displayParts.push(spacePart());
|
|
164770
164762
|
displayParts.push(operatorPart(63 /* EqualsToken */));
|
|
164771
164763
|
displayParts.push(spacePart());
|
|
164772
|
-
addRange(displayParts, typeToDisplayParts(typeChecker, isConstTypeReference(location.parent) ? typeChecker.getTypeAtLocation(location.parent) : typeChecker.getDeclaredTypeOfSymbol(
|
|
164764
|
+
addRange(displayParts, typeToDisplayParts(typeChecker, isConstTypeReference(location.parent) ? typeChecker.getTypeAtLocation(location.parent) : typeChecker.getDeclaredTypeOfSymbol(exportSymbol), enclosingDeclaration, 8388608 /* InTypeAlias */));
|
|
164773
164765
|
}
|
|
164774
164766
|
if (symbolFlags & 384 /* Enum */) {
|
|
164775
164767
|
prefixNextMeaning();
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -29885,12 +29885,7 @@ ${lanes.join("\n")}
|
|
|
29885
29885
|
const name = parseIdentifier();
|
|
29886
29886
|
let constraint;
|
|
29887
29887
|
let expression;
|
|
29888
|
-
if (parseOptional(94 /* ExtendsKeyword */)
|
|
29889
|
-
if (token() === 58 /* ColonToken */) {
|
|
29890
|
-
parseErrorAtCurrentToken(Diagnostics.Invalid_character);
|
|
29891
|
-
nextToken();
|
|
29892
|
-
constraint = parseType();
|
|
29893
|
-
}
|
|
29888
|
+
if (parseOptional(94 /* ExtendsKeyword */)) {
|
|
29894
29889
|
if (isStartOfType() || !isStartOfExpression()) {
|
|
29895
29890
|
constraint = parseType();
|
|
29896
29891
|
} else {
|
|
@@ -30177,10 +30172,6 @@ ${lanes.join("\n")}
|
|
|
30177
30172
|
function parseObjectTypeMembers() {
|
|
30178
30173
|
let members;
|
|
30179
30174
|
if (parseExpected(18 /* OpenBraceToken */)) {
|
|
30180
|
-
if (token() === 51 /* BarToken */) {
|
|
30181
|
-
parseErrorAtCurrentToken(Diagnostics.Invalid_character);
|
|
30182
|
-
nextToken();
|
|
30183
|
-
}
|
|
30184
30175
|
members = parseList(ParsingContext.TypeMembers, parseTypeMember);
|
|
30185
30176
|
parseExpected(19 /* CloseBraceToken */);
|
|
30186
30177
|
} else {
|
|
@@ -161793,15 +161784,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
161793
161784
|
writeTypeParametersOfSymbol(symbol, sourceFile);
|
|
161794
161785
|
}
|
|
161795
161786
|
if (symbolFlags & 524288 /* TypeAlias */ && semanticMeaning & 2 /* Type */) {
|
|
161787
|
+
const exportSymbol = typeChecker.getExportSymbolOfSymbol(symbol);
|
|
161796
161788
|
prefixNextMeaning();
|
|
161797
161789
|
displayParts.push(keywordPart(154 /* TypeKeyword */));
|
|
161798
161790
|
displayParts.push(spacePart());
|
|
161799
161791
|
addFullSymbolName(symbol);
|
|
161800
|
-
writeTypeParametersOfSymbol(
|
|
161792
|
+
writeTypeParametersOfSymbol(exportSymbol, sourceFile);
|
|
161801
161793
|
displayParts.push(spacePart());
|
|
161802
161794
|
displayParts.push(operatorPart(63 /* EqualsToken */));
|
|
161803
161795
|
displayParts.push(spacePart());
|
|
161804
|
-
addRange(displayParts, typeToDisplayParts(typeChecker, isConstTypeReference(location.parent) ? typeChecker.getTypeAtLocation(location.parent) : typeChecker.getDeclaredTypeOfSymbol(
|
|
161796
|
+
addRange(displayParts, typeToDisplayParts(typeChecker, isConstTypeReference(location.parent) ? typeChecker.getTypeAtLocation(location.parent) : typeChecker.getDeclaredTypeOfSymbol(exportSymbol), enclosingDeclaration, 8388608 /* InTypeAlias */));
|
|
161805
161797
|
}
|
|
161806
161798
|
if (symbolFlags & 384 /* Enum */) {
|
|
161807
161799
|
prefixNextMeaning();
|
package/lib/typescript.js
CHANGED
|
@@ -29885,12 +29885,7 @@ ${lanes.join("\n")}
|
|
|
29885
29885
|
const name = parseIdentifier();
|
|
29886
29886
|
let constraint;
|
|
29887
29887
|
let expression;
|
|
29888
|
-
if (parseOptional(94 /* ExtendsKeyword */)
|
|
29889
|
-
if (token() === 58 /* ColonToken */) {
|
|
29890
|
-
parseErrorAtCurrentToken(Diagnostics.Invalid_character);
|
|
29891
|
-
nextToken();
|
|
29892
|
-
constraint = parseType();
|
|
29893
|
-
}
|
|
29888
|
+
if (parseOptional(94 /* ExtendsKeyword */)) {
|
|
29894
29889
|
if (isStartOfType() || !isStartOfExpression()) {
|
|
29895
29890
|
constraint = parseType();
|
|
29896
29891
|
} else {
|
|
@@ -30177,10 +30172,6 @@ ${lanes.join("\n")}
|
|
|
30177
30172
|
function parseObjectTypeMembers() {
|
|
30178
30173
|
let members;
|
|
30179
30174
|
if (parseExpected(18 /* OpenBraceToken */)) {
|
|
30180
|
-
if (token() === 51 /* BarToken */) {
|
|
30181
|
-
parseErrorAtCurrentToken(Diagnostics.Invalid_character);
|
|
30182
|
-
nextToken();
|
|
30183
|
-
}
|
|
30184
30175
|
members = parseList(ParsingContext.TypeMembers, parseTypeMember);
|
|
30185
30176
|
parseExpected(19 /* CloseBraceToken */);
|
|
30186
30177
|
} else {
|
|
@@ -161807,15 +161798,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
161807
161798
|
writeTypeParametersOfSymbol(symbol, sourceFile);
|
|
161808
161799
|
}
|
|
161809
161800
|
if (symbolFlags & 524288 /* TypeAlias */ && semanticMeaning & 2 /* Type */) {
|
|
161801
|
+
const exportSymbol = typeChecker.getExportSymbolOfSymbol(symbol);
|
|
161810
161802
|
prefixNextMeaning();
|
|
161811
161803
|
displayParts.push(keywordPart(154 /* TypeKeyword */));
|
|
161812
161804
|
displayParts.push(spacePart());
|
|
161813
161805
|
addFullSymbolName(symbol);
|
|
161814
|
-
writeTypeParametersOfSymbol(
|
|
161806
|
+
writeTypeParametersOfSymbol(exportSymbol, sourceFile);
|
|
161815
161807
|
displayParts.push(spacePart());
|
|
161816
161808
|
displayParts.push(operatorPart(63 /* EqualsToken */));
|
|
161817
161809
|
displayParts.push(spacePart());
|
|
161818
|
-
addRange(displayParts, typeToDisplayParts(typeChecker, isConstTypeReference(location.parent) ? typeChecker.getTypeAtLocation(location.parent) : typeChecker.getDeclaredTypeOfSymbol(
|
|
161810
|
+
addRange(displayParts, typeToDisplayParts(typeChecker, isConstTypeReference(location.parent) ? typeChecker.getTypeAtLocation(location.parent) : typeChecker.getDeclaredTypeOfSymbol(exportSymbol), enclosingDeclaration, 8388608 /* InTypeAlias */));
|
|
161819
161811
|
}
|
|
161820
161812
|
if (symbolFlags & 384 /* Enum */) {
|
|
161821
161813
|
prefixNextMeaning();
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -20705,12 +20705,7 @@ var Parser;
|
|
|
20705
20705
|
const name = parseIdentifier();
|
|
20706
20706
|
let constraint;
|
|
20707
20707
|
let expression;
|
|
20708
|
-
if (parseOptional(94 /* ExtendsKeyword */)
|
|
20709
|
-
if (token() === 58 /* ColonToken */) {
|
|
20710
|
-
parseErrorAtCurrentToken(Diagnostics.Invalid_character);
|
|
20711
|
-
nextToken();
|
|
20712
|
-
constraint = parseType();
|
|
20713
|
-
}
|
|
20708
|
+
if (parseOptional(94 /* ExtendsKeyword */)) {
|
|
20714
20709
|
if (isStartOfType() || !isStartOfExpression()) {
|
|
20715
20710
|
constraint = parseType();
|
|
20716
20711
|
} else {
|
|
@@ -20997,10 +20992,6 @@ var Parser;
|
|
|
20997
20992
|
function parseObjectTypeMembers() {
|
|
20998
20993
|
let members;
|
|
20999
20994
|
if (parseExpected(18 /* OpenBraceToken */)) {
|
|
21000
|
-
if (token() === 51 /* BarToken */) {
|
|
21001
|
-
parseErrorAtCurrentToken(Diagnostics.Invalid_character);
|
|
21002
|
-
nextToken();
|
|
21003
|
-
}
|
|
21004
20995
|
members = parseList(ParsingContext.TypeMembers, parseTypeMember);
|
|
21005
20996
|
parseExpected(19 /* CloseBraceToken */);
|
|
21006
20997
|
} else {
|
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-52244-8",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|