fix #16702: polish type predicate error message

This commit is contained in:
Herrington Darkholme
2017-06-26 13:32:29 +08:00
parent fd22a88abc
commit 962aee93cd
3 changed files with 5 additions and 5 deletions

View File

@@ -8517,7 +8517,7 @@ namespace ts {
}
else if (isIdentifierTypePredicate(target.typePredicate)) {
if (reportErrors) {
errorReporter(Diagnostics.Signature_0_must_have_a_type_predicate, signatureToString(source));
errorReporter(Diagnostics.Signature_0_must_be_a_type_predicate, signatureToString(source));
}
return Ternary.False;
}

View File

@@ -707,7 +707,7 @@
"category": "Error",
"code": 1223
},
"Signature '{0}' must have a type predicate.": {
"Signature '{0}' must be a type predicate.": {
"category": "Error",
"code": 1224
},
@@ -3637,7 +3637,7 @@
"category": "Message",
"code": 90025
},
"Convert function to an ES2015 class": {
"category": "Message",
"code": 95001