veffect
Version:
powerful TypeScript validation library built on the robust foundation of Effect combining exceptional type safety, high performance, and developer experience. Taking inspiration from Effect's functional principles, VEffect delivers a balanced approach tha
31 lines (30 loc) • 680 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.halt = exports.end = exports.emit = exports.OP_HALT = exports.OP_END = exports.OP_EMIT = void 0;
/** @internal */
const OP_EMIT = exports.OP_EMIT = "Emit";
/** @internal */
const OP_HALT = exports.OP_HALT = "Halt";
/** @internal */
const OP_END = exports.OP_END = "End";
/** @internal */
const emit = elements => ({
_tag: OP_EMIT,
elements
});
/** @internal */
exports.emit = emit;
const halt = cause => ({
_tag: OP_HALT,
cause
});
/** @internal */
exports.halt = halt;
const end = reason => ({
_tag: OP_END,
reason
});
exports.end = end;
//# sourceMappingURL=handoffSignal.js.map