mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Improve error message
And accept baselines
This commit is contained in:
@@ -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