Merge pull request #16734 from HerringtonDarkholme/error

fix #16702: polish type predicate error message
This commit is contained in:
Nathan Shively-Sanders
2017-06-28 12:33:45 -07:00
committed by GitHub
3 changed files with 5 additions and 5 deletions

View File

@@ -8524,7 +8524,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