@typescript-deploys/pr-build 5.1.0-pr-49863-27 → 5.1.0-pr-49863-30
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 +9 -6
- package/lib/tsserver.js +11 -6
- package/lib/tsserverlibrary.js +11 -6
- package/lib/typescript.js +11 -6
- package/lib/typingsInstaller.js +1 -0
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -6656,6 +6656,7 @@ var Diagnostics = {
|
|
|
6656
6656
|
Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: diag(2844, 1 /* Error */, "Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844", "Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),
|
|
6657
6657
|
This_condition_will_always_return_0: diag(2845, 1 /* Error */, "This_condition_will_always_return_0_2845", "This condition will always return '{0}'."),
|
|
6658
6658
|
A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead: diag(2846, 1 /* Error */, "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846", "A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),
|
|
6659
|
+
A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value: diag(2847, 1 /* Error */, "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2847", "A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),
|
|
6659
6660
|
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}'."),
|
|
6660
6661
|
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}'."),
|
|
6661
6662
|
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}'."),
|
|
@@ -50652,10 +50653,8 @@ function createTypeChecker(host) {
|
|
|
50652
50653
|
}
|
|
50653
50654
|
const variance = variances[i];
|
|
50654
50655
|
switch (variance & 7 /* VarianceMask */) {
|
|
50655
|
-
case 4 /* Independent */:
|
|
50656
|
-
case 3 /* Bivariant */:
|
|
50657
|
-
return anyType;
|
|
50658
50656
|
case 2 /* Contravariant */:
|
|
50657
|
+
case 3 /* Bivariant */:
|
|
50659
50658
|
return neverType;
|
|
50660
50659
|
}
|
|
50661
50660
|
return getBaseConstraintOfType(typeParameter) || unknownType;
|
|
@@ -72123,7 +72122,7 @@ function createTypeChecker(host) {
|
|
|
72123
72122
|
function checkAllCodePathsInNonVoidFunctionReturnOrThrowDiagnostics() {
|
|
72124
72123
|
const functionFlags = getFunctionFlags(func);
|
|
72125
72124
|
const type = returnType && unwrapReturnType(returnType, functionFlags);
|
|
72126
|
-
if (type && maybeTypeOfKind(type,
|
|
72125
|
+
if (type && maybeTypeOfKind(type, 32768 /* Undefined */ | 16384 /* Void */ | 1 /* Any */)) {
|
|
72127
72126
|
return;
|
|
72128
72127
|
}
|
|
72129
72128
|
if (func.kind === 171 /* MethodSignature */ || nodeIsMissing(func.body) || func.body.kind !== 239 /* Block */ || !functionHasImplicitReturn(func)) {
|
|
@@ -72134,8 +72133,12 @@ function createTypeChecker(host) {
|
|
|
72134
72133
|
if (type && type.flags & 131072 /* Never */) {
|
|
72135
72134
|
error(errorNode, Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);
|
|
72136
72135
|
} else if (type && !hasExplicitReturn) {
|
|
72137
|
-
|
|
72138
|
-
|
|
72136
|
+
if (strictNullChecks) {
|
|
72137
|
+
error(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);
|
|
72138
|
+
} else {
|
|
72139
|
+
error(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);
|
|
72140
|
+
}
|
|
72141
|
+
} else if (type && strictNullChecks) {
|
|
72139
72142
|
error(errorNode, Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);
|
|
72140
72143
|
} else if (compilerOptions.noImplicitReturns) {
|
|
72141
72144
|
if (!type) {
|
package/lib/tsserver.js
CHANGED
|
@@ -10118,6 +10118,7 @@ var Diagnostics = {
|
|
|
10118
10118
|
Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: diag(2844, 1 /* Error */, "Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844", "Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),
|
|
10119
10119
|
This_condition_will_always_return_0: diag(2845, 1 /* Error */, "This_condition_will_always_return_0_2845", "This condition will always return '{0}'."),
|
|
10120
10120
|
A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead: diag(2846, 1 /* Error */, "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846", "A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),
|
|
10121
|
+
A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value: diag(2847, 1 /* Error */, "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2847", "A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),
|
|
10121
10122
|
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}'."),
|
|
10122
10123
|
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}'."),
|
|
10123
10124
|
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}'."),
|
|
@@ -55249,10 +55250,8 @@ function createTypeChecker(host) {
|
|
|
55249
55250
|
}
|
|
55250
55251
|
const variance = variances[i];
|
|
55251
55252
|
switch (variance & 7 /* VarianceMask */) {
|
|
55252
|
-
case 4 /* Independent */:
|
|
55253
|
-
case 3 /* Bivariant */:
|
|
55254
|
-
return anyType;
|
|
55255
55253
|
case 2 /* Contravariant */:
|
|
55254
|
+
case 3 /* Bivariant */:
|
|
55256
55255
|
return neverType;
|
|
55257
55256
|
}
|
|
55258
55257
|
return getBaseConstraintOfType(typeParameter) || unknownType;
|
|
@@ -76720,7 +76719,7 @@ function createTypeChecker(host) {
|
|
|
76720
76719
|
function checkAllCodePathsInNonVoidFunctionReturnOrThrowDiagnostics() {
|
|
76721
76720
|
const functionFlags = getFunctionFlags(func);
|
|
76722
76721
|
const type = returnType && unwrapReturnType(returnType, functionFlags);
|
|
76723
|
-
if (type && maybeTypeOfKind(type,
|
|
76722
|
+
if (type && maybeTypeOfKind(type, 32768 /* Undefined */ | 16384 /* Void */ | 1 /* Any */)) {
|
|
76724
76723
|
return;
|
|
76725
76724
|
}
|
|
76726
76725
|
if (func.kind === 171 /* MethodSignature */ || nodeIsMissing(func.body) || func.body.kind !== 239 /* Block */ || !functionHasImplicitReturn(func)) {
|
|
@@ -76731,8 +76730,12 @@ function createTypeChecker(host) {
|
|
|
76731
76730
|
if (type && type.flags & 131072 /* Never */) {
|
|
76732
76731
|
error(errorNode, Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);
|
|
76733
76732
|
} else if (type && !hasExplicitReturn) {
|
|
76734
|
-
|
|
76735
|
-
|
|
76733
|
+
if (strictNullChecks) {
|
|
76734
|
+
error(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);
|
|
76735
|
+
} else {
|
|
76736
|
+
error(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);
|
|
76737
|
+
}
|
|
76738
|
+
} else if (type && strictNullChecks) {
|
|
76736
76739
|
error(errorNode, Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);
|
|
76737
76740
|
} else if (compilerOptions.noImplicitReturns) {
|
|
76738
76741
|
if (!type) {
|
|
@@ -143660,6 +143663,7 @@ var fixRemoveBracesFromArrowFunctionBody = "fixRemoveBracesFromArrowFunctionBody
|
|
|
143660
143663
|
var fixIdWrapTheBlockWithParen = "fixWrapTheBlockWithParen";
|
|
143661
143664
|
var errorCodes26 = [
|
|
143662
143665
|
Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,
|
|
143666
|
+
Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,
|
|
143663
143667
|
Diagnostics.Type_0_is_not_assignable_to_type_1.code,
|
|
143664
143668
|
Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code
|
|
143665
143669
|
];
|
|
@@ -143811,6 +143815,7 @@ function getInfo6(checker, sourceFile, position, errorCode) {
|
|
|
143811
143815
|
const declaration = findAncestor(node.parent, isFunctionLikeDeclaration);
|
|
143812
143816
|
switch (errorCode) {
|
|
143813
143817
|
case Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:
|
|
143818
|
+
case Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:
|
|
143814
143819
|
if (!declaration || !declaration.body || !declaration.type || !rangeContainsRange(declaration.type, node))
|
|
143815
143820
|
return void 0;
|
|
143816
143821
|
return getFixInfo(
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -7942,6 +7942,7 @@ ${lanes.join("\n")}
|
|
|
7942
7942
|
Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: diag(2844, 1 /* Error */, "Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844", "Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),
|
|
7943
7943
|
This_condition_will_always_return_0: diag(2845, 1 /* Error */, "This_condition_will_always_return_0_2845", "This condition will always return '{0}'."),
|
|
7944
7944
|
A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead: diag(2846, 1 /* Error */, "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846", "A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),
|
|
7945
|
+
A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value: diag(2847, 1 /* Error */, "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2847", "A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),
|
|
7945
7946
|
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}'."),
|
|
7946
7947
|
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}'."),
|
|
7947
7948
|
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}'."),
|
|
@@ -53059,10 +53060,8 @@ ${lanes.join("\n")}
|
|
|
53059
53060
|
}
|
|
53060
53061
|
const variance = variances[i];
|
|
53061
53062
|
switch (variance & 7 /* VarianceMask */) {
|
|
53062
|
-
case 4 /* Independent */:
|
|
53063
|
-
case 3 /* Bivariant */:
|
|
53064
|
-
return anyType;
|
|
53065
53063
|
case 2 /* Contravariant */:
|
|
53064
|
+
case 3 /* Bivariant */:
|
|
53066
53065
|
return neverType;
|
|
53067
53066
|
}
|
|
53068
53067
|
return getBaseConstraintOfType(typeParameter) || unknownType;
|
|
@@ -74530,7 +74529,7 @@ ${lanes.join("\n")}
|
|
|
74530
74529
|
function checkAllCodePathsInNonVoidFunctionReturnOrThrowDiagnostics() {
|
|
74531
74530
|
const functionFlags = getFunctionFlags(func);
|
|
74532
74531
|
const type = returnType && unwrapReturnType(returnType, functionFlags);
|
|
74533
|
-
if (type && maybeTypeOfKind(type,
|
|
74532
|
+
if (type && maybeTypeOfKind(type, 32768 /* Undefined */ | 16384 /* Void */ | 1 /* Any */)) {
|
|
74534
74533
|
return;
|
|
74535
74534
|
}
|
|
74536
74535
|
if (func.kind === 171 /* MethodSignature */ || nodeIsMissing(func.body) || func.body.kind !== 239 /* Block */ || !functionHasImplicitReturn(func)) {
|
|
@@ -74541,8 +74540,12 @@ ${lanes.join("\n")}
|
|
|
74541
74540
|
if (type && type.flags & 131072 /* Never */) {
|
|
74542
74541
|
error(errorNode, Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);
|
|
74543
74542
|
} else if (type && !hasExplicitReturn) {
|
|
74544
|
-
|
|
74545
|
-
|
|
74543
|
+
if (strictNullChecks) {
|
|
74544
|
+
error(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);
|
|
74545
|
+
} else {
|
|
74546
|
+
error(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);
|
|
74547
|
+
}
|
|
74548
|
+
} else if (type && strictNullChecks) {
|
|
74546
74549
|
error(errorNode, Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);
|
|
74547
74550
|
} else if (compilerOptions.noImplicitReturns) {
|
|
74548
74551
|
if (!type) {
|
|
@@ -142430,6 +142433,7 @@ ${lanes.join("\n")}
|
|
|
142430
142433
|
const declaration = findAncestor(node.parent, isFunctionLikeDeclaration);
|
|
142431
142434
|
switch (errorCode) {
|
|
142432
142435
|
case Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:
|
|
142436
|
+
case Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:
|
|
142433
142437
|
if (!declaration || !declaration.body || !declaration.type || !rangeContainsRange(declaration.type, node))
|
|
142434
142438
|
return void 0;
|
|
142435
142439
|
return getFixInfo(
|
|
@@ -142537,6 +142541,7 @@ ${lanes.join("\n")}
|
|
|
142537
142541
|
fixIdWrapTheBlockWithParen = "fixWrapTheBlockWithParen";
|
|
142538
142542
|
errorCodes26 = [
|
|
142539
142543
|
Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,
|
|
142544
|
+
Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,
|
|
142540
142545
|
Diagnostics.Type_0_is_not_assignable_to_type_1.code,
|
|
142541
142546
|
Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code
|
|
142542
142547
|
];
|
package/lib/typescript.js
CHANGED
|
@@ -7942,6 +7942,7 @@ ${lanes.join("\n")}
|
|
|
7942
7942
|
Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: diag(2844, 1 /* Error */, "Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844", "Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),
|
|
7943
7943
|
This_condition_will_always_return_0: diag(2845, 1 /* Error */, "This_condition_will_always_return_0_2845", "This condition will always return '{0}'."),
|
|
7944
7944
|
A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead: diag(2846, 1 /* Error */, "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846", "A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),
|
|
7945
|
+
A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value: diag(2847, 1 /* Error */, "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2847", "A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),
|
|
7945
7946
|
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}'."),
|
|
7946
7947
|
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}'."),
|
|
7947
7948
|
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}'."),
|
|
@@ -53059,10 +53060,8 @@ ${lanes.join("\n")}
|
|
|
53059
53060
|
}
|
|
53060
53061
|
const variance = variances[i];
|
|
53061
53062
|
switch (variance & 7 /* VarianceMask */) {
|
|
53062
|
-
case 4 /* Independent */:
|
|
53063
|
-
case 3 /* Bivariant */:
|
|
53064
|
-
return anyType;
|
|
53065
53063
|
case 2 /* Contravariant */:
|
|
53064
|
+
case 3 /* Bivariant */:
|
|
53066
53065
|
return neverType;
|
|
53067
53066
|
}
|
|
53068
53067
|
return getBaseConstraintOfType(typeParameter) || unknownType;
|
|
@@ -74530,7 +74529,7 @@ ${lanes.join("\n")}
|
|
|
74530
74529
|
function checkAllCodePathsInNonVoidFunctionReturnOrThrowDiagnostics() {
|
|
74531
74530
|
const functionFlags = getFunctionFlags(func);
|
|
74532
74531
|
const type = returnType && unwrapReturnType(returnType, functionFlags);
|
|
74533
|
-
if (type && maybeTypeOfKind(type,
|
|
74532
|
+
if (type && maybeTypeOfKind(type, 32768 /* Undefined */ | 16384 /* Void */ | 1 /* Any */)) {
|
|
74534
74533
|
return;
|
|
74535
74534
|
}
|
|
74536
74535
|
if (func.kind === 171 /* MethodSignature */ || nodeIsMissing(func.body) || func.body.kind !== 239 /* Block */ || !functionHasImplicitReturn(func)) {
|
|
@@ -74541,8 +74540,12 @@ ${lanes.join("\n")}
|
|
|
74541
74540
|
if (type && type.flags & 131072 /* Never */) {
|
|
74542
74541
|
error(errorNode, Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);
|
|
74543
74542
|
} else if (type && !hasExplicitReturn) {
|
|
74544
|
-
|
|
74545
|
-
|
|
74543
|
+
if (strictNullChecks) {
|
|
74544
|
+
error(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);
|
|
74545
|
+
} else {
|
|
74546
|
+
error(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);
|
|
74547
|
+
}
|
|
74548
|
+
} else if (type && strictNullChecks) {
|
|
74546
74549
|
error(errorNode, Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);
|
|
74547
74550
|
} else if (compilerOptions.noImplicitReturns) {
|
|
74548
74551
|
if (!type) {
|
|
@@ -142444,6 +142447,7 @@ ${lanes.join("\n")}
|
|
|
142444
142447
|
const declaration = findAncestor(node.parent, isFunctionLikeDeclaration);
|
|
142445
142448
|
switch (errorCode) {
|
|
142446
142449
|
case Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:
|
|
142450
|
+
case Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:
|
|
142447
142451
|
if (!declaration || !declaration.body || !declaration.type || !rangeContainsRange(declaration.type, node))
|
|
142448
142452
|
return void 0;
|
|
142449
142453
|
return getFixInfo(
|
|
@@ -142551,6 +142555,7 @@ ${lanes.join("\n")}
|
|
|
142551
142555
|
fixIdWrapTheBlockWithParen = "fixWrapTheBlockWithParen";
|
|
142552
142556
|
errorCodes26 = [
|
|
142553
142557
|
Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,
|
|
142558
|
+
Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,
|
|
142554
142559
|
Diagnostics.Type_0_is_not_assignable_to_type_1.code,
|
|
142555
142560
|
Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code
|
|
142556
142561
|
];
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -6012,6 +6012,7 @@ var Diagnostics = {
|
|
|
6012
6012
|
Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: diag(2844, 1 /* Error */, "Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844", "Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),
|
|
6013
6013
|
This_condition_will_always_return_0: diag(2845, 1 /* Error */, "This_condition_will_always_return_0_2845", "This condition will always return '{0}'."),
|
|
6014
6014
|
A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead: diag(2846, 1 /* Error */, "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846", "A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),
|
|
6015
|
+
A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value: diag(2847, 1 /* Error */, "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2847", "A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),
|
|
6015
6016
|
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}'."),
|
|
6016
6017
|
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}'."),
|
|
6017
6018
|
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.1.0-pr-49863-
|
|
5
|
+
"version": "5.1.0-pr-49863-30",
|
|
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": "14.21.1",
|
|
115
115
|
"npm": "8.19.3"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "d7bc48b2c37340e8455e02112a20d6fca773bbe7"
|
|
118
118
|
}
|