UNPKG

the-wireguard-effect

Version:

Cross platform wireguard api client for nodejs built on wireguard-go with effect-ts

33 lines (31 loc) 1.59 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WireguardError = exports.SuccessErrno = void 0; var Data = _interopRequireWildcard(require("effect/Data")); var Function = _interopRequireWildcard(require("effect/Function")); var Schema = _interopRequireWildcard(require("effect/Schema")); function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); } /** * Wireguard errors * * @since 1.0.0 */ /** * A wireguard userspace api Errno return message. * * @since 1.0.0 * @category Errors */ const SuccessErrno = exports.SuccessErrno = /*#__PURE__*/Function.pipe(/*#__PURE__*/Schema.TemplateLiteral("errno=", /*#__PURE__*/Schema.Literal(0)), /*#__PURE__*/Schema.annotations({ identifier: "SuccessErrno", description: "A successful errno" }), /*#__PURE__*/Schema.brand("SuccessErrno")); /** * @since 1.0.0 * @category Errors */ class WireguardError extends /*#__PURE__*/Data.TaggedError("WireguardError") {} exports.WireguardError = WireguardError; //# sourceMappingURL=WireguardErrors.js.map