UNPKG

@tinymce/beehive-flow

Version:

A CLI tool implementing the beehive flow git branching process

13 lines 558 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateEither = void 0; const tslib_1 = require("tslib"); const function_1 = require("fp-ts/function"); const E = tslib_1.__importStar(require("fp-ts/Either")); /** * All this really does is change the shape of the error side of the Either * @param f */ const validateEither = (f) => (value, context) => (0, function_1.pipe)(f(value), E.mapLeft((message) => [{ value, context, message }])); exports.validateEither = validateEither; //# sourceMappingURL=IotsUtils.js.map