Closed Rastopyr closed 4 years ago
@sindresorhus linter is failing, but i'm pull it from last master. should i fix linter?
But this PR still have a problem, predicates heritable from BasePredicate class not support this feature
@Rastopyr Did you have a chance to look more into the problem?
@Rastopyr Bump :)
Hi guys,
this PR just add
validateMessage
method toPredicate
class and should fix #122 , so it could be used in all cases of predicates:this method not affect any current features and not fail any test. It just extend predicate class.
P.S.: I'm not sure that
validateMessage
is good name for this method, butmessage
method already defined in some Predicate classes(error
for example).IssueHunt Summary
### Referenced issues This pull request has been submitted to: - [#122: Custom error message](https://issuehunt.io/repos/105227249/issues/122) --- IssueHunt has been backed by the following sponsors. [Become a sponsor](https://issuehunt.io/membership/members)