monocle-ts-esm
Version:
A porting of scala monocle library to TypeScript
24 lines (23 loc) • 641 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._left = exports._right = void 0;
/**
* @since 1.6.0
*/
const Either_1 = require("fp-ts-esm/Either");
const Option_1 = require("fp-ts-esm/Option");
const index_js_1 = require("./index.js");
const r = new index_js_1.Prism(Option_1.fromEither, Either_1.right);
/**
* @category constructor
* @since 1.6.0
*/
const _right = () => r;
exports._right = _right;
const l = new index_js_1.Prism((0, Either_1.fold)(Option_1.some, () => Option_1.none), Either_1.left);
/**
* @category constructor
* @since 1.6.0
*/
const _left = () => l;
exports._left = _left;