import { Either } from '@typed/either' ; import { List } from '../types' ; export type TryCatch = { < A , Err = any > ( list , f ) : Either < Err , A > ; < A , B , Err = any > ( list , f ) : Either < Err , B > ; < A , B , C , Err = any > ( list , f ) : Either < Err , C > ; < A , B , C , D , Err = any > ( list , f ) : Either < Err , D > ; < A , B , C , D , E , Err = any > ( list , f ) : Either < Err , E > ; < A , B , C , D , E , F , Err = any > ( list , f ) : Either < Err , F > ; < A , B , Err = any > ( list ) : ( f : ( a : A ) => B ) => Either < Err , B > ; < A , Err = any > ( list ) : < B > ( f : ( a : A ) => B ) => Either < Err , B > ; < A , B , C , Err = any > ( list ) : ( f : ( a : A , b : B ) => C ) => Either < Err , C > ; < A , B , Err = any > ( list ) : < C > ( f : ( a : A , b : B ) => C ) => Either < Err , C > ; < A , B , C , D , Err = any > ( list ) : ( f : ( a : A , b : B , c : C ) => D ) => Either < Err , D > ; < A , B , C , Err = any > ( list ) : < D > ( f : ( a : A , b : B , c : C ) => D ) => Either < Err , D > ; < A , B , C , D , E , Err = any > ( list ) : ( f : ( a : A , b : B , c : C , d : D ) => E ) => Either < Err , E > ; < A , B , C , D , Err = any > ( list ) : < E > ( f : ( a : A , b : B , c : C , d : D ) => E ) => Either < Err , E > ; < A , B , C , D , E , F , Err = any > ( list ) : ( f : ( a : A , b : B , c : C , d : D , e : E ) => F ) => Either < Err , F > ; < A , Err = any > ( list , f ) : Either < Err , A > ; < A , Err = any > ( list ) : ( f : ( ... args : Array < any > ) => A ) => Either < Err , A > ; ( list ) : < A , Err = any > ( f : ( ... args : Array < any > ) => A ) => Either < Err , A > ; } ;