issue-predicate.js 474 B

1234567891011
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.composeIssuePredicates = exports.createTrivialIssuePredicate = void 0;
  4. function createTrivialIssuePredicate(result) {
  5. return () => result;
  6. }
  7. exports.createTrivialIssuePredicate = createTrivialIssuePredicate;
  8. function composeIssuePredicates(predicates) {
  9. return (issue) => predicates.some((predicate) => predicate(issue));
  10. }
  11. exports.composeIssuePredicates = composeIssuePredicates;