monocle-ts
Version:
A porting of scala monocle library to TypeScript
16 lines (15 loc) • 317 B
TypeScript
/**
* @since 1.6.0
*/
import { Either } from 'fp-ts/lib/Either'
import { Prism } from '.'
/**
* @category constructor
* @since 1.6.0
*/
export declare const _right: <E, A>() => Prism<Either<E, A>, A>
/**
* @category constructor
* @since 1.6.0
*/
export declare const _left: <E, A>() => Prism<Either<E, A>, E>