@typescript-deploys/pr-build 5.2.0-pr-52112-14 → 5.2.0-pr-54777-9
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 +18 -13
- package/lib/tsserver.js +18 -13
- package/lib/tsserverlibrary.js +18 -13
- package/lib/typescript.js +18 -13
- 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.2";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20230628`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -52160,7 +52160,7 @@ function createTypeChecker(host) {
|
|
|
52160
52160
|
return checkFlags & 2 /* SyntheticProperty */ ? checkFlags & 65536 /* DeferredType */ ? getWriteTypeOfSymbolWithDeferredType(symbol) || getTypeOfSymbolWithDeferredType(symbol) : (
|
|
52161
52161
|
// NOTE: cast to TransientSymbol should be safe because only TransientSymbols can have CheckFlags.SyntheticProperty
|
|
52162
52162
|
symbol.links.writeType || symbol.links.type
|
|
52163
|
-
) : getTypeOfSymbol(symbol);
|
|
52163
|
+
) : removeMissingType(getTypeOfSymbol(symbol), !!(symbol.flags & 16777216 /* Optional */));
|
|
52164
52164
|
}
|
|
52165
52165
|
if (symbol.flags & 98304 /* Accessor */) {
|
|
52166
52166
|
return checkFlags & 1 /* Instantiated */ ? getWriteTypeOfInstantiatedSymbol(symbol) : getWriteTypeOfAccessors(symbol);
|
|
@@ -57062,7 +57062,7 @@ function createTypeChecker(host) {
|
|
|
57062
57062
|
return type;
|
|
57063
57063
|
}
|
|
57064
57064
|
function getStringMappingType(symbol, type) {
|
|
57065
|
-
return type.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapType(type, (t) => getStringMappingType(symbol, t)) : type.flags & 128 /* StringLiteral */ ? getStringLiteralType(applyStringMapping(symbol, type.value)) : type.flags & 134217728 /* TemplateLiteral */ ? applyTemplateStringMapping(symbol, type) : (
|
|
57065
|
+
return type.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapType(type, (t) => getStringMappingType(symbol, t)) : type.flags & 128 /* StringLiteral */ ? getStringLiteralType(applyStringMapping(symbol, type.value)) : type.flags & 134217728 /* TemplateLiteral */ ? getTemplateLiteralType(...applyTemplateStringMapping(symbol, type.texts, type.types)) : (
|
|
57066
57066
|
// Mapping<Mapping<T>> === Mapping<T>
|
|
57067
57067
|
type.flags & 268435456 /* StringMapping */ && symbol === type.symbol ? type : type.flags & (1 /* Any */ | 4 /* String */ | 268435456 /* StringMapping */) || isGenericIndexType(type) ? getStringMappingTypeForGenericType(symbol, type) : (
|
|
57068
57068
|
// This handles Mapping<`${number}`> and Mapping<`${bigint}`>
|
|
@@ -57083,21 +57083,18 @@ function createTypeChecker(host) {
|
|
|
57083
57083
|
}
|
|
57084
57084
|
return str;
|
|
57085
57085
|
}
|
|
57086
|
-
function applyTemplateStringMapping(symbol,
|
|
57087
|
-
const { texts, types } = type;
|
|
57086
|
+
function applyTemplateStringMapping(symbol, texts, types) {
|
|
57088
57087
|
switch (intrinsicTypeKinds.get(symbol.escapedName)) {
|
|
57089
57088
|
case 0 /* Uppercase */:
|
|
57090
|
-
return
|
|
57089
|
+
return [texts.map((t) => t.toUpperCase()), types.map((t) => getStringMappingType(symbol, t))];
|
|
57091
57090
|
case 1 /* Lowercase */:
|
|
57092
|
-
return
|
|
57091
|
+
return [texts.map((t) => t.toLowerCase()), types.map((t) => getStringMappingType(symbol, t))];
|
|
57093
57092
|
case 2 /* Capitalize */:
|
|
57093
|
+
return [texts[0] === "" ? texts : [texts[0].charAt(0).toUpperCase() + texts[0].slice(1), ...texts.slice(1)], texts[0] === "" ? [getStringMappingType(symbol, types[0]), ...types.slice(1)] : types];
|
|
57094
57094
|
case 3 /* Uncapitalize */:
|
|
57095
|
-
return texts[0] === ""
|
|
57096
|
-
[applyStringMapping(symbol, texts[0]), ...texts.slice(1)],
|
|
57097
|
-
types
|
|
57098
|
-
);
|
|
57095
|
+
return [texts[0] === "" ? texts : [texts[0].charAt(0).toLowerCase() + texts[0].slice(1), ...texts.slice(1)], texts[0] === "" ? [getStringMappingType(symbol, types[0]), ...types.slice(1)] : types];
|
|
57099
57096
|
}
|
|
57100
|
-
return
|
|
57097
|
+
return [texts, types];
|
|
57101
57098
|
}
|
|
57102
57099
|
function getStringMappingTypeForGenericType(symbol, type) {
|
|
57103
57100
|
const id = `${getSymbolId(symbol)},${getTypeId(type)}`;
|
|
@@ -66037,7 +66034,15 @@ function createTypeChecker(host) {
|
|
|
66037
66034
|
location = location.parent;
|
|
66038
66035
|
}
|
|
66039
66036
|
if (isExpressionNode(location) && (!isAssignmentTarget(location) || isWriteAccess(location))) {
|
|
66040
|
-
const type = removeOptionalTypeMarker(
|
|
66037
|
+
const type = removeOptionalTypeMarker(
|
|
66038
|
+
isWriteAccess(location) && location.kind === 211 /* PropertyAccessExpression */ ? checkPropertyAccessExpression(
|
|
66039
|
+
location,
|
|
66040
|
+
/*checkMode*/
|
|
66041
|
+
void 0,
|
|
66042
|
+
/*writeOnly*/
|
|
66043
|
+
true
|
|
66044
|
+
) : getTypeOfExpression(location)
|
|
66045
|
+
);
|
|
66041
66046
|
if (getExportSymbolOfValueSymbolIfExported(getNodeLinks(location).resolvedSymbol) === symbol) {
|
|
66042
66047
|
return type;
|
|
66043
66048
|
}
|
package/lib/tsserver.js
CHANGED
|
@@ -2327,7 +2327,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2327
2327
|
|
|
2328
2328
|
// src/compiler/corePublic.ts
|
|
2329
2329
|
var versionMajorMinor = "5.2";
|
|
2330
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2330
|
+
var version = `${versionMajorMinor}.0-insiders.20230628`;
|
|
2331
2331
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2332
2332
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2333
2333
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -56836,7 +56836,7 @@ function createTypeChecker(host) {
|
|
|
56836
56836
|
return checkFlags & 2 /* SyntheticProperty */ ? checkFlags & 65536 /* DeferredType */ ? getWriteTypeOfSymbolWithDeferredType(symbol) || getTypeOfSymbolWithDeferredType(symbol) : (
|
|
56837
56837
|
// NOTE: cast to TransientSymbol should be safe because only TransientSymbols can have CheckFlags.SyntheticProperty
|
|
56838
56838
|
symbol.links.writeType || symbol.links.type
|
|
56839
|
-
) : getTypeOfSymbol(symbol);
|
|
56839
|
+
) : removeMissingType(getTypeOfSymbol(symbol), !!(symbol.flags & 16777216 /* Optional */));
|
|
56840
56840
|
}
|
|
56841
56841
|
if (symbol.flags & 98304 /* Accessor */) {
|
|
56842
56842
|
return checkFlags & 1 /* Instantiated */ ? getWriteTypeOfInstantiatedSymbol(symbol) : getWriteTypeOfAccessors(symbol);
|
|
@@ -61738,7 +61738,7 @@ function createTypeChecker(host) {
|
|
|
61738
61738
|
return type;
|
|
61739
61739
|
}
|
|
61740
61740
|
function getStringMappingType(symbol, type) {
|
|
61741
|
-
return type.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapType(type, (t) => getStringMappingType(symbol, t)) : type.flags & 128 /* StringLiteral */ ? getStringLiteralType(applyStringMapping(symbol, type.value)) : type.flags & 134217728 /* TemplateLiteral */ ? applyTemplateStringMapping(symbol, type) : (
|
|
61741
|
+
return type.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapType(type, (t) => getStringMappingType(symbol, t)) : type.flags & 128 /* StringLiteral */ ? getStringLiteralType(applyStringMapping(symbol, type.value)) : type.flags & 134217728 /* TemplateLiteral */ ? getTemplateLiteralType(...applyTemplateStringMapping(symbol, type.texts, type.types)) : (
|
|
61742
61742
|
// Mapping<Mapping<T>> === Mapping<T>
|
|
61743
61743
|
type.flags & 268435456 /* StringMapping */ && symbol === type.symbol ? type : type.flags & (1 /* Any */ | 4 /* String */ | 268435456 /* StringMapping */) || isGenericIndexType(type) ? getStringMappingTypeForGenericType(symbol, type) : (
|
|
61744
61744
|
// This handles Mapping<`${number}`> and Mapping<`${bigint}`>
|
|
@@ -61759,21 +61759,18 @@ function createTypeChecker(host) {
|
|
|
61759
61759
|
}
|
|
61760
61760
|
return str;
|
|
61761
61761
|
}
|
|
61762
|
-
function applyTemplateStringMapping(symbol,
|
|
61763
|
-
const { texts, types } = type;
|
|
61762
|
+
function applyTemplateStringMapping(symbol, texts, types) {
|
|
61764
61763
|
switch (intrinsicTypeKinds.get(symbol.escapedName)) {
|
|
61765
61764
|
case 0 /* Uppercase */:
|
|
61766
|
-
return
|
|
61765
|
+
return [texts.map((t) => t.toUpperCase()), types.map((t) => getStringMappingType(symbol, t))];
|
|
61767
61766
|
case 1 /* Lowercase */:
|
|
61768
|
-
return
|
|
61767
|
+
return [texts.map((t) => t.toLowerCase()), types.map((t) => getStringMappingType(symbol, t))];
|
|
61769
61768
|
case 2 /* Capitalize */:
|
|
61769
|
+
return [texts[0] === "" ? texts : [texts[0].charAt(0).toUpperCase() + texts[0].slice(1), ...texts.slice(1)], texts[0] === "" ? [getStringMappingType(symbol, types[0]), ...types.slice(1)] : types];
|
|
61770
61770
|
case 3 /* Uncapitalize */:
|
|
61771
|
-
return texts[0] === ""
|
|
61772
|
-
[applyStringMapping(symbol, texts[0]), ...texts.slice(1)],
|
|
61773
|
-
types
|
|
61774
|
-
);
|
|
61771
|
+
return [texts[0] === "" ? texts : [texts[0].charAt(0).toLowerCase() + texts[0].slice(1), ...texts.slice(1)], texts[0] === "" ? [getStringMappingType(symbol, types[0]), ...types.slice(1)] : types];
|
|
61775
61772
|
}
|
|
61776
|
-
return
|
|
61773
|
+
return [texts, types];
|
|
61777
61774
|
}
|
|
61778
61775
|
function getStringMappingTypeForGenericType(symbol, type) {
|
|
61779
61776
|
const id = `${getSymbolId(symbol)},${getTypeId(type)}`;
|
|
@@ -70713,7 +70710,15 @@ function createTypeChecker(host) {
|
|
|
70713
70710
|
location = location.parent;
|
|
70714
70711
|
}
|
|
70715
70712
|
if (isExpressionNode(location) && (!isAssignmentTarget(location) || isWriteAccess(location))) {
|
|
70716
|
-
const type = removeOptionalTypeMarker(
|
|
70713
|
+
const type = removeOptionalTypeMarker(
|
|
70714
|
+
isWriteAccess(location) && location.kind === 211 /* PropertyAccessExpression */ ? checkPropertyAccessExpression(
|
|
70715
|
+
location,
|
|
70716
|
+
/*checkMode*/
|
|
70717
|
+
void 0,
|
|
70718
|
+
/*writeOnly*/
|
|
70719
|
+
true
|
|
70720
|
+
) : getTypeOfExpression(location)
|
|
70721
|
+
);
|
|
70717
70722
|
if (getExportSymbolOfValueSymbolIfExported(getNodeLinks(location).resolvedSymbol) === symbol) {
|
|
70718
70723
|
return type;
|
|
70719
70724
|
}
|
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.2";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230628`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -54603,7 +54603,7 @@ ${lanes.join("\n")}
|
|
|
54603
54603
|
return checkFlags & 2 /* SyntheticProperty */ ? checkFlags & 65536 /* DeferredType */ ? getWriteTypeOfSymbolWithDeferredType(symbol) || getTypeOfSymbolWithDeferredType(symbol) : (
|
|
54604
54604
|
// NOTE: cast to TransientSymbol should be safe because only TransientSymbols can have CheckFlags.SyntheticProperty
|
|
54605
54605
|
symbol.links.writeType || symbol.links.type
|
|
54606
|
-
) : getTypeOfSymbol(symbol);
|
|
54606
|
+
) : removeMissingType(getTypeOfSymbol(symbol), !!(symbol.flags & 16777216 /* Optional */));
|
|
54607
54607
|
}
|
|
54608
54608
|
if (symbol.flags & 98304 /* Accessor */) {
|
|
54609
54609
|
return checkFlags & 1 /* Instantiated */ ? getWriteTypeOfInstantiatedSymbol(symbol) : getWriteTypeOfAccessors(symbol);
|
|
@@ -59505,7 +59505,7 @@ ${lanes.join("\n")}
|
|
|
59505
59505
|
return type;
|
|
59506
59506
|
}
|
|
59507
59507
|
function getStringMappingType(symbol, type) {
|
|
59508
|
-
return type.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapType(type, (t) => getStringMappingType(symbol, t)) : type.flags & 128 /* StringLiteral */ ? getStringLiteralType(applyStringMapping(symbol, type.value)) : type.flags & 134217728 /* TemplateLiteral */ ? applyTemplateStringMapping(symbol, type) : (
|
|
59508
|
+
return type.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapType(type, (t) => getStringMappingType(symbol, t)) : type.flags & 128 /* StringLiteral */ ? getStringLiteralType(applyStringMapping(symbol, type.value)) : type.flags & 134217728 /* TemplateLiteral */ ? getTemplateLiteralType(...applyTemplateStringMapping(symbol, type.texts, type.types)) : (
|
|
59509
59509
|
// Mapping<Mapping<T>> === Mapping<T>
|
|
59510
59510
|
type.flags & 268435456 /* StringMapping */ && symbol === type.symbol ? type : type.flags & (1 /* Any */ | 4 /* String */ | 268435456 /* StringMapping */) || isGenericIndexType(type) ? getStringMappingTypeForGenericType(symbol, type) : (
|
|
59511
59511
|
// This handles Mapping<`${number}`> and Mapping<`${bigint}`>
|
|
@@ -59526,21 +59526,18 @@ ${lanes.join("\n")}
|
|
|
59526
59526
|
}
|
|
59527
59527
|
return str;
|
|
59528
59528
|
}
|
|
59529
|
-
function applyTemplateStringMapping(symbol,
|
|
59530
|
-
const { texts, types } = type;
|
|
59529
|
+
function applyTemplateStringMapping(symbol, texts, types) {
|
|
59531
59530
|
switch (intrinsicTypeKinds.get(symbol.escapedName)) {
|
|
59532
59531
|
case 0 /* Uppercase */:
|
|
59533
|
-
return
|
|
59532
|
+
return [texts.map((t) => t.toUpperCase()), types.map((t) => getStringMappingType(symbol, t))];
|
|
59534
59533
|
case 1 /* Lowercase */:
|
|
59535
|
-
return
|
|
59534
|
+
return [texts.map((t) => t.toLowerCase()), types.map((t) => getStringMappingType(symbol, t))];
|
|
59536
59535
|
case 2 /* Capitalize */:
|
|
59536
|
+
return [texts[0] === "" ? texts : [texts[0].charAt(0).toUpperCase() + texts[0].slice(1), ...texts.slice(1)], texts[0] === "" ? [getStringMappingType(symbol, types[0]), ...types.slice(1)] : types];
|
|
59537
59537
|
case 3 /* Uncapitalize */:
|
|
59538
|
-
return texts[0] === ""
|
|
59539
|
-
[applyStringMapping(symbol, texts[0]), ...texts.slice(1)],
|
|
59540
|
-
types
|
|
59541
|
-
);
|
|
59538
|
+
return [texts[0] === "" ? texts : [texts[0].charAt(0).toLowerCase() + texts[0].slice(1), ...texts.slice(1)], texts[0] === "" ? [getStringMappingType(symbol, types[0]), ...types.slice(1)] : types];
|
|
59542
59539
|
}
|
|
59543
|
-
return
|
|
59540
|
+
return [texts, types];
|
|
59544
59541
|
}
|
|
59545
59542
|
function getStringMappingTypeForGenericType(symbol, type) {
|
|
59546
59543
|
const id = `${getSymbolId(symbol)},${getTypeId(type)}`;
|
|
@@ -68480,7 +68477,15 @@ ${lanes.join("\n")}
|
|
|
68480
68477
|
location = location.parent;
|
|
68481
68478
|
}
|
|
68482
68479
|
if (isExpressionNode(location) && (!isAssignmentTarget(location) || isWriteAccess(location))) {
|
|
68483
|
-
const type = removeOptionalTypeMarker(
|
|
68480
|
+
const type = removeOptionalTypeMarker(
|
|
68481
|
+
isWriteAccess(location) && location.kind === 211 /* PropertyAccessExpression */ ? checkPropertyAccessExpression(
|
|
68482
|
+
location,
|
|
68483
|
+
/*checkMode*/
|
|
68484
|
+
void 0,
|
|
68485
|
+
/*writeOnly*/
|
|
68486
|
+
true
|
|
68487
|
+
) : getTypeOfExpression(location)
|
|
68488
|
+
);
|
|
68484
68489
|
if (getExportSymbolOfValueSymbolIfExported(getNodeLinks(location).resolvedSymbol) === symbol) {
|
|
68485
68490
|
return type;
|
|
68486
68491
|
}
|
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.2";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230628`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -54603,7 +54603,7 @@ ${lanes.join("\n")}
|
|
|
54603
54603
|
return checkFlags & 2 /* SyntheticProperty */ ? checkFlags & 65536 /* DeferredType */ ? getWriteTypeOfSymbolWithDeferredType(symbol) || getTypeOfSymbolWithDeferredType(symbol) : (
|
|
54604
54604
|
// NOTE: cast to TransientSymbol should be safe because only TransientSymbols can have CheckFlags.SyntheticProperty
|
|
54605
54605
|
symbol.links.writeType || symbol.links.type
|
|
54606
|
-
) : getTypeOfSymbol(symbol);
|
|
54606
|
+
) : removeMissingType(getTypeOfSymbol(symbol), !!(symbol.flags & 16777216 /* Optional */));
|
|
54607
54607
|
}
|
|
54608
54608
|
if (symbol.flags & 98304 /* Accessor */) {
|
|
54609
54609
|
return checkFlags & 1 /* Instantiated */ ? getWriteTypeOfInstantiatedSymbol(symbol) : getWriteTypeOfAccessors(symbol);
|
|
@@ -59505,7 +59505,7 @@ ${lanes.join("\n")}
|
|
|
59505
59505
|
return type;
|
|
59506
59506
|
}
|
|
59507
59507
|
function getStringMappingType(symbol, type) {
|
|
59508
|
-
return type.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapType(type, (t) => getStringMappingType(symbol, t)) : type.flags & 128 /* StringLiteral */ ? getStringLiteralType(applyStringMapping(symbol, type.value)) : type.flags & 134217728 /* TemplateLiteral */ ? applyTemplateStringMapping(symbol, type) : (
|
|
59508
|
+
return type.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapType(type, (t) => getStringMappingType(symbol, t)) : type.flags & 128 /* StringLiteral */ ? getStringLiteralType(applyStringMapping(symbol, type.value)) : type.flags & 134217728 /* TemplateLiteral */ ? getTemplateLiteralType(...applyTemplateStringMapping(symbol, type.texts, type.types)) : (
|
|
59509
59509
|
// Mapping<Mapping<T>> === Mapping<T>
|
|
59510
59510
|
type.flags & 268435456 /* StringMapping */ && symbol === type.symbol ? type : type.flags & (1 /* Any */ | 4 /* String */ | 268435456 /* StringMapping */) || isGenericIndexType(type) ? getStringMappingTypeForGenericType(symbol, type) : (
|
|
59511
59511
|
// This handles Mapping<`${number}`> and Mapping<`${bigint}`>
|
|
@@ -59526,21 +59526,18 @@ ${lanes.join("\n")}
|
|
|
59526
59526
|
}
|
|
59527
59527
|
return str;
|
|
59528
59528
|
}
|
|
59529
|
-
function applyTemplateStringMapping(symbol,
|
|
59530
|
-
const { texts, types } = type;
|
|
59529
|
+
function applyTemplateStringMapping(symbol, texts, types) {
|
|
59531
59530
|
switch (intrinsicTypeKinds.get(symbol.escapedName)) {
|
|
59532
59531
|
case 0 /* Uppercase */:
|
|
59533
|
-
return
|
|
59532
|
+
return [texts.map((t) => t.toUpperCase()), types.map((t) => getStringMappingType(symbol, t))];
|
|
59534
59533
|
case 1 /* Lowercase */:
|
|
59535
|
-
return
|
|
59534
|
+
return [texts.map((t) => t.toLowerCase()), types.map((t) => getStringMappingType(symbol, t))];
|
|
59536
59535
|
case 2 /* Capitalize */:
|
|
59536
|
+
return [texts[0] === "" ? texts : [texts[0].charAt(0).toUpperCase() + texts[0].slice(1), ...texts.slice(1)], texts[0] === "" ? [getStringMappingType(symbol, types[0]), ...types.slice(1)] : types];
|
|
59537
59537
|
case 3 /* Uncapitalize */:
|
|
59538
|
-
return texts[0] === ""
|
|
59539
|
-
[applyStringMapping(symbol, texts[0]), ...texts.slice(1)],
|
|
59540
|
-
types
|
|
59541
|
-
);
|
|
59538
|
+
return [texts[0] === "" ? texts : [texts[0].charAt(0).toLowerCase() + texts[0].slice(1), ...texts.slice(1)], texts[0] === "" ? [getStringMappingType(symbol, types[0]), ...types.slice(1)] : types];
|
|
59542
59539
|
}
|
|
59543
|
-
return
|
|
59540
|
+
return [texts, types];
|
|
59544
59541
|
}
|
|
59545
59542
|
function getStringMappingTypeForGenericType(symbol, type) {
|
|
59546
59543
|
const id = `${getSymbolId(symbol)},${getTypeId(type)}`;
|
|
@@ -68480,7 +68477,15 @@ ${lanes.join("\n")}
|
|
|
68480
68477
|
location = location.parent;
|
|
68481
68478
|
}
|
|
68482
68479
|
if (isExpressionNode(location) && (!isAssignmentTarget(location) || isWriteAccess(location))) {
|
|
68483
|
-
const type = removeOptionalTypeMarker(
|
|
68480
|
+
const type = removeOptionalTypeMarker(
|
|
68481
|
+
isWriteAccess(location) && location.kind === 211 /* PropertyAccessExpression */ ? checkPropertyAccessExpression(
|
|
68482
|
+
location,
|
|
68483
|
+
/*checkMode*/
|
|
68484
|
+
void 0,
|
|
68485
|
+
/*writeOnly*/
|
|
68486
|
+
true
|
|
68487
|
+
) : getTypeOfExpression(location)
|
|
68488
|
+
);
|
|
68484
68489
|
if (getExportSymbolOfValueSymbolIfExported(getNodeLinks(location).resolvedSymbol) === symbol) {
|
|
68485
68490
|
return type;
|
|
68486
68491
|
}
|
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.2";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20230628`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
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.2.0-pr-
|
|
5
|
+
"version": "5.2.0-pr-54777-9",
|
|
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": "20.1.0",
|
|
116
116
|
"npm": "8.19.4"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "f3bce69feea5bdb597c5c6f296dcc35b7d0d1273"
|
|
119
119
|
}
|