@typescript-deploys/pr-build 5.3.0-pr-56140-8 → 5.3.0-pr-56161-5
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 +29 -21
- package/lib/tsserver.js +29 -21
- package/lib/typescript.js +29 -21
- package/lib/typingsInstaller.js +2 -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.3";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20231020`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -6653,6 +6653,7 @@ var Diagnostics = {
|
|
|
6653
6653
|
Excessive_complexity_comparing_types_0_and_1: diag(2859, 1 /* Error */, "Excessive_complexity_comparing_types_0_and_1_2859", "Excessive complexity comparing types '{0}' and '{1}'."),
|
|
6654
6654
|
The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method: diag(2860, 1 /* Error */, "The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860", "The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),
|
|
6655
6655
|
An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression: diag(2861, 1 /* Error */, "An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861", "An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),
|
|
6656
|
+
Type_0_is_generic_and_can_only_be_indexed_for_reading: diag(2862, 1 /* Error */, "Type_0_is_generic_and_can_only_be_indexed_for_reading_2862", "Type '{0}' is generic and can only be indexed for reading."),
|
|
6656
6657
|
Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
|
|
6657
6658
|
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
|
|
6658
6659
|
Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
|
|
@@ -23693,17 +23694,18 @@ var asyncGeneratorHelper = {
|
|
|
23693
23694
|
scoped: false,
|
|
23694
23695
|
dependencies: [awaitHelper],
|
|
23695
23696
|
text: `
|
|
23696
|
-
|
|
23697
|
-
|
|
23698
|
-
|
|
23699
|
-
|
|
23700
|
-
|
|
23701
|
-
|
|
23702
|
-
|
|
23703
|
-
|
|
23704
|
-
|
|
23705
|
-
|
|
23706
|
-
}
|
|
23697
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
23698
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
23699
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
23700
|
+
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
23701
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
23702
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
23703
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
23704
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
23705
|
+
function fulfill(value) { resume("next", value); }
|
|
23706
|
+
function reject(value) { resume("throw", value); }
|
|
23707
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
23708
|
+
};`
|
|
23707
23709
|
};
|
|
23708
23710
|
var asyncDelegator = {
|
|
23709
23711
|
name: "typescript:asyncDelegator",
|
|
@@ -57653,7 +57655,11 @@ function createTypeChecker(host) {
|
|
|
57653
57655
|
if (indexInfo) {
|
|
57654
57656
|
if (accessFlags & 2 /* NoIndexSignatures */ && indexInfo.keyType !== numberType) {
|
|
57655
57657
|
if (accessExpression) {
|
|
57656
|
-
|
|
57658
|
+
if (accessFlags & 4 /* Writing */) {
|
|
57659
|
+
error(accessExpression, Diagnostics.Type_0_is_generic_and_can_only_be_indexed_for_reading, typeToString(originalObjectType));
|
|
57660
|
+
} else {
|
|
57661
|
+
error(accessExpression, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(originalObjectType));
|
|
57662
|
+
}
|
|
57657
57663
|
}
|
|
57658
57664
|
return void 0;
|
|
57659
57665
|
}
|
|
@@ -61099,13 +61105,13 @@ function createTypeChecker(host) {
|
|
|
61099
61105
|
if (recursionFlags & 1 /* Source */) {
|
|
61100
61106
|
sourceStack[sourceDepth] = source2;
|
|
61101
61107
|
sourceDepth++;
|
|
61102
|
-
if (!(expandingFlags & 1 /* Source */) && isDeeplyNestedType(source2, sourceStack, sourceDepth
|
|
61108
|
+
if (!(expandingFlags & 1 /* Source */) && isDeeplyNestedType(source2, sourceStack, sourceDepth))
|
|
61103
61109
|
expandingFlags |= 1 /* Source */;
|
|
61104
61110
|
}
|
|
61105
61111
|
if (recursionFlags & 2 /* Target */) {
|
|
61106
61112
|
targetStack[targetDepth] = target2;
|
|
61107
61113
|
targetDepth++;
|
|
61108
|
-
if (!(expandingFlags & 2 /* Target */) && isDeeplyNestedType(target2, targetStack, targetDepth
|
|
61114
|
+
if (!(expandingFlags & 2 /* Target */) && isDeeplyNestedType(target2, targetStack, targetDepth))
|
|
61109
61115
|
expandingFlags |= 2 /* Target */;
|
|
61110
61116
|
}
|
|
61111
61117
|
let originalHandler;
|
|
@@ -62724,7 +62730,7 @@ function createTypeChecker(host) {
|
|
|
62724
62730
|
function isClassDerivedFromDeclaringClasses(checkClass, prop, writing) {
|
|
62725
62731
|
return forEachProperty(prop, (p) => getDeclarationModifierFlagsFromSymbol(p, writing) & 16 /* Protected */ ? !hasBaseType(checkClass, getDeclaringClass(p)) : false) ? void 0 : checkClass;
|
|
62726
62732
|
}
|
|
62727
|
-
function isDeeplyNestedType(type, stack, depth, maxDepth) {
|
|
62733
|
+
function isDeeplyNestedType(type, stack, depth, maxDepth = 3) {
|
|
62728
62734
|
if (depth >= maxDepth) {
|
|
62729
62735
|
if (type.flags & 2097152 /* Intersection */) {
|
|
62730
62736
|
return some(type.types, (t) => isDeeplyNestedType(t, stack, depth, maxDepth));
|
|
@@ -65930,13 +65936,15 @@ function createTypeChecker(host) {
|
|
|
65930
65936
|
return void 0;
|
|
65931
65937
|
}
|
|
65932
65938
|
function getDiscriminantPropertyAccess(expr, computedType) {
|
|
65933
|
-
|
|
65934
|
-
if (type.flags & 1048576 /* Union */) {
|
|
65939
|
+
if (declaredType.flags & 1048576 /* Union */ || computedType.flags & 1048576 /* Union */) {
|
|
65935
65940
|
const access = getCandidateDiscriminantPropertyAccess(expr);
|
|
65936
65941
|
if (access) {
|
|
65937
65942
|
const name = getAccessedPropertyName(access);
|
|
65938
|
-
if (name
|
|
65939
|
-
|
|
65943
|
+
if (name) {
|
|
65944
|
+
const type = declaredType.flags & 1048576 /* Union */ && isTypeSubsetOf(computedType, declaredType) ? declaredType : computedType;
|
|
65945
|
+
if (isDiscriminantProperty(type, name)) {
|
|
65946
|
+
return access;
|
|
65947
|
+
}
|
|
65940
65948
|
}
|
|
65941
65949
|
}
|
|
65942
65950
|
}
|
|
@@ -79682,7 +79690,7 @@ function createTypeChecker(host) {
|
|
|
79682
79690
|
error(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
|
|
79683
79691
|
} else {
|
|
79684
79692
|
const text = getTextOfPropertyName(member.name);
|
|
79685
|
-
if (isNumericLiteralName(text)
|
|
79693
|
+
if (isNumericLiteralName(text)) {
|
|
79686
79694
|
error(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name);
|
|
79687
79695
|
}
|
|
79688
79696
|
}
|
package/lib/tsserver.js
CHANGED
|
@@ -2328,7 +2328,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2328
2328
|
|
|
2329
2329
|
// src/compiler/corePublic.ts
|
|
2330
2330
|
var versionMajorMinor = "5.3";
|
|
2331
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2331
|
+
var version = `${versionMajorMinor}.0-insiders.20231020`;
|
|
2332
2332
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2333
2333
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2334
2334
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -10181,6 +10181,7 @@ var Diagnostics = {
|
|
|
10181
10181
|
Excessive_complexity_comparing_types_0_and_1: diag(2859, 1 /* Error */, "Excessive_complexity_comparing_types_0_and_1_2859", "Excessive complexity comparing types '{0}' and '{1}'."),
|
|
10182
10182
|
The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method: diag(2860, 1 /* Error */, "The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860", "The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),
|
|
10183
10183
|
An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression: diag(2861, 1 /* Error */, "An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861", "An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),
|
|
10184
|
+
Type_0_is_generic_and_can_only_be_indexed_for_reading: diag(2862, 1 /* Error */, "Type_0_is_generic_and_can_only_be_indexed_for_reading_2862", "Type '{0}' is generic and can only be indexed for reading."),
|
|
10184
10185
|
Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
|
|
10185
10186
|
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
|
|
10186
10187
|
Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
|
|
@@ -27957,17 +27958,18 @@ var asyncGeneratorHelper = {
|
|
|
27957
27958
|
scoped: false,
|
|
27958
27959
|
dependencies: [awaitHelper],
|
|
27959
27960
|
text: `
|
|
27960
|
-
|
|
27961
|
-
|
|
27962
|
-
|
|
27963
|
-
|
|
27964
|
-
|
|
27965
|
-
|
|
27966
|
-
|
|
27967
|
-
|
|
27968
|
-
|
|
27969
|
-
|
|
27970
|
-
}
|
|
27961
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
27962
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
27963
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
27964
|
+
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
27965
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
27966
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
27967
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
27968
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
27969
|
+
function fulfill(value) { resume("next", value); }
|
|
27970
|
+
function reject(value) { resume("throw", value); }
|
|
27971
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
27972
|
+
};`
|
|
27971
27973
|
};
|
|
27972
27974
|
var asyncDelegator = {
|
|
27973
27975
|
name: "typescript:asyncDelegator",
|
|
@@ -62365,7 +62367,11 @@ function createTypeChecker(host) {
|
|
|
62365
62367
|
if (indexInfo) {
|
|
62366
62368
|
if (accessFlags & 2 /* NoIndexSignatures */ && indexInfo.keyType !== numberType) {
|
|
62367
62369
|
if (accessExpression) {
|
|
62368
|
-
|
|
62370
|
+
if (accessFlags & 4 /* Writing */) {
|
|
62371
|
+
error2(accessExpression, Diagnostics.Type_0_is_generic_and_can_only_be_indexed_for_reading, typeToString(originalObjectType));
|
|
62372
|
+
} else {
|
|
62373
|
+
error2(accessExpression, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(originalObjectType));
|
|
62374
|
+
}
|
|
62369
62375
|
}
|
|
62370
62376
|
return void 0;
|
|
62371
62377
|
}
|
|
@@ -65811,13 +65817,13 @@ function createTypeChecker(host) {
|
|
|
65811
65817
|
if (recursionFlags & 1 /* Source */) {
|
|
65812
65818
|
sourceStack[sourceDepth] = source2;
|
|
65813
65819
|
sourceDepth++;
|
|
65814
|
-
if (!(expandingFlags & 1 /* Source */) && isDeeplyNestedType(source2, sourceStack, sourceDepth
|
|
65820
|
+
if (!(expandingFlags & 1 /* Source */) && isDeeplyNestedType(source2, sourceStack, sourceDepth))
|
|
65815
65821
|
expandingFlags |= 1 /* Source */;
|
|
65816
65822
|
}
|
|
65817
65823
|
if (recursionFlags & 2 /* Target */) {
|
|
65818
65824
|
targetStack[targetDepth] = target2;
|
|
65819
65825
|
targetDepth++;
|
|
65820
|
-
if (!(expandingFlags & 2 /* Target */) && isDeeplyNestedType(target2, targetStack, targetDepth
|
|
65826
|
+
if (!(expandingFlags & 2 /* Target */) && isDeeplyNestedType(target2, targetStack, targetDepth))
|
|
65821
65827
|
expandingFlags |= 2 /* Target */;
|
|
65822
65828
|
}
|
|
65823
65829
|
let originalHandler;
|
|
@@ -67436,7 +67442,7 @@ function createTypeChecker(host) {
|
|
|
67436
67442
|
function isClassDerivedFromDeclaringClasses(checkClass, prop, writing) {
|
|
67437
67443
|
return forEachProperty2(prop, (p) => getDeclarationModifierFlagsFromSymbol(p, writing) & 16 /* Protected */ ? !hasBaseType(checkClass, getDeclaringClass(p)) : false) ? void 0 : checkClass;
|
|
67438
67444
|
}
|
|
67439
|
-
function isDeeplyNestedType(type, stack, depth, maxDepth) {
|
|
67445
|
+
function isDeeplyNestedType(type, stack, depth, maxDepth = 3) {
|
|
67440
67446
|
if (depth >= maxDepth) {
|
|
67441
67447
|
if (type.flags & 2097152 /* Intersection */) {
|
|
67442
67448
|
return some(type.types, (t) => isDeeplyNestedType(t, stack, depth, maxDepth));
|
|
@@ -70642,13 +70648,15 @@ function createTypeChecker(host) {
|
|
|
70642
70648
|
return void 0;
|
|
70643
70649
|
}
|
|
70644
70650
|
function getDiscriminantPropertyAccess(expr, computedType) {
|
|
70645
|
-
|
|
70646
|
-
if (type.flags & 1048576 /* Union */) {
|
|
70651
|
+
if (declaredType.flags & 1048576 /* Union */ || computedType.flags & 1048576 /* Union */) {
|
|
70647
70652
|
const access = getCandidateDiscriminantPropertyAccess(expr);
|
|
70648
70653
|
if (access) {
|
|
70649
70654
|
const name = getAccessedPropertyName(access);
|
|
70650
|
-
if (name
|
|
70651
|
-
|
|
70655
|
+
if (name) {
|
|
70656
|
+
const type = declaredType.flags & 1048576 /* Union */ && isTypeSubsetOf(computedType, declaredType) ? declaredType : computedType;
|
|
70657
|
+
if (isDiscriminantProperty(type, name)) {
|
|
70658
|
+
return access;
|
|
70659
|
+
}
|
|
70652
70660
|
}
|
|
70653
70661
|
}
|
|
70654
70662
|
}
|
|
@@ -84394,7 +84402,7 @@ function createTypeChecker(host) {
|
|
|
84394
84402
|
error2(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
|
|
84395
84403
|
} else {
|
|
84396
84404
|
const text = getTextOfPropertyName(member.name);
|
|
84397
|
-
if (isNumericLiteralName(text)
|
|
84405
|
+
if (isNumericLiteralName(text)) {
|
|
84398
84406
|
error2(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name);
|
|
84399
84407
|
}
|
|
84400
84408
|
}
|
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.3";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20231020`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -7963,6 +7963,7 @@ ${lanes.join("\n")}
|
|
|
7963
7963
|
Excessive_complexity_comparing_types_0_and_1: diag(2859, 1 /* Error */, "Excessive_complexity_comparing_types_0_and_1_2859", "Excessive complexity comparing types '{0}' and '{1}'."),
|
|
7964
7964
|
The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method: diag(2860, 1 /* Error */, "The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860", "The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),
|
|
7965
7965
|
An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression: diag(2861, 1 /* Error */, "An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861", "An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),
|
|
7966
|
+
Type_0_is_generic_and_can_only_be_indexed_for_reading: diag(2862, 1 /* Error */, "Type_0_is_generic_and_can_only_be_indexed_for_reading_2862", "Type '{0}' is generic and can only be indexed for reading."),
|
|
7966
7967
|
Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
|
|
7967
7968
|
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
|
|
7968
7969
|
Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
|
|
@@ -25834,17 +25835,18 @@ ${lanes.join("\n")}
|
|
|
25834
25835
|
scoped: false,
|
|
25835
25836
|
dependencies: [awaitHelper],
|
|
25836
25837
|
text: `
|
|
25837
|
-
|
|
25838
|
-
|
|
25839
|
-
|
|
25840
|
-
|
|
25841
|
-
|
|
25842
|
-
|
|
25843
|
-
|
|
25844
|
-
|
|
25845
|
-
|
|
25846
|
-
|
|
25847
|
-
}
|
|
25838
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
25839
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
25840
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
25841
|
+
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
25842
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
25843
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
25844
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
25845
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
25846
|
+
function fulfill(value) { resume("next", value); }
|
|
25847
|
+
function reject(value) { resume("throw", value); }
|
|
25848
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
25849
|
+
};`
|
|
25848
25850
|
};
|
|
25849
25851
|
asyncDelegator = {
|
|
25850
25852
|
name: "typescript:asyncDelegator",
|
|
@@ -60132,7 +60134,11 @@ ${lanes.join("\n")}
|
|
|
60132
60134
|
if (indexInfo) {
|
|
60133
60135
|
if (accessFlags & 2 /* NoIndexSignatures */ && indexInfo.keyType !== numberType) {
|
|
60134
60136
|
if (accessExpression) {
|
|
60135
|
-
|
|
60137
|
+
if (accessFlags & 4 /* Writing */) {
|
|
60138
|
+
error2(accessExpression, Diagnostics.Type_0_is_generic_and_can_only_be_indexed_for_reading, typeToString(originalObjectType));
|
|
60139
|
+
} else {
|
|
60140
|
+
error2(accessExpression, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(originalObjectType));
|
|
60141
|
+
}
|
|
60136
60142
|
}
|
|
60137
60143
|
return void 0;
|
|
60138
60144
|
}
|
|
@@ -63578,13 +63584,13 @@ ${lanes.join("\n")}
|
|
|
63578
63584
|
if (recursionFlags & 1 /* Source */) {
|
|
63579
63585
|
sourceStack[sourceDepth] = source2;
|
|
63580
63586
|
sourceDepth++;
|
|
63581
|
-
if (!(expandingFlags & 1 /* Source */) && isDeeplyNestedType(source2, sourceStack, sourceDepth
|
|
63587
|
+
if (!(expandingFlags & 1 /* Source */) && isDeeplyNestedType(source2, sourceStack, sourceDepth))
|
|
63582
63588
|
expandingFlags |= 1 /* Source */;
|
|
63583
63589
|
}
|
|
63584
63590
|
if (recursionFlags & 2 /* Target */) {
|
|
63585
63591
|
targetStack[targetDepth] = target2;
|
|
63586
63592
|
targetDepth++;
|
|
63587
|
-
if (!(expandingFlags & 2 /* Target */) && isDeeplyNestedType(target2, targetStack, targetDepth
|
|
63593
|
+
if (!(expandingFlags & 2 /* Target */) && isDeeplyNestedType(target2, targetStack, targetDepth))
|
|
63588
63594
|
expandingFlags |= 2 /* Target */;
|
|
63589
63595
|
}
|
|
63590
63596
|
let originalHandler;
|
|
@@ -65203,7 +65209,7 @@ ${lanes.join("\n")}
|
|
|
65203
65209
|
function isClassDerivedFromDeclaringClasses(checkClass, prop, writing) {
|
|
65204
65210
|
return forEachProperty2(prop, (p) => getDeclarationModifierFlagsFromSymbol(p, writing) & 16 /* Protected */ ? !hasBaseType(checkClass, getDeclaringClass(p)) : false) ? void 0 : checkClass;
|
|
65205
65211
|
}
|
|
65206
|
-
function isDeeplyNestedType(type, stack, depth, maxDepth) {
|
|
65212
|
+
function isDeeplyNestedType(type, stack, depth, maxDepth = 3) {
|
|
65207
65213
|
if (depth >= maxDepth) {
|
|
65208
65214
|
if (type.flags & 2097152 /* Intersection */) {
|
|
65209
65215
|
return some(type.types, (t) => isDeeplyNestedType(t, stack, depth, maxDepth));
|
|
@@ -68409,13 +68415,15 @@ ${lanes.join("\n")}
|
|
|
68409
68415
|
return void 0;
|
|
68410
68416
|
}
|
|
68411
68417
|
function getDiscriminantPropertyAccess(expr, computedType) {
|
|
68412
|
-
|
|
68413
|
-
if (type.flags & 1048576 /* Union */) {
|
|
68418
|
+
if (declaredType.flags & 1048576 /* Union */ || computedType.flags & 1048576 /* Union */) {
|
|
68414
68419
|
const access = getCandidateDiscriminantPropertyAccess(expr);
|
|
68415
68420
|
if (access) {
|
|
68416
68421
|
const name = getAccessedPropertyName(access);
|
|
68417
|
-
if (name
|
|
68418
|
-
|
|
68422
|
+
if (name) {
|
|
68423
|
+
const type = declaredType.flags & 1048576 /* Union */ && isTypeSubsetOf(computedType, declaredType) ? declaredType : computedType;
|
|
68424
|
+
if (isDiscriminantProperty(type, name)) {
|
|
68425
|
+
return access;
|
|
68426
|
+
}
|
|
68419
68427
|
}
|
|
68420
68428
|
}
|
|
68421
68429
|
}
|
|
@@ -82161,7 +82169,7 @@ ${lanes.join("\n")}
|
|
|
82161
82169
|
error2(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
|
|
82162
82170
|
} else {
|
|
82163
82171
|
const text = getTextOfPropertyName(member.name);
|
|
82164
|
-
if (isNumericLiteralName(text)
|
|
82172
|
+
if (isNumericLiteralName(text)) {
|
|
82165
82173
|
error2(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name);
|
|
82166
82174
|
}
|
|
82167
82175
|
}
|
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.3";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20231020`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -6030,6 +6030,7 @@ var Diagnostics = {
|
|
|
6030
6030
|
Excessive_complexity_comparing_types_0_and_1: diag(2859, 1 /* Error */, "Excessive_complexity_comparing_types_0_and_1_2859", "Excessive complexity comparing types '{0}' and '{1}'."),
|
|
6031
6031
|
The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method: diag(2860, 1 /* Error */, "The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860", "The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),
|
|
6032
6032
|
An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression: diag(2861, 1 /* Error */, "An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861", "An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),
|
|
6033
|
+
Type_0_is_generic_and_can_only_be_indexed_for_reading: diag(2862, 1 /* Error */, "Type_0_is_generic_and_can_only_be_indexed_for_reading_2862", "Type '{0}' is generic and can only be indexed for reading."),
|
|
6033
6034
|
Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
|
|
6034
6035
|
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
|
|
6035
6036
|
Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
|
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-56161-5",
|
|
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": "dcaa0b853cdd7d1d26b312a499a64451a9fe41e5"
|
|
119
119
|
}
|