import { Predicate } from 'fp-ts/lib/function' ; import { pipe } from 'fp-ts/lib/pipeable' ; import { monoidAnyFoldMap } from './shared/monoidAnyFoldMap' ; function _anyPass < T > ( predicates , val ) { return pipe ( predicates , monoidAnyFoldMap ( predicate => predicate ( val ) ) ) ; } since export function anyPass < T > ( predicates ) ; export function anyPass < T > ( predicates , val ) ; export function anyPass < T > ( predicates , val ? ) { if ( val === undefined ) { return val => _anyPass ( predicates , val ) ; } else { return _anyPass ( predicates , val ) ; } }