@typescript-deploys/pr-build 5.3.0-pr-55867-7 → 5.3.0-pr-55924-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 +22 -8
- package/lib/tsserver.js +37 -23
- package/lib/typescript.js +36 -22
- 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.20230930`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -6761,6 +6761,7 @@ var Diagnostics = {
|
|
|
6761
6761
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0: diag(4122, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122", "This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),
|
|
6762
6762
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1: diag(4123, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123", "This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),
|
|
6763
6763
|
Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4124, 1 /* Error */, "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124", "Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),
|
|
6764
|
+
The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given: diag(4125, 1 /* Error */, "The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given_4125", "The values of '{0}.{1}' differ in their declarations, where '{2}' was expected but '{3}' was given."),
|
|
6764
6765
|
The_current_host_does_not_support_the_0_option: diag(5001, 1 /* Error */, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
|
|
6765
6766
|
Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1 /* Error */, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
|
|
6766
6767
|
File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1 /* Error */, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
|
|
@@ -10815,7 +10816,7 @@ function isAccessor(node) {
|
|
|
10815
10816
|
function isAutoAccessorPropertyDeclaration(node) {
|
|
10816
10817
|
return isPropertyDeclaration(node) && hasAccessorModifier(node);
|
|
10817
10818
|
}
|
|
10818
|
-
function
|
|
10819
|
+
function isClassInstanceProperty(node) {
|
|
10819
10820
|
if (isInJSFile(node) && isExpandoPropertyDeclaration(node)) {
|
|
10820
10821
|
return (!isBindableStaticAccessExpression(node) || !isPrototypeAccess(node.expression)) && !isBindableStaticNameExpression(
|
|
10821
10822
|
node,
|
|
@@ -59950,12 +59951,12 @@ function createTypeChecker(host) {
|
|
|
59950
59951
|
return !!(entry & 1 /* Succeeded */);
|
|
59951
59952
|
}
|
|
59952
59953
|
const targetEnumType = getTypeOfSymbol(targetSymbol);
|
|
59953
|
-
for (const
|
|
59954
|
-
if (
|
|
59955
|
-
const targetProperty = getPropertyOfType(targetEnumType,
|
|
59954
|
+
for (const sourceProperty of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) {
|
|
59955
|
+
if (sourceProperty.flags & 8 /* EnumMember */) {
|
|
59956
|
+
const targetProperty = getPropertyOfType(targetEnumType, sourceProperty.escapedName);
|
|
59956
59957
|
if (!targetProperty || !(targetProperty.flags & 8 /* EnumMember */)) {
|
|
59957
59958
|
if (errorReporter) {
|
|
59958
|
-
errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(
|
|
59959
|
+
errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(sourceProperty), typeToString(
|
|
59959
59960
|
getDeclaredTypeOfSymbol(targetSymbol),
|
|
59960
59961
|
/*enclosingDeclaration*/
|
|
59961
59962
|
void 0,
|
|
@@ -59967,6 +59968,19 @@ function createTypeChecker(host) {
|
|
|
59967
59968
|
}
|
|
59968
59969
|
return false;
|
|
59969
59970
|
}
|
|
59971
|
+
const sourceValue = getEnumMemberValue(getDeclarationOfKind(sourceProperty, 306 /* EnumMember */));
|
|
59972
|
+
const targetValue = getEnumMemberValue(getDeclarationOfKind(targetProperty, 306 /* EnumMember */));
|
|
59973
|
+
if (sourceValue !== void 0 && targetValue !== void 0 && sourceValue !== targetValue) {
|
|
59974
|
+
if (errorReporter) {
|
|
59975
|
+
const escapedSource = typeof sourceValue === "string" ? `"${escapeString(sourceValue)}"` : sourceValue;
|
|
59976
|
+
const escapedTarget = typeof targetValue === "string" ? `"${escapeString(targetValue)}"` : targetValue;
|
|
59977
|
+
errorReporter(Diagnostics.The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given, symbolName(targetSymbol), symbolName(targetProperty), escapedTarget, escapedSource);
|
|
59978
|
+
enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */);
|
|
59979
|
+
} else {
|
|
59980
|
+
enumRelation.set(id, 2 /* Failed */);
|
|
59981
|
+
}
|
|
59982
|
+
return false;
|
|
59983
|
+
}
|
|
59970
59984
|
}
|
|
59971
59985
|
}
|
|
59972
59986
|
enumRelation.set(id, 1 /* Succeeded */);
|
|
@@ -69303,7 +69317,7 @@ function createTypeChecker(host) {
|
|
|
69303
69317
|
}
|
|
69304
69318
|
return false;
|
|
69305
69319
|
}
|
|
69306
|
-
if (!(flags & 32 /* Static */) && ((_a = prop.declarations) == null ? void 0 : _a.some(
|
|
69320
|
+
if (!(flags & 32 /* Static */) && ((_a = prop.declarations) == null ? void 0 : _a.some(isClassInstanceProperty))) {
|
|
69307
69321
|
if (errorNode) {
|
|
69308
69322
|
error(errorNode, Diagnostics.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super, symbolToString(prop));
|
|
69309
69323
|
}
|
|
@@ -79698,7 +79712,7 @@ function createTypeChecker(host) {
|
|
|
79698
79712
|
}
|
|
79699
79713
|
if (isConstantVariable(symbol)) {
|
|
79700
79714
|
const declaration = symbol.valueDeclaration;
|
|
79701
|
-
if (declaration && !declaration.type && declaration.initializer && (!location || declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location))) {
|
|
79715
|
+
if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && (!location || declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location))) {
|
|
79702
79716
|
return evaluate(declaration.initializer, declaration);
|
|
79703
79717
|
}
|
|
79704
79718
|
}
|
package/lib/tsserver.js
CHANGED
|
@@ -1253,7 +1253,7 @@ __export(server_exports, {
|
|
|
1253
1253
|
isClassDeclaration: () => isClassDeclaration,
|
|
1254
1254
|
isClassElement: () => isClassElement,
|
|
1255
1255
|
isClassExpression: () => isClassExpression,
|
|
1256
|
-
|
|
1256
|
+
isClassInstanceProperty: () => isClassInstanceProperty,
|
|
1257
1257
|
isClassLike: () => isClassLike,
|
|
1258
1258
|
isClassMemberModifier: () => isClassMemberModifier,
|
|
1259
1259
|
isClassNamedEvaluationHelperBlock: () => isClassNamedEvaluationHelperBlock,
|
|
@@ -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.20230930`;
|
|
2332
2332
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2333
2333
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2334
2334
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -10289,6 +10289,7 @@ var Diagnostics = {
|
|
|
10289
10289
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0: diag(4122, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122", "This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),
|
|
10290
10290
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1: diag(4123, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123", "This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),
|
|
10291
10291
|
Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4124, 1 /* Error */, "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124", "Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),
|
|
10292
|
+
The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given: diag(4125, 1 /* Error */, "The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given_4125", "The values of '{0}.{1}' differ in their declarations, where '{2}' was expected but '{3}' was given."),
|
|
10292
10293
|
The_current_host_does_not_support_the_0_option: diag(5001, 1 /* Error */, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
|
|
10293
10294
|
Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1 /* Error */, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
|
|
10294
10295
|
File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1 /* Error */, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
|
|
@@ -14486,7 +14487,7 @@ function isAccessor(node) {
|
|
|
14486
14487
|
function isAutoAccessorPropertyDeclaration(node) {
|
|
14487
14488
|
return isPropertyDeclaration(node) && hasAccessorModifier(node);
|
|
14488
14489
|
}
|
|
14489
|
-
function
|
|
14490
|
+
function isClassInstanceProperty(node) {
|
|
14490
14491
|
if (isInJSFile(node) && isExpandoPropertyDeclaration(node)) {
|
|
14491
14492
|
return (!isBindableStaticAccessExpression(node) || !isPrototypeAccess(node.expression)) && !isBindableStaticNameExpression(
|
|
14492
14493
|
node,
|
|
@@ -64662,12 +64663,12 @@ function createTypeChecker(host) {
|
|
|
64662
64663
|
return !!(entry & 1 /* Succeeded */);
|
|
64663
64664
|
}
|
|
64664
64665
|
const targetEnumType = getTypeOfSymbol(targetSymbol);
|
|
64665
|
-
for (const
|
|
64666
|
-
if (
|
|
64667
|
-
const targetProperty = getPropertyOfType(targetEnumType,
|
|
64666
|
+
for (const sourceProperty of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) {
|
|
64667
|
+
if (sourceProperty.flags & 8 /* EnumMember */) {
|
|
64668
|
+
const targetProperty = getPropertyOfType(targetEnumType, sourceProperty.escapedName);
|
|
64668
64669
|
if (!targetProperty || !(targetProperty.flags & 8 /* EnumMember */)) {
|
|
64669
64670
|
if (errorReporter) {
|
|
64670
|
-
errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(
|
|
64671
|
+
errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(sourceProperty), typeToString(
|
|
64671
64672
|
getDeclaredTypeOfSymbol(targetSymbol),
|
|
64672
64673
|
/*enclosingDeclaration*/
|
|
64673
64674
|
void 0,
|
|
@@ -64679,6 +64680,19 @@ function createTypeChecker(host) {
|
|
|
64679
64680
|
}
|
|
64680
64681
|
return false;
|
|
64681
64682
|
}
|
|
64683
|
+
const sourceValue = getEnumMemberValue(getDeclarationOfKind(sourceProperty, 306 /* EnumMember */));
|
|
64684
|
+
const targetValue = getEnumMemberValue(getDeclarationOfKind(targetProperty, 306 /* EnumMember */));
|
|
64685
|
+
if (sourceValue !== void 0 && targetValue !== void 0 && sourceValue !== targetValue) {
|
|
64686
|
+
if (errorReporter) {
|
|
64687
|
+
const escapedSource = typeof sourceValue === "string" ? `"${escapeString(sourceValue)}"` : sourceValue;
|
|
64688
|
+
const escapedTarget = typeof targetValue === "string" ? `"${escapeString(targetValue)}"` : targetValue;
|
|
64689
|
+
errorReporter(Diagnostics.The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given, symbolName(targetSymbol), symbolName(targetProperty), escapedTarget, escapedSource);
|
|
64690
|
+
enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */);
|
|
64691
|
+
} else {
|
|
64692
|
+
enumRelation.set(id, 2 /* Failed */);
|
|
64693
|
+
}
|
|
64694
|
+
return false;
|
|
64695
|
+
}
|
|
64682
64696
|
}
|
|
64683
64697
|
}
|
|
64684
64698
|
enumRelation.set(id, 1 /* Succeeded */);
|
|
@@ -74015,7 +74029,7 @@ function createTypeChecker(host) {
|
|
|
74015
74029
|
}
|
|
74016
74030
|
return false;
|
|
74017
74031
|
}
|
|
74018
|
-
if (!(flags & 32 /* Static */) && ((_a = prop.declarations) == null ? void 0 : _a.some(
|
|
74032
|
+
if (!(flags & 32 /* Static */) && ((_a = prop.declarations) == null ? void 0 : _a.some(isClassInstanceProperty))) {
|
|
74019
74033
|
if (errorNode) {
|
|
74020
74034
|
error2(errorNode, Diagnostics.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super, symbolToString(prop));
|
|
74021
74035
|
}
|
|
@@ -84410,7 +84424,7 @@ function createTypeChecker(host) {
|
|
|
84410
84424
|
}
|
|
84411
84425
|
if (isConstantVariable(symbol)) {
|
|
84412
84426
|
const declaration = symbol.valueDeclaration;
|
|
84413
|
-
if (declaration && !declaration.type && declaration.initializer && (!location || declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location))) {
|
|
84427
|
+
if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && (!location || declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location))) {
|
|
84414
84428
|
return evaluate(declaration.initializer, declaration);
|
|
84415
84429
|
}
|
|
84416
84430
|
}
|
|
@@ -164387,14 +164401,14 @@ function provideInlayHints(context) {
|
|
|
164387
164401
|
if (isModuleReferenceType(declarationType)) {
|
|
164388
164402
|
return;
|
|
164389
164403
|
}
|
|
164390
|
-
const
|
|
164391
|
-
if (
|
|
164392
|
-
const hintText = typeof
|
|
164404
|
+
const hintParts = typeToInlayHintParts(declarationType);
|
|
164405
|
+
if (hintParts) {
|
|
164406
|
+
const hintText = typeof hintParts === "string" ? hintParts : hintParts.map((part) => part.text).join("");
|
|
164393
164407
|
const isVariableNameMatchesType = preferences.includeInlayVariableTypeHintsWhenTypeMatchesName === false && equateStringsCaseInsensitive(decl.name.getText(), hintText);
|
|
164394
164408
|
if (isVariableNameMatchesType) {
|
|
164395
164409
|
return;
|
|
164396
164410
|
}
|
|
164397
|
-
addTypeHints(
|
|
164411
|
+
addTypeHints(hintParts, decl.name.end);
|
|
164398
164412
|
}
|
|
164399
164413
|
}
|
|
164400
164414
|
function visitCallOrNewExpression(expr) {
|
|
@@ -164502,9 +164516,9 @@ function provideInlayHints(context) {
|
|
|
164502
164516
|
if (isModuleReferenceType(returnType)) {
|
|
164503
164517
|
return;
|
|
164504
164518
|
}
|
|
164505
|
-
const
|
|
164506
|
-
if (
|
|
164507
|
-
addTypeHints(
|
|
164519
|
+
const hintParts = typeToInlayHintParts(returnType);
|
|
164520
|
+
if (hintParts) {
|
|
164521
|
+
addTypeHints(hintParts, getTypeAnnotationPosition(decl));
|
|
164508
164522
|
}
|
|
164509
164523
|
}
|
|
164510
164524
|
function getTypeAnnotationPosition(decl) {
|
|
@@ -164528,14 +164542,14 @@ function provideInlayHints(context) {
|
|
|
164528
164542
|
if (effectiveTypeAnnotation) {
|
|
164529
164543
|
continue;
|
|
164530
164544
|
}
|
|
164531
|
-
const
|
|
164532
|
-
if (!
|
|
164545
|
+
const typeHints = getParameterDeclarationTypeHints(signature.parameters[i]);
|
|
164546
|
+
if (!typeHints) {
|
|
164533
164547
|
continue;
|
|
164534
164548
|
}
|
|
164535
|
-
addTypeHints(
|
|
164549
|
+
addTypeHints(typeHints, param.questionToken ? param.questionToken.end : param.name.end);
|
|
164536
164550
|
}
|
|
164537
164551
|
}
|
|
164538
|
-
function
|
|
164552
|
+
function getParameterDeclarationTypeHints(symbol) {
|
|
164539
164553
|
const valueDeclaration = symbol.valueDeclaration;
|
|
164540
164554
|
if (!valueDeclaration || !isParameter(valueDeclaration)) {
|
|
164541
164555
|
return void 0;
|
|
@@ -164544,7 +164558,7 @@ function provideInlayHints(context) {
|
|
|
164544
164558
|
if (isModuleReferenceType(signatureParamType)) {
|
|
164545
164559
|
return void 0;
|
|
164546
164560
|
}
|
|
164547
|
-
return
|
|
164561
|
+
return typeToInlayHintParts(signatureParamType);
|
|
164548
164562
|
}
|
|
164549
164563
|
function printTypeInSingleLine(type) {
|
|
164550
164564
|
const flags = 70221824 /* IgnoreErrors */ | 1048576 /* AllowUniqueESSymbolType */ | 16384 /* UseAliasDefinedOutsideCurrentScope */;
|
|
@@ -173128,7 +173142,7 @@ __export(ts_exports2, {
|
|
|
173128
173142
|
isClassDeclaration: () => isClassDeclaration,
|
|
173129
173143
|
isClassElement: () => isClassElement,
|
|
173130
173144
|
isClassExpression: () => isClassExpression,
|
|
173131
|
-
|
|
173145
|
+
isClassInstanceProperty: () => isClassInstanceProperty,
|
|
173132
173146
|
isClassLike: () => isClassLike,
|
|
173133
173147
|
isClassMemberModifier: () => isClassMemberModifier,
|
|
173134
173148
|
isClassNamedEvaluationHelperBlock: () => isClassNamedEvaluationHelperBlock,
|
|
@@ -187807,7 +187821,7 @@ start(initializeNodeSystem(), require("os").platform());
|
|
|
187807
187821
|
isClassDeclaration,
|
|
187808
187822
|
isClassElement,
|
|
187809
187823
|
isClassExpression,
|
|
187810
|
-
|
|
187824
|
+
isClassInstanceProperty,
|
|
187811
187825
|
isClassLike,
|
|
187812
187826
|
isClassMemberModifier,
|
|
187813
187827
|
isClassNamedEvaluationHelperBlock,
|
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.20230930`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -8071,6 +8071,7 @@ ${lanes.join("\n")}
|
|
|
8071
8071
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0: diag(4122, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122", "This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),
|
|
8072
8072
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1: diag(4123, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123", "This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),
|
|
8073
8073
|
Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4124, 1 /* Error */, "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124", "Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),
|
|
8074
|
+
The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given: diag(4125, 1 /* Error */, "The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given_4125", "The values of '{0}.{1}' differ in their declarations, where '{2}' was expected but '{3}' was given."),
|
|
8074
8075
|
The_current_host_does_not_support_the_0_option: diag(5001, 1 /* Error */, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
|
|
8075
8076
|
Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1 /* Error */, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
|
|
8076
8077
|
File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1 /* Error */, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
|
|
@@ -12275,7 +12276,7 @@ ${lanes.join("\n")}
|
|
|
12275
12276
|
function isAutoAccessorPropertyDeclaration(node) {
|
|
12276
12277
|
return isPropertyDeclaration(node) && hasAccessorModifier(node);
|
|
12277
12278
|
}
|
|
12278
|
-
function
|
|
12279
|
+
function isClassInstanceProperty(node) {
|
|
12279
12280
|
if (isInJSFile(node) && isExpandoPropertyDeclaration(node)) {
|
|
12280
12281
|
return (!isBindableStaticAccessExpression(node) || !isPrototypeAccess(node.expression)) && !isBindableStaticNameExpression(
|
|
12281
12282
|
node,
|
|
@@ -62429,12 +62430,12 @@ ${lanes.join("\n")}
|
|
|
62429
62430
|
return !!(entry & 1 /* Succeeded */);
|
|
62430
62431
|
}
|
|
62431
62432
|
const targetEnumType = getTypeOfSymbol(targetSymbol);
|
|
62432
|
-
for (const
|
|
62433
|
-
if (
|
|
62434
|
-
const targetProperty = getPropertyOfType(targetEnumType,
|
|
62433
|
+
for (const sourceProperty of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) {
|
|
62434
|
+
if (sourceProperty.flags & 8 /* EnumMember */) {
|
|
62435
|
+
const targetProperty = getPropertyOfType(targetEnumType, sourceProperty.escapedName);
|
|
62435
62436
|
if (!targetProperty || !(targetProperty.flags & 8 /* EnumMember */)) {
|
|
62436
62437
|
if (errorReporter) {
|
|
62437
|
-
errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(
|
|
62438
|
+
errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(sourceProperty), typeToString(
|
|
62438
62439
|
getDeclaredTypeOfSymbol(targetSymbol),
|
|
62439
62440
|
/*enclosingDeclaration*/
|
|
62440
62441
|
void 0,
|
|
@@ -62446,6 +62447,19 @@ ${lanes.join("\n")}
|
|
|
62446
62447
|
}
|
|
62447
62448
|
return false;
|
|
62448
62449
|
}
|
|
62450
|
+
const sourceValue = getEnumMemberValue(getDeclarationOfKind(sourceProperty, 306 /* EnumMember */));
|
|
62451
|
+
const targetValue = getEnumMemberValue(getDeclarationOfKind(targetProperty, 306 /* EnumMember */));
|
|
62452
|
+
if (sourceValue !== void 0 && targetValue !== void 0 && sourceValue !== targetValue) {
|
|
62453
|
+
if (errorReporter) {
|
|
62454
|
+
const escapedSource = typeof sourceValue === "string" ? `"${escapeString(sourceValue)}"` : sourceValue;
|
|
62455
|
+
const escapedTarget = typeof targetValue === "string" ? `"${escapeString(targetValue)}"` : targetValue;
|
|
62456
|
+
errorReporter(Diagnostics.The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given, symbolName(targetSymbol), symbolName(targetProperty), escapedTarget, escapedSource);
|
|
62457
|
+
enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */);
|
|
62458
|
+
} else {
|
|
62459
|
+
enumRelation.set(id, 2 /* Failed */);
|
|
62460
|
+
}
|
|
62461
|
+
return false;
|
|
62462
|
+
}
|
|
62449
62463
|
}
|
|
62450
62464
|
}
|
|
62451
62465
|
enumRelation.set(id, 1 /* Succeeded */);
|
|
@@ -71782,7 +71796,7 @@ ${lanes.join("\n")}
|
|
|
71782
71796
|
}
|
|
71783
71797
|
return false;
|
|
71784
71798
|
}
|
|
71785
|
-
if (!(flags & 32 /* Static */) && ((_a = prop.declarations) == null ? void 0 : _a.some(
|
|
71799
|
+
if (!(flags & 32 /* Static */) && ((_a = prop.declarations) == null ? void 0 : _a.some(isClassInstanceProperty))) {
|
|
71786
71800
|
if (errorNode) {
|
|
71787
71801
|
error2(errorNode, Diagnostics.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super, symbolToString(prop));
|
|
71788
71802
|
}
|
|
@@ -82177,7 +82191,7 @@ ${lanes.join("\n")}
|
|
|
82177
82191
|
}
|
|
82178
82192
|
if (isConstantVariable(symbol)) {
|
|
82179
82193
|
const declaration = symbol.valueDeclaration;
|
|
82180
|
-
if (declaration && !declaration.type && declaration.initializer && (!location || declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location))) {
|
|
82194
|
+
if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && (!location || declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location))) {
|
|
82181
82195
|
return evaluate(declaration.initializer, declaration);
|
|
82182
82196
|
}
|
|
82183
82197
|
}
|
|
@@ -163732,14 +163746,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
163732
163746
|
if (isModuleReferenceType(declarationType)) {
|
|
163733
163747
|
return;
|
|
163734
163748
|
}
|
|
163735
|
-
const
|
|
163736
|
-
if (
|
|
163737
|
-
const hintText = typeof
|
|
163749
|
+
const hintParts = typeToInlayHintParts(declarationType);
|
|
163750
|
+
if (hintParts) {
|
|
163751
|
+
const hintText = typeof hintParts === "string" ? hintParts : hintParts.map((part) => part.text).join("");
|
|
163738
163752
|
const isVariableNameMatchesType = preferences.includeInlayVariableTypeHintsWhenTypeMatchesName === false && equateStringsCaseInsensitive(decl.name.getText(), hintText);
|
|
163739
163753
|
if (isVariableNameMatchesType) {
|
|
163740
163754
|
return;
|
|
163741
163755
|
}
|
|
163742
|
-
addTypeHints(
|
|
163756
|
+
addTypeHints(hintParts, decl.name.end);
|
|
163743
163757
|
}
|
|
163744
163758
|
}
|
|
163745
163759
|
function visitCallOrNewExpression(expr) {
|
|
@@ -163847,9 +163861,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
163847
163861
|
if (isModuleReferenceType(returnType)) {
|
|
163848
163862
|
return;
|
|
163849
163863
|
}
|
|
163850
|
-
const
|
|
163851
|
-
if (
|
|
163852
|
-
addTypeHints(
|
|
163864
|
+
const hintParts = typeToInlayHintParts(returnType);
|
|
163865
|
+
if (hintParts) {
|
|
163866
|
+
addTypeHints(hintParts, getTypeAnnotationPosition(decl));
|
|
163853
163867
|
}
|
|
163854
163868
|
}
|
|
163855
163869
|
function getTypeAnnotationPosition(decl) {
|
|
@@ -163873,14 +163887,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
163873
163887
|
if (effectiveTypeAnnotation) {
|
|
163874
163888
|
continue;
|
|
163875
163889
|
}
|
|
163876
|
-
const
|
|
163877
|
-
if (!
|
|
163890
|
+
const typeHints = getParameterDeclarationTypeHints(signature.parameters[i]);
|
|
163891
|
+
if (!typeHints) {
|
|
163878
163892
|
continue;
|
|
163879
163893
|
}
|
|
163880
|
-
addTypeHints(
|
|
163894
|
+
addTypeHints(typeHints, param.questionToken ? param.questionToken.end : param.name.end);
|
|
163881
163895
|
}
|
|
163882
163896
|
}
|
|
163883
|
-
function
|
|
163897
|
+
function getParameterDeclarationTypeHints(symbol) {
|
|
163884
163898
|
const valueDeclaration = symbol.valueDeclaration;
|
|
163885
163899
|
if (!valueDeclaration || !isParameter(valueDeclaration)) {
|
|
163886
163900
|
return void 0;
|
|
@@ -163889,7 +163903,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
163889
163903
|
if (isModuleReferenceType(signatureParamType)) {
|
|
163890
163904
|
return void 0;
|
|
163891
163905
|
}
|
|
163892
|
-
return
|
|
163906
|
+
return typeToInlayHintParts(signatureParamType);
|
|
163893
163907
|
}
|
|
163894
163908
|
function printTypeInSingleLine(type) {
|
|
163895
163909
|
const flags = 70221824 /* IgnoreErrors */ | 1048576 /* AllowUniqueESSymbolType */ | 16384 /* UseAliasDefinedOutsideCurrentScope */;
|
|
@@ -184421,7 +184435,7 @@ ${e.message}`;
|
|
|
184421
184435
|
isClassDeclaration: () => isClassDeclaration,
|
|
184422
184436
|
isClassElement: () => isClassElement,
|
|
184423
184437
|
isClassExpression: () => isClassExpression,
|
|
184424
|
-
|
|
184438
|
+
isClassInstanceProperty: () => isClassInstanceProperty,
|
|
184425
184439
|
isClassLike: () => isClassLike,
|
|
184426
184440
|
isClassMemberModifier: () => isClassMemberModifier,
|
|
184427
184441
|
isClassNamedEvaluationHelperBlock: () => isClassNamedEvaluationHelperBlock,
|
|
@@ -186828,7 +186842,7 @@ ${e.message}`;
|
|
|
186828
186842
|
isClassDeclaration: () => isClassDeclaration,
|
|
186829
186843
|
isClassElement: () => isClassElement,
|
|
186830
186844
|
isClassExpression: () => isClassExpression,
|
|
186831
|
-
|
|
186845
|
+
isClassInstanceProperty: () => isClassInstanceProperty,
|
|
186832
186846
|
isClassLike: () => isClassLike,
|
|
186833
186847
|
isClassMemberModifier: () => isClassMemberModifier,
|
|
186834
186848
|
isClassNamedEvaluationHelperBlock: () => isClassNamedEvaluationHelperBlock,
|
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.20230930`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -6138,6 +6138,7 @@ var Diagnostics = {
|
|
|
6138
6138
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0: diag(4122, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122", "This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),
|
|
6139
6139
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1: diag(4123, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123", "This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),
|
|
6140
6140
|
Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4124, 1 /* Error */, "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124", "Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),
|
|
6141
|
+
The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given: diag(4125, 1 /* Error */, "The_values_of_0_1_differ_in_their_declarations_where_2_was_expected_but_3_was_given_4125", "The values of '{0}.{1}' differ in their declarations, where '{2}' was expected but '{3}' was given."),
|
|
6141
6142
|
The_current_host_does_not_support_the_0_option: diag(5001, 1 /* Error */, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
|
|
6142
6143
|
Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1 /* Error */, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
|
|
6143
6144
|
File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1 /* Error */, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
|
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-55924-5",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"node": "20.1.0",
|
|
115
115
|
"npm": "8.19.4"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "febb51a2ef7bed17d1ab08e9c573d68d680518e9"
|
|
118
118
|
}
|