UNPKG

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

146 lines (145 loc) 3.98 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.unsafeMake = exports.toSet = exports.toOption = exports.threadName = exports.runtime = exports.none = exports.make = exports.isRuntime = exports.isNone = exports.isFiberId = exports.isComposite = exports.ids = exports.getOrElse = exports.composite = exports.combineAll = exports.combine = exports.FiberIdTypeId = void 0; var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("./internal/fiberId.js")); function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } /** * @since 2.0.0 * @category symbols */ const FiberIdTypeId = exports.FiberIdTypeId = internal.FiberIdTypeId; /** * @since 2.0.0 * @category constructors */ const none = exports.none = internal.none; /** * @since 2.0.0 * @category constructors */ const runtime = exports.runtime = internal.runtime; /** * @since 2.0.0 * @category constructors */ const composite = exports.composite = internal.composite; /** * Returns `true` if the specified unknown value is a `FiberId`, `false` * otherwise. * * @since 2.0.0 * @category refinements */ const isFiberId = exports.isFiberId = internal.isFiberId; /** * Returns `true` if the `FiberId` is a `None`, `false` otherwise. * * @since 2.0.0 * @category refinements */ const isNone = exports.isNone = internal.isNone; /** * Returns `true` if the `FiberId` is a `Runtime`, `false` otherwise. * * @since 2.0.0 * @category refinements */ const isRuntime = exports.isRuntime = internal.isRuntime; /** * Returns `true` if the `FiberId` is a `Composite`, `false` otherwise. * * @since 2.0.0 * @category refinements */ const isComposite = exports.isComposite = internal.isComposite; /** * Combine two `FiberId`s. * * @since 2.0.0 * @category constructors */ const combine = exports.combine = internal.combine; /** * Combines a set of `FiberId`s into a single `FiberId`. * * @since 2.0.0 * @category constructors */ const combineAll = exports.combineAll = internal.combineAll; /** * Returns this `FiberId` if it is not `None`, otherwise returns that `FiberId`. * * @since 2.0.0 * @category utils */ const getOrElse = exports.getOrElse = internal.getOrElse; /** * Get the set of identifiers for this `FiberId`. * * @since 2.0.0 * @category destructors */ const ids = exports.ids = internal.ids; /** * Creates a new `FiberId`. * * @since 2.0.0 * @category constructors */ const make = exports.make = internal.make; /** * Creates a string representing the name of the current thread of execution * represented by the specified `FiberId`. * * @since 2.0.0 * @category destructors */ const threadName = exports.threadName = internal.threadName; /** * Convert a `FiberId` into an `Option<FiberId>`. * * @since 2.0.0 * @category destructors */ const toOption = exports.toOption = internal.toOption; /** * Convert a `FiberId` into a `HashSet<FiberId>`. * * @since 2.0.0 * @category destructors */ const toSet = exports.toSet = internal.toSet; /** * Unsafely creates a new `FiberId`. * * @since 2.0.0 * @category unsafe */ const unsafeMake = exports.unsafeMake = internal.unsafeMake; //# sourceMappingURL=FiberId.js.map