agsamantha/node_modules/openai/_vendor/zod-to-json-schema/util.js
2024-10-02 15:15:21 -05:00

16 lines
No EOL
438 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isEmptyObj = exports.zodDef = void 0;
const zodDef = (zodSchema) => {
return '_def' in zodSchema ? zodSchema._def : zodSchema;
};
exports.zodDef = zodDef;
function isEmptyObj(obj) {
if (!obj)
return true;
for (const _k in obj)
return false;
return true;
}
exports.isEmptyObj = isEmptyObj;
//# sourceMappingURL=util.js.map