UNPKG

@typed/io

Version:

Runtime IO type system

12 lines 525 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Either = exports.either = void 0; const G = require("../guard"); const Type_1 = require("./Type"); exports.either = (left, right) => { const type = Type_1.Type.fromGuard(G.either(left, right), `Either<${left.name}, ${right.name}>`, `Either<${left.expected}, ${right.expected}>`); return { ...type, left, right }; }; const _Either = exports.either(Type_1.Any, Type_1.Any); exports.Either = _Either; //# sourceMappingURL=Either.js.map