mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Improve error message
And accept baselines
This commit is contained in:
1 parent
f42841c846
commit
c87c1e9b3f
42 files changed
+178
-178
No files matched your search
@@ -5454,9 +5454,9 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
if (localErrors) {
|
||||
reportError(Diagnostics.Signature_0_has_no_corresponding_signature_in_1,
|
||||
signatureToString(t, /*enclosingDeclaration*/ undefined, /*flags*/ undefined, kind),
|
||||
typeToString(source));
|
||||
reportError(Diagnostics.Type_0_provides_no_match_for_the_signature_1,
|
||||
typeToString(source),
|
||||
signatureToString(t, /*enclosingDeclaration*/ undefined, /*flags*/ undefined, kind));
|
||||
}
|
||||
return Ternary.False;
|
||||
}
|
||||
|
||||
@@ -1724,7 +1724,7 @@
|
||||
"category": "Error",
|
||||
"code": 2657
|
||||
},
|
||||
"Signature '{0}' has no corresponding signature in '{1}'": {
|
||||
"Type '{0}' provides no match for the signature '{1}'": {
|
||||
"category": "Error",
|
||||
"code": 2658
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user