import { List , Predicate } from '../types' ; import { Maybe } from '@typed/maybe' ; export type Cond = { < A , B > ( conditions , value ) : Maybe < B > ; < A , B > ( conditions ) : ( value : A ) => Maybe < B > ; } ; name type export type Conditional < A , B > = [ Predicate < A > , ( value : A ) => B ] ;