@typed/fp
Version:
Data Structures and Resources for fp-ts
22 lines • 672 B
TypeScript
/**
* These is an extension of fp-ts/These
* @since 0.12.1
*/
import * as EI from 'fp-ts/Either';
import * as TH from 'fp-ts/These';
/**
* Convert These<E, A> into an Either<E, A>. If the These is a Both<E, A>
* a Right<A> will be returned
* @category Combinator
* @since 0.12.1
*/
export declare const absolve: <E, A>(these: TH.These<E, A>) => EI.Either<E, A>;
/**
* Convert These<E, A> into an Either<E, A>. If the These<E, A> is a Both<E, A>
* a Lef<E> will be returned
* @category Combinator
* @since 0.12.1
*/
export declare const condemn: <E, A>(these: TH.These<E, A>) => EI.Either<E, A>;
export * from 'fp-ts/These';
//# sourceMappingURL=These.d.ts.map