Newer
Older
vue-indexer / node_modules / zod / lib / helpers / errorUtil.js
@eugene-sukhodolskiy eugene-sukhodolskiy on 24 Sep 449 bytes v1.0
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.errorUtil = void 0;
var errorUtil;
(function (errorUtil) {
    errorUtil.errToObj = (message) => typeof message === "string" ? { message } : message || {};
    errorUtil.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
})(errorUtil = exports.errorUtil || (exports.errorUtil = {}));