Innovenergy_trunk/frontend/node_modules/monocle-ts/lib/Either.js

24 lines
648 B
JavaScript
Raw Normal View History

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports._left = exports._right = void 0;
/**
* @since 1.6.0
*/
var Either_1 = require("fp-ts/lib/Either");
var Option_1 = require("fp-ts/lib/Option");
var _1 = require(".");
var r = new _1.Prism(Option_1.fromEither, Either_1.right);
/**
* @category constructor
* @since 1.6.0
*/
var _right = function () { return r; };
exports._right = _right;
var l = new _1.Prism((0, Either_1.fold)(Option_1.some, function () { return Option_1.none; }), Either_1.left);
/**
* @category constructor
* @since 1.6.0
*/
var _left = function () { return l; };
exports._left = _left;