agsamantha/node_modules/openai/_vendor/zod-to-json-schema/util.js

16 lines
438 B
JavaScript
Raw Normal View History

2024-10-02 15:15:21 -05:00
"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